]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7526047f1f7f0551a6ab025d989ca0777b92ee31
tree46e35f5017ed635c2d9b930145ae542776a3fc32
parentb886ac4b03dba0228cb3724e3bc4925d7f86110a
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