aboutsummaryrefslogtreecommitdiffstats
path: root/net/wireless
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2024-02-04 11:03:39 +0100
committerJohannes Berg <johannes.berg@intel.com>2024-02-04 11:03:39 +0100
commit679dd27b4ef33d4f596cbf450a3b2742fc54962a (patch)
tree4f642ded338a2f95a3c07d22e94dc7c2d23e8445 /net/wireless
parent6256760f37baa2e4bf34dcbef69d7450460df9bd (diff)
downloadlinux-679dd27b4ef33d4f596cbf450a3b2742fc54962a.tar.gz
wifi: cfg80211: fix kunit exports
These can only be exported if cfg80211's kunit is enabled, since they're otherwise static. kunit itself can be enabled even if cfg80211's kunit isn't. Fix that by using the right macro. Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202402040534.6AEKtZ7Y-lkp@intel.com/ Fixes: 45d43937a44c ("wifi: cfg80211: add a kunit test for 6 GHz colocated AP parsing") Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/wireless')
-rw-r--r--net/wireless/scan.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/wireless/scan.c b/net/wireless/scan.c
index c78b10e1a1674..6dd9df347771e 100644
--- a/net/wireless/scan.c
+++ b/net/wireless/scan.c
@@ -537,7 +537,7 @@ cfg80211_free_coloc_ap_list(struct list_head *coloc_ap_list)
kfree(ap);
}
}
-EXPORT_SYMBOL_IF_KUNIT(cfg80211_free_coloc_ap_list);
+EXPORT_SYMBOL_IF_CFG80211_KUNIT(cfg80211_free_coloc_ap_list);
static int cfg80211_parse_ap_info(struct cfg80211_colocated_ap *entry,
const u8 *pos, u8 length,
@@ -710,7 +710,7 @@ error:
list_splice_tail(&ap_list, list);
return n_coloc;
}
-EXPORT_SYMBOL_IF_KUNIT(cfg80211_parse_colocated_ap);
+EXPORT_SYMBOL_IF_CFG80211_KUNIT(cfg80211_parse_colocated_ap);
static void cfg80211_scan_req_add_chan(struct cfg80211_scan_request *request,
struct ieee80211_channel *chan,