summaryrefslogtreecommitdiffstats
path: root/net/mac80211/status.c
diff options
context:
space:
mode:
authorMarkus Theil <markus.theil@tu-ilmenau.de>2020-05-27 18:03:34 +0200
committerJohannes Berg <johannes.berg@intel.com>2020-05-28 09:02:14 +0200
commita7528198add88a6f51b8ade17a5cf86804b8f7ee (patch)
tree871e8d53867af864e59e63fa7a5541e134ef5f38 /net/mac80211/status.c
parentmac80211_hwsim: report the WIPHY_FLAG_SUPPORTS_5_10_MHZ capability (diff)
downloadlinux-a7528198add88a6f51b8ade17a5cf86804b8f7ee.tar.xz
linux-a7528198add88a6f51b8ade17a5cf86804b8f7ee.zip
mac80211: support control port TX status reporting
Add support for TX status reporting for the control port TX API; this will be used by hostapd when it moves to the control port TX API. Signed-off-by: Markus Theil <markus.theil@tu-ilmenau.de> Link: https://lore.kernel.org/r/20200527160334.19224-1-markus.theil@tu-ilmenau.de [fix commit message, it was referring to nl80211] Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/status.c')
-rw-r--r--net/mac80211/status.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/net/mac80211/status.c b/net/mac80211/status.c
index 22512805eafb..7b1bacac39c6 100644
--- a/net/mac80211/status.c
+++ b/net/mac80211/status.c
@@ -649,10 +649,17 @@ static void ieee80211_report_ack_skb(struct ieee80211_local *local,
info->status.ack_signal,
info->status.is_valid_ack_signal,
GFP_ATOMIC);
- else
+ else if (ieee80211_is_mgmt(hdr->frame_control))
cfg80211_mgmt_tx_status(&sdata->wdev, cookie,
skb->data, skb->len,
acked, GFP_ATOMIC);
+ else
+ cfg80211_control_port_tx_status(&sdata->wdev,
+ cookie,
+ skb->data,
+ skb->len,
+ acked,
+ GFP_ATOMIC);
}
rcu_read_unlock();