Linux wireless drivers development
 help / color / mirror / Atom feed
* [PATCH] mac80211: Call mgd_prepare_tx before deauthentication
@ 2014-09-17  4:33 Sujith Manoharan
  2014-09-17  4:54 ` Sujith Manoharan
  0 siblings, 1 reply; 15+ messages in thread
From: Sujith Manoharan @ 2014-09-17  4:33 UTC (permalink / raw)
  To: Johannes Berg; +Cc: linux-wireless

From: Sujith Manoharan <c_manoha@qca.qualcomm.com>

With drivers that support multi-channel concurrency,
make sure that the correct context is in use before
sending a deauth frame. The driver could be in a different
context, in which case the frame could be dropped.

Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
---
 net/mac80211/mlme.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c
index 2de8870..43332ce 100644
--- a/net/mac80211/mlme.c
+++ b/net/mac80211/mlme.c
@@ -4606,6 +4606,7 @@ int ieee80211_mgd_deauth(struct ieee80211_sub_if_data *sdata,
 			   req->bssid, req->reason_code,
 			   ieee80211_get_reason_code_string(req->reason_code));
 
+		drv_mgd_prepare_tx(sdata->local, sdata);
 		ieee80211_set_disassoc(sdata, IEEE80211_STYPE_DEAUTH,
 				       req->reason_code, tx, frame_buf);
 		cfg80211_tx_mlme_mgmt(sdata->dev, frame_buf,
-- 
2.1.0


^ permalink raw reply related	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2014-10-09 10:22 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-17  4:33 [PATCH] mac80211: Call mgd_prepare_tx before deauthentication Sujith Manoharan
2014-09-17  4:54 ` Sujith Manoharan
2014-09-17  5:01   ` Grumbach, Emmanuel
2014-09-17  5:44     ` Sujith Manoharan
2014-09-17  5:50       ` Grumbach, Emmanuel
2014-09-17  6:01         ` Sujith Manoharan
2014-09-17  6:04           ` Grumbach, Emmanuel
2014-09-17  6:17             ` Sujith Manoharan
2014-09-17 19:01               ` Emmanuel Grumbach
2014-09-18  3:05                 ` Sujith Manoharan
2014-09-18  4:13                   ` Sujith Manoharan
2014-09-18  5:08                     ` Emmanuel Grumbach
2014-09-18  5:49                       ` Sujith Manoharan
2014-10-09  9:40                         ` Johannes Berg
2014-10-09 10:22                           ` Sujith Manoharan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox