aboutsummaryrefslogtreecommitdiffstats
path: root/net/wireless/Kconfig
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2009-08-21 06:23:49 -0400
committerJohn W. Linville <linville@tuxdriver.com>2009-08-28 14:40:30 -0400
commitf7969969f416e593bcc7dc24abf3f9fd6c27136d (patch)
tree4f4e2ef49d2afae82442ba273d7490938232f113 /net/wireless/Kconfig
parent3d832611d794b3d312d26a4b251ac5285206f90d (diff)
cfg80211: make spurious warnings less likely, configurable
Bob reported that he got warnings in IBSS mode about the ssid_len being zero on a joined event, but only when kmemcheck was enabled. This appears to be due to a race condition between drivers and userspace, when the driver reports joined but the user in the meantime decided to leave the IBSS again, the warning would trigger. This was made more likely by kmemcheck delaying the code that does the check and sends the event. So first, make the warning trigger closer to the driver, which means it's not locked, but since only the warning depends on it that's ok. And secondly, users will not want to have spurious warnings at all, so make those that are known to be racy in such a way configurable. Reported-by: Bob Copeland <me@bobcopeland.com> Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/wireless/Kconfig')
-rw-r--r--net/wireless/Kconfig17
1 files changed, 17 insertions, 0 deletions
diff --git a/net/wireless/Kconfig b/net/wireless/Kconfig
index c6031d5b135f..aea7e6824af9 100644
--- a/net/wireless/Kconfig
+++ b/net/wireless/Kconfig
@@ -17,6 +17,23 @@ config NL80211_TESTMODE
17 17
18 Say N. 18 Say N.
19 19
20config CFG80211_DEVELOPER_WARNINGS
21 bool "enable developer warnings"
22 depends on CFG80211
23 default n
24 help
25 This option enables some additional warnings that help
26 cfg80211 developers and driver developers, but that can
27 trigger due to races with userspace.
28
29 For example, when a driver reports that it was disconnected
30 from the AP, but the user disconnects manually at the same
31 time, the warning might trigger spuriously due to races.
32
33 Say Y only if you are developing cfg80211 or a driver based
34 on it (or mac80211).
35
36
20config CFG80211_REG_DEBUG 37config CFG80211_REG_DEBUG
21 bool "cfg80211 regulatory debugging" 38 bool "cfg80211 regulatory debugging"
22 depends on CFG80211 39 depends on CFG80211