mac80211: add support for the ADDBA extension element
Subsystems (2)
PATCH v2 1/1 mac80211: add support for the ADDBA extension element
HE allows peers to negotiate the aggregation fragmentation level to be used during transmission. The level can be 1-3. The Ext element is added behind the ADDBA request inside the action frame. The responder will then reply with the same level or a lower one if the requested one is not supported. This patch only handles the negotiation part as the ADDBA frames get passed to the ATH11k firmware, which does the rest of the magic for us aswell as generating the requests.
Signed-off-by Shashidhar Lakkavalli <[email protected]>
Signed-off-by John Crispin <[email protected]>
---
Changes in V2
* make use of bitfield.h
include/linux/ieee80211.h | 2 ++ net/mac80211/agg-rx.c | 70 +++++++++++++++++++++++++++++++++----- net/mac80211/ht.c | 2 +- net/mac80211/ieee80211_i.h | 3 +- 4 files changed, 66 insertions(+), 11 deletions(-)
include/linux/ieee80211.h +2 -0
@@ -981,6 +981,8 @@ struct ieee80211_mgmt {__le16 capab;__le16 timeout;__le16 start_seq_num; +/* followed by BA Extension */ +u8 variable[0 ]; }__packed addba_req;struct {u8 action_code;
net/mac80211/agg-rx.c +61 -9
128 lines not on this page · raw message
net/mac80211/ht.c +1 -1
@@ -359,7 +359,7 @@ void ieee80211_ba_session_work(struct work_struct *work) sta->ampdu_mlme.tid_rx_manage_offl))___ieee80211_start_rx_ba_session (sta,0 ,0 ,0 ,1 , tid,IEEE80211_MAX_AMPDU_BUF_HT , - false, true); + false, true,NULL );if (test_and_clear_bit (tid +IEEE80211_NUM_TIDS , sta->ampdu_mlme.tid_rx_manage_offl))
net/mac80211/ieee80211_i.h +2 -1
@@ -1807,7 +1807,8 @@ void __ieee80211_stop_rx_ba_session(struct sta_info *sta, u16 tid,void ___ieee80211_start_rx_ba_session (struct sta_info *sta,u8 dialog_token,u16 timeout,u16 start_seq_num,u16 ba_policy,u16 tid, -u16 buf_size,bool tx,bool auto_seq); +u16 buf_size,bool tx,bool auto_seq, +const struct ieee80211_addba_ext_ie *addbaext);void ieee80211_sta_tear_down_BA_sessions (struct sta_info *sta,enum ieee80211_agg_stop_reason reason); void ieee80211_process_delba(struct ieee80211_sub_if_data *sdata,
Signature · 1 line
2.20.1