diff options
author | Luciano Coelho <luciano.coelho@intel.com> | 2014-09-30 07:08:02 +0300 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2014-10-09 11:01:58 +0200 |
commit | c12bc4885f4b3bab0ed779c69d5d7e3223fa5003 (patch) | |
tree | 9b0377342751c5a907a51a1e3e337d547811160b /net | |
parent | 8975ae88e137ea02a71b7a86af2f8eb790c2f1e7 (diff) | |
download | blackbird-op-linux-c12bc4885f4b3bab0ed779c69d5d7e3223fa5003.tar.gz blackbird-op-linux-c12bc4885f4b3bab0ed779c69d5d7e3223fa5003.zip |
mac80211: return the vif's chandef in ieee80211_cfg_get_channel()
The chandef of the channel context a vif is using may be different
than the chandef of the vif itself. For instance, the bandwidth used
by the vif may be narrower than the one configured in the channel
context. To avoid confusion, return the vif's chandef in
ieee80211_cfg_get_channel() instead of the chandef of the channel
context.
Signed-off-by: Luciano Coelho <luciano.coelho@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net')
-rw-r--r-- | net/mac80211/cfg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c index fb6a1502b6df..343da1e35025 100644 --- a/net/mac80211/cfg.c +++ b/net/mac80211/cfg.c @@ -3458,7 +3458,7 @@ static int ieee80211_cfg_get_channel(struct wiphy *wiphy, rcu_read_lock(); chanctx_conf = rcu_dereference(sdata->vif.chanctx_conf); if (chanctx_conf) { - *chandef = chanctx_conf->def; + *chandef = sdata->vif.bss_conf.chandef; ret = 0; } else if (local->open_count > 0 && local->open_count == local->monitors && |