mac80211: fix radar_enabled propagation
authorMichal Kazior <michal.kazior@tieto.com>
Fri, 4 Apr 2014 11:02:43 +0000 (13:02 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 9 Apr 2014 08:48:36 +0000 (10:48 +0200)
commit9b4816f543ee8d48bb49151718edac480d2080b1
tree944f76706b70290b32d8046b8116bb77da1f8a70
parent7b8a9cdd1f959c7166611fcc58ac91e8409c10ab
mac80211: fix radar_enabled propagation

If chandef had non-HT width it was possible for
radar_enabled update to not be propagated properly
through drv_config(). This happened because
ieee80211_hw_conf_chan() would never see different
local->hw.conf.chandef and local->_oper_chandef.

This wasn't a problem with HT chandefs because
_oper_chandef width is reset to non-HT in
ieee80211_free_chanctx() making
ieee80211_hw_conf_chan() to kick in.

This problem led (at least) ath10k to not start
CAC if prior CAC was cancelled and both CACs were
requested for identical non-HT chandefs.

Signed-off-by: Michal Kazior <michal.kazior@tieto.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/chan.c