diff options
author | Johannes Berg <johannes.berg@intel.com> | 2012-07-23 16:29:21 +0400 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2012-07-31 18:18:55 +0400 |
commit | 679ef4eadde1f8e55074427c0d8de2da55ca81f9 (patch) | |
tree | 35d87a3631699ee7bed7296731bc86a4ea767a3c /net/mac80211/iface.c | |
parent | 568d6e289736c9c78cd8723aa81415daffafeff9 (diff) | |
download | linux-679ef4eadde1f8e55074427c0d8de2da55ca81f9.tar.xz |
mac80211: use oper_channel in utils and config
Using hw.conf.channel is wrong as it could be the
temporary channel if any function like the beacon
get function is called while scanning or during
other temporary out-of-channel activities.
Use oper_channel instead.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/iface.c')
-rw-r--r-- | net/mac80211/iface.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/iface.c b/net/mac80211/iface.c index bfb57dcc1538..fc8ba83e2c33 100644 --- a/net/mac80211/iface.c +++ b/net/mac80211/iface.c @@ -1274,7 +1274,7 @@ int ieee80211_if_change_type(struct ieee80211_sub_if_data *sdata, /* reset some values that shouldn't be kept across type changes */ sdata->vif.bss_conf.basic_rates = ieee80211_mandatory_rates(sdata->local, - sdata->local->hw.conf.channel->band); + sdata->local->oper_channel->band); sdata->drop_unencrypted = 0; if (type == NL80211_IFTYPE_STATION) sdata->u.mgd.use_4addr = false; |