From 22f05d45b79682beff687da39a13fa935b09968b Mon Sep 17 00:00:00 2001 From: Kiran Kumar Lokere Date: Fri, 28 Jun 2019 18:33:43 -0700 Subject: [PATCH] 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 --- core/mac/src/pe/lim/lim_send_management_frames.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/mac/src/pe/lim/lim_send_management_frames.c b/core/mac/src/pe/lim/lim_send_management_frames.c index b0975cbe887a..5485e2363f45 100644 --- a/core/mac/src/pe/lim/lim_send_management_frames.c +++ b/core/mac/src/pe/lim/lim_send_management_frames.c @@ -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;