Skip to content

Commit 679dd27

Browse files
committed
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 <[email protected]> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Fixes: 45d4393 ("wifi: cfg80211: add a kunit test for 6 GHz colocated AP parsing") Signed-off-by: Johannes Berg <[email protected]>
1 parent 6256760 commit 679dd27

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

net/wireless/scan.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ cfg80211_free_coloc_ap_list(struct list_head *coloc_ap_list)
537537
kfree(ap);
538538
}
539539
}
540-
EXPORT_SYMBOL_IF_KUNIT(cfg80211_free_coloc_ap_list);
540+
EXPORT_SYMBOL_IF_CFG80211_KUNIT(cfg80211_free_coloc_ap_list);
541541

542542
static int cfg80211_parse_ap_info(struct cfg80211_colocated_ap *entry,
543543
const u8 *pos, u8 length,
@@ -710,7 +710,7 @@ cfg80211_parse_colocated_ap(const struct cfg80211_bss_ies *ies,
710710
list_splice_tail(&ap_list, list);
711711
return n_coloc;
712712
}
713-
EXPORT_SYMBOL_IF_KUNIT(cfg80211_parse_colocated_ap);
713+
EXPORT_SYMBOL_IF_CFG80211_KUNIT(cfg80211_parse_colocated_ap);
714714

715715
static void cfg80211_scan_req_add_chan(struct cfg80211_scan_request *request,
716716
struct ieee80211_channel *chan,

0 commit comments

Comments
 (0)