mac80211: fix low throughput due to invalid addba extension
Subsystems (2)
PATCH 1/1 mac80211: fix low throughput due to invalid addba extension
Addba request action frame received with the extension element from certain 11ac stations, but the cmd id and length not matching to addba extension and it failing in element parsing. Due to this, addba request not acknowledged and aggregation not started which is causing low throughput. Hence validating the cmd id before processing addba extension.
--- net/mac80211/agg-rx.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
net/mac80211/agg-rx.c +2 -1
@@ -494,7 +494,8 @@ void ieee80211_process_addba_request(struct ieee80211_local *local, ies_len = len - offsetof(struct ieee80211_mgmt , u.action.u.addba_req.variable); -if (ies_len) { +if (ies_len && + mgmt->u.action.u.addba_req.variable[0 ] ==WLAN_EID_ADDBA_EXT ) {ieee802_11_parse_elems (mgmt->u.action.u.addba_req.variable, ies_len, true, &elems, mgmt->bssid,NULL );if (elems.parse_error)
Signature · 7 lines
2.7.4 -- ath11k mailing list [email protected] http://lists.infradead.org/mailman/listinfo/ath11k
Johannes Berg
maintainerQuoted 3 lines · Govindaraj
Addba request action frame received with the extension element from certain 11ac stations,
Please indicate which so we have a record of who's shipping broken junk.
Quoted 12 lines
but the cmd id and length not matching to addba
extension and it failing in element parsing.Due to this, addba request
not acknowledged and aggregation not started which is causing low throughput. Hence validating the cmd id before processing addba extension.
ies_len= len -offsetof(struct ieee80211_mgmt, u.action.u.addba_req.variable);net/mac80211/agg-rx.c +2
-1-if (ies_len) { +if (ies_len && + mgmt->u.action.u.addba_req.variable[0 ] ==WLAN_EID_ADDBA_EXT ) {
Quoted 3 lines
ieee802_11_parse_elems(mgmt->u.action.u.addba_req.variable, ies_len, true, &elems, mgmt->bssid, NULL); if (elems.parse_error)
So we get into parse_error without this?
What are they putting there instead?
johannes
Signature · 3 lines
ath11k mailing list [email protected] http://lists.infradead.org/mailman/listinfo/ath11k
Quoted 14 lines · Johannes Berg
Quoted 3 lines · Govindaraj
Addba request action frame received with the extension element from certain 11ac stations,
Please indicate which so we have a record of who's shipping broken junk.
Quoted 6 lines
but the cmd id and length not matching to addba
extension and it failing in element parsing.Due to this, addba request
not acknowledged and aggregation not started which is causing low throughput. Hence validating the cmd id before processing addba extension.
Quoted 10 lines
Quoted 8 lines
ies_len= len -offsetof(struct ieee80211_mgmt, u.action.u.addba_req.variable);net/mac80211/agg-rx.c +2
-1-if (ies_len) { +if (ies_len && + mgmt->u.action.u.addba_req.variable[0 ] ==WLAN_EID_ADDBA_EXT ) {
ieee802_11_parse_elems(mgmt->u.action.u.addba_req.variable, ies_len, true, &elems, mgmt->bssid, NULL); if (elems.parse_error)So we get into
parse_errorwithout this?
yes, we getting parse error.
Quoted 2 lines
What are they putting there instead?
first 9 bytes are addba request action frame and remaining 7 bytes extension causing for parse error. 03 00 01 02 10 00 00 e0 0a cf 08 06 11a 46 09 fe
Quoted 2 lines
johannes
Signature · 3 lines
ath11k mailing list [email protected] http://lists.infradead.org/mailman/listinfo/ath11k
Quoted 7 lines · Govindaraj Saminathan
Quoted 6 lines · Johannes Berg
Quoted 3 lines · Govindaraj
Addba request action frame received with the extension element from certain 11ac stations,
Please indicate which so we have a record of who's shipping broken junk.
The below log i taken with pixel3 client device
Quoted 26 lines
Quoted 8 lines
Quoted 7 lines
but the cmd id and length not matching to addba
extension and it failing in element parsing.Due to this, addba request
not acknowledged and aggregation not started which is causing low throughput. Hence validating the cmd id before processing addba extension.Quoted 10 lines
Quoted 8 lines
ies_len= len -offsetof(struct ieee80211_mgmt, u.action.u.addba_req.variable);net/mac80211/agg-rx.c +2
-1-if (ies_len) { +if (ies_len && + mgmt->u.action.u.addba_req.variable[0 ] ==WLAN_EID_ADDBA_EXT ) {
ieee802_11_parse_elems(mgmt->u.action.u.addba_req.variable, ies_len, true, &elems, mgmt->bssid, NULL); if (elems.parse_error)So we get into
parse_errorwithout this?yes, we getting parse error.
Quoted 2 lines
What are they putting there instead?
first 9 bytes are addba request action frame and remaining 7 bytes extension causing for parse error.
03 00 01 02 10 00 00 e0 0a cf 08 06 11a 46 09 feQuoted 2 lines
johannes