|
@@ -3458,7 +3458,7 @@ static int ieee80211_cfg_get_channel(struct wiphy *wiphy,
|
|
rcu_read_lock();
|
|
rcu_read_lock();
|
|
chanctx_conf = rcu_dereference(sdata->vif.chanctx_conf);
|
|
chanctx_conf = rcu_dereference(sdata->vif.chanctx_conf);
|
|
if (chanctx_conf) {
|
|
if (chanctx_conf) {
|
|
- *chandef = chanctx_conf->def;
|
|
|
|
|
|
+ *chandef = sdata->vif.bss_conf.chandef;
|
|
ret = 0;
|
|
ret = 0;
|
|
} else if (local->open_count > 0 &&
|
|
} else if (local->open_count > 0 &&
|
|
local->open_count == local->monitors &&
|
|
local->open_count == local->monitors &&
|