2024-01-31 16:17:08

by Johannes Berg

[permalink] [raw]
Subject: [PATCH] wifi: mac80211: adding missing drv_mgd_complete_tx() call

From: Johannes Berg <[email protected]>

There's a call to drv_mgd_prepare_tx() and so there should
be one to drv_mgd_complete_tx(), but on this path it's not.
Add it.

Signed-off-by: Johannes Berg <[email protected]>
---
net/mac80211/mlme.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c
index 40de13cda92f..0349e0ded1d8 100644
--- a/net/mac80211/mlme.c
+++ b/net/mac80211/mlme.c
@@ -8454,6 +8454,7 @@ int ieee80211_mgd_deauth(struct ieee80211_sub_if_data *sdata,
ieee80211_report_disconnect(sdata, frame_buf,
sizeof(frame_buf), true,
req->reason_code, false);
+ drv_mgd_complete_tx(sdata->local, sdata, &info);
return 0;
}

--
2.43.0