mac80211: fix recalc_radar hwconf sync problem
authorSimon Wunderlich <simon.wunderlich@s2003.tu-chemnitz.de>
Mon, 8 Apr 2013 20:43:16 +0000 (22:43 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 10 Apr 2013 18:24:16 +0000 (20:24 +0200)
commite47468518b9dc42db459e7240909946316d9c6c9
tree46e35f5017ed635c2d9b930145ae542776a3fc32
parent3088f7d2db42925808c4b43a6258647ee4d1dd5f
mac80211: fix recalc_radar hwconf sync problem

local->hw.conf maybe not be synced when recalcing whether radar is
enabled, sometimes leaving radar enabled even if it's not neccesary
anymore.

Fix this by:
 * setting radar_enabled when creating the chanctx
 * turning radar_enabled off before destroying the last channel context

Reported-by: Zefir Kurtisi <zefir.kurtisi@neratec.com>
Signed-off-by: Simon Wunderlich <siwu@hrz.tu-chemnitz.de>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/chan.c