diff options
author | Emmanuel Grumbach <emmanuel.grumbach@intel.com> | 2014-11-30 17:17:26 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2014-12-12 12:35:38 +0100 |
commit | 722ddb0dab29b666881d74067c2b92d42074351f (patch) | |
tree | 623cba33a1c58221ba722b1af27b7b21b3b5aaf1 /net | |
parent | f89f46cf3a23d8d7c98f924a461fd931e1331746 (diff) | |
download | op-kernel-dev-722ddb0dab29b666881d74067c2b92d42074351f.zip op-kernel-dev-722ddb0dab29b666881d74067c2b92d42074351f.tar.gz |
mac80211: update the channel context after channel switch
When the channel switch has been made, a vif is now using
the channel context which was reserved. When that happens,
we need to update the channel context since its parameters
may change.
I hit a case in which I switched to a 40Mhz channel but the
reserved channel context was still on 20Mhz. The rate control
would try to send 40Mhz packets on a 20Mhz channel context and
that made iwlwifi's firmware unhappy.
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/chan.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/mac80211/chan.c b/net/mac80211/chan.c index 5d6dae9..da1c12c 100644 --- a/net/mac80211/chan.c +++ b/net/mac80211/chan.c @@ -1011,6 +1011,10 @@ ieee80211_vif_use_reserved_reassign(struct ieee80211_sub_if_data *sdata) ieee80211_vif_update_chandef(sdata, &sdata->reserved_chandef); + ieee80211_recalc_smps_chanctx(local, new_ctx); + ieee80211_recalc_radar_chanctx(local, new_ctx); + ieee80211_recalc_chanctx_min_def(local, new_ctx); + if (changed) ieee80211_bss_info_change_notify(sdata, changed); |