wifi: mac80211: send TWT teardown to peer after setup TX failure
PATCH 1/1 wifi: mac80211: send TWT teardown to peer after setup TX failure
When an AP's TWT Setup response is not acknowledged, ieee80211_s1g_tx_twt_setup_fail() asks the driver to tear down the local agreement and sends a TWT teardown action as the peer notification. It uses the response SA as the destination, but ieee80211_s1g_send_twt_setup() built that response with SA set to the AP's address. The teardown is therefore queued with DA, SA and BSSID all set to the AP address and never reaches the station.
The in-tree driver callbacks update local hardware state and emit no action frame. The station receives no notification that mac80211 asked the driver to remove the agreement and can keep following the TWT schedule, leaving the peers' power-save state desynchronized.
Address the teardown to the response DA, the station to which the failed response was sent. This also matches the station lookup the transmit status path already performs on the same frame.
--- net/mac80211/s1g.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/mac80211/s1g.c +1 -1
@@ -147,7 +147,7 @@ ieee80211_s1g_tx_twt_setup_fail(struct ieee80211_sub_if_data *sdata,drv_twt_teardown_request (sdata->local, sdata, &sta->sta, flowid); -ieee80211_s1g_send_twt_teardown (sdata, mgmt->sa, sdata->vif.addr, +ieee80211_s1g_send_twt_teardown (sdata, mgmt->da, sdata->vif.addr, flowid); }
base-commit: 57aa1718d5953dd532137d43b696c68545c2e0b3
Signature · 1 line
2.50.1 (Apple Git-155)