Bladeren bron

qcacld-3.0: Set addba response buffer size to default value

Set the default addba buffer size to 64 and advertise the default
value in addba response frame.

Change-Id: I8eec73c0907b42414bc742ae01b921b9e4e5b6d5
CRs-Fixed: 2204110
Kiran Kumar Lokere 7 jaren geleden
bovenliggende
commit
96180e1324
2 gewijzigde bestanden met toevoegingen van 5 en 4 verwijderingen
  1. 4 3
      core/mac/inc/sir_mac_prot_def.h
  2. 1 1
      core/mac/src/pe/lim/lim_send_management_frames.c

+ 4 - 3
core/mac/inc/sir_mac_prot_def.h

@@ -165,9 +165,10 @@
 #define SIR_MAC_ADDBA_RSP     1
 #define SIR_MAC_DELBA_REQ     2
 
-#define SIR_MAC_BA_POLICY_DELAYED      0
-#define SIR_MAC_BA_POLICY_IMMEDIATE    1
-#define SIR_MAC_BA_AMSDU_SUPPORTED     1
+#define SIR_MAC_BA_POLICY_DELAYED	0
+#define SIR_MAC_BA_POLICY_IMMEDIATE	1
+#define SIR_MAC_BA_AMSDU_SUPPORTED	1
+#define SIR_MAC_BA_DEFAULT_BUFF_SIZE	64
 
 #ifdef ANI_SUPPORT_11H
 #define SIR_MAC_ACTION_MEASURE_REQUEST_ID      0

+ 1 - 1
core/mac/src/pe/lim/lim_send_management_frames.c

@@ -4754,7 +4754,7 @@ QDF_STATUS lim_send_addba_response_frame(tpAniSirGlobal mac_ctx,
 		pe_err("refused addba req");
 	}
 	frm.addba_param_set.tid = tid;
-	frm.addba_param_set.buff_size = buff_size;
+	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;
 	frm.addba_param_set.amsdu_supp = SIR_MAC_BA_AMSDU_SUPPORTED;