qcacld-3.0: Advertise max BA buffer size in HE mode

The default addba buffer size is set to 64 and HE supports
256 BA bitmap.
Set addba response frame BA buffer size to max BA buffer size
(256) in HE mode.

Change-Id: I74db45874997cb3f3e758c89d7e95d72c27ee13f
CRs-Fixed: 2481484
This commit is contained in:
Kiran Kumar Lokere 2019-06-28 18:33:43 -07:00 committed by nshrivas
parent 5cda727f80
commit 22f05d45b7

View File

@ -4736,7 +4736,10 @@ QDF_STATUS lim_send_addba_response_frame(struct mac_context *mac_ctx,
pe_err("refused addba req");
}
frm.addba_param_set.tid = tid;
frm.addba_param_set.buff_size = SIR_MAC_BA_DEFAULT_BUFF_SIZE;
if (lim_is_session_he_capable(session))
frm.addba_param_set.buff_size = MAX_BA_BUFF_SIZE;
else
frm.addba_param_set.buff_size = SIR_MAC_BA_DEFAULT_BUFF_SIZE;
if (mac_ctx->usr_cfg_ba_buff_size)
frm.addba_param_set.buff_size = mac_ctx->usr_cfg_ba_buff_size;