aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/mlme.c
diff options
context:
space:
mode:
authorLuciano Coelho <luciano.coelho@intel.com>2014-10-08 02:48:38 -0400
committerJohannes Berg <johannes.berg@intel.com>2014-10-09 05:30:09 -0400
commitf1d65583bc5bd43ace8abb9d4f4d9e8da407f708 (patch)
tree7c51dcf4057ab096c49700567162ceeb7458e226 /net/mac80211/mlme.c
parent6d027bcc8a4e2518ae825b0ff3dd069ab1abfe96 (diff)
mac80211: add post_channel_switch driver operation
As a counterpart to the pre_channel_switch operation, add a post_channel_switch operation. This allows the drivers to go back to a normal configuration after the channel switch is completed. Signed-off-by: Luciano Coelho <luciano.coelho@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/mlme.c')
-rw-r--r--net/mac80211/mlme.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c
index d23d6d97e453..cb1a8c3bc73f 100644
--- a/net/mac80211/mlme.c
+++ b/net/mac80211/mlme.c
@@ -1010,6 +1010,15 @@ static void ieee80211_chswitch_work(struct work_struct *work)
1010 sdata->csa_block_tx = false; 1010 sdata->csa_block_tx = false;
1011 } 1011 }
1012 1012
1013 ret = drv_post_channel_switch(sdata);
1014 if (ret) {
1015 sdata_info(sdata,
1016 "driver post channel switch failed, disconnecting\n");
1017 ieee80211_queue_work(&local->hw,
1018 &ifmgd->csa_connection_drop_work);
1019 goto out;
1020 }
1021
1013 ieee80211_sta_reset_beacon_monitor(sdata); 1022 ieee80211_sta_reset_beacon_monitor(sdata);
1014 ieee80211_sta_reset_conn_monitor(sdata); 1023 ieee80211_sta_reset_conn_monitor(sdata);
1015 1024