diff options
author | Luciano Coelho <luciano.coelho@intel.com> | 2014-11-07 07:31:37 -0500 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2014-11-10 04:20:18 -0500 |
commit | d04b5ac9e70b2056a8a12f768f4b46773576025e (patch) | |
tree | 076e1140f6813ab2794b5356c590e6b827dbe420 /net/mac80211 | |
parent | 2f4572930dbd79216294a94e331478513c65df78 (diff) |
cfg80211/mac80211: allow any interface to send channel switch notifications
For multi-vif channel switches, we want to send
NL80211_CMD_CH_SWITCH_NOTIFY to the userspace to let it decide whether
other interfaces need to be moved as well. This is needed when we
want a P2P GO interface to follow the channel of a station, for
example.
Modify the code so that all interfaces can send CSA notifications.
Additionally, send notifications for STA CSA as well.
Signed-off-by: Luciano Coelho <luciano.coelho@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211')
-rw-r--r-- | net/mac80211/mlme.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c index 947250077615..243539878991 100644 --- a/net/mac80211/mlme.c +++ b/net/mac80211/mlme.c | |||
@@ -1049,6 +1049,8 @@ static void ieee80211_chswitch_post_beacon(struct ieee80211_sub_if_data *sdata) | |||
1049 | sdata->csa_block_tx = false; | 1049 | sdata->csa_block_tx = false; |
1050 | } | 1050 | } |
1051 | 1051 | ||
1052 | cfg80211_ch_switch_notify(sdata->dev, &sdata->reserved_chandef); | ||
1053 | |||
1052 | sdata->vif.csa_active = false; | 1054 | sdata->vif.csa_active = false; |
1053 | ifmgd->csa_waiting_bcn = false; | 1055 | ifmgd->csa_waiting_bcn = false; |
1054 | 1056 | ||