@@ -494,9 +494,9 @@
if (!local->use_chanctx) {
struct cfg80211_chan_def *chandef = &local->_oper_chandef;
- chandef->width = NL80211_CHAN_WIDTH_20_NOHT;
+ /*chandef->width = NL80211_CHAN_WIDTH_20_NOHT;
chandef->center_freq1 = chandef->chan->center_freq;
- chandef->center_freq2 = 0;
+ chandef->center_freq2 = 0;*/
/* NOTE: Disabling radar is only valid here for
* single channel context. To be sure, check it ...
@@ -504,7 +504,7 @@
WARN_ON(local->hw.conf.radar_enabled &&
!list_empty(&local->chanctx_list));
- local->hw.conf.radar_enabled = false;
+ local->hw.conf.radar_enabled =
cfg80211_chandef_dfs_required(local->hw.wiphy, chandef,
NL80211_IFTYPE_AP);