]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: remove local->radar_detect_enabled
authorEliad Peller <eliad@wizery.com>
Wed, 7 Jan 2015 15:50:09 +0000 (17:50 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 14 Jan 2015 08:37:06 +0000 (09:37 +0100)
commit3056c9d1b458b525ecf1920188a1dcc8707d1841
tree4bd05d244a56723b38bfafcba8eed0875249027e
parentde7e342ebccd86ac0d6a4bc1dc4b68649b5d73ce
mac80211: remove local->radar_detect_enabled

local->radar_detect_enabled should tell whether
radar_detect is enabled on any interface belonging
to local.

However, it's not getting updated correctly
in many cases (actually, when testing with hwsim
it's never been set, even when the dfs master
is beaconing).

Instead of handling all the corner cases
(e.g. channel switch), simply check whether
radar detection is enabled only when needed,
instead of caching the result.

Signed-off-by: Eliad Peller <eliad@wizery.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/cfg.c
net/mac80211/chan.c
net/mac80211/ieee80211_i.h
net/mac80211/scan.c