mirror of
https://github.com/torvalds/linux.git
synced 2026-09-22 20:54:03 +02:00
wifi: nl80211: send frame tx status event only for non-zero cookie
The cookie value assigned by cfg80211_assign_cookie() is guaranteed to be non-zero. So the zero cookie value has special use in tx_control_port where userspace can indicate dont_wait_for_ack, ie. not interested in status. The wil6210 driver also uses the zero cookie when wil_cfg80211_mgmt_tx() is invoked from debugfs api the driver provides so the event is also redundant in that scenario. Signed-off-by: Arend van Spriel <arend.vanspriel@broadcom.com> Link: https://patch.msgid.link/20260731123509.1975281-14-arend.vanspriel@broadcom.com Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
parent
51ba92052e
commit
69ab1d978e
|
|
@ -22046,6 +22046,10 @@ static void nl80211_frame_tx_status(struct wireless_dev *wdev,
|
|||
struct sk_buff *msg;
|
||||
void *hdr;
|
||||
|
||||
/* userspace not interested in zero-cookie status */
|
||||
if (!status->cookie)
|
||||
return;
|
||||
|
||||
if (command == NL80211_CMD_FRAME_TX_STATUS)
|
||||
trace_cfg80211_mgmt_tx_status(wdev, status->cookie,
|
||||
status->ack);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user