Skip to contentSkip to conversation

mac80211: fix station hash table max_size config dependency

PATCH In review [email protected] 2 participants 2 messages Sep 23, 2023 – Sep 26, 2023

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mac80211: fix station hash table max_size config dependency

From: roynatech2544 <[email protected]>

Commit ebd82b3 ("mac80211: make station hash table max_size configurable") introduced config MAC80211_STA_HASH_MAX_SIZE, which is defined unconditionally even if MAC80211 is not set. It doesn't look like it is dependent of MAC80211_DEBUG_MENU either, as its only user is sta_info.c which is compiled unconditionally when MAC80211 != n. And without this config set somewhere, compile would error out.

Make it depend on MAC80211 to correctly hide the config when MAC80211=n

Fixes ebd82b3 ("mac80211: make station hash table max_size configurable")
net/mac80211/Kconfig +2 -1
index 51ec8256b..b9dc520b6 100644
@@ -296,7 +296,8 @@ config MAC80211_DEBUG_COUNTERS
 	  If unsure, say N.
 
 config MAC80211_STA_HASH_MAX_SIZE
-	int "Station hash table maximum size" if MAC80211_DEBUG_MENU
+	int "Station hash table maximum size"
+	depends on MAC80211
 	default 0
 	help
 	  Setting this option to a low value (e.g. 4) allows testing the
Signature · 1 line
2.34.1
#1 lore raw
Quoted 11 lines · [email protected] writes:

From: roynatech2544 <[email protected]>

Commit ebd82b3 ("mac80211: make station hash table max_size configurable") introduced config MAC80211_STA_HASH_MAX_SIZE, which is defined unconditionally even if MAC80211 is not set. It doesn't look like it is dependent of MAC80211_DEBUG_MENU either, as its only user is sta_info.c which is compiled unconditionally when MAC80211 != n. And without this config set somewhere, compile would error out.

Make it depend on MAC80211 to correctly hide the config when MAC80211=n

Fixes ebd82b3 ("mac80211: make station hash table max_size configurable")

The commit id in fixes tag is too short, more info in the wiki link below.

Quoted 1 line

Please use your full legal name, no pseudonyms please. See wiki.

Signature · 3 lines
https://patchwork.kernel.org/project/linux-wireless/list/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches