Jelajahi Sumber

qcacld-3.0: update ADDBA Extension IE as per draft 1.5

Update dot11f ADDBA Extension IE definitions as per 11be draft 1.5
specification.

Change-Id: I08ae374b2b7f82a088272ee3c4566dfd7c6906c4
CRs-Fixed: 3185818
Paul Zhang 2 tahun lalu
induk
melakukan
86caf9f602

+ 2 - 1
core/mac/src/cfg/cfgUtil/dot11f.frms

@@ -489,7 +489,8 @@ IE addba_extn_element(EID_ADDBA_EXTN_ELEMENT)
     {
       no_fragmentation: 1;
       he_frag_operation: 2;
-      reserved: 5;
+      reserved: 2;
+      extd_buff_size: 3;
     }
 }
 

+ 2 - 1
core/mac/src/include/dot11f.h

@@ -8613,7 +8613,8 @@ typedef struct sDot11fIEaddba_extn_element {
 	uint8_t             present;
 	uint8_t     no_fragmentation:1;
 	uint8_t    he_frag_operation:2;
-	uint8_t             reserved:5;
+	uint8_t             reserved:2;
+	uint8_t       extd_buff_size:3;
 } tDot11fIEaddba_extn_element;
 
 #define DOT11F_EID_ADDBA_EXTN_ELEMENT (159)

+ 3 - 1
core/mac/src/sys/legacy/src/utils/src/dot11f.c

@@ -8458,7 +8458,8 @@ uint32_t dot11f_unpack_ie_addba_extn_element(tpAniSirGlobal pCtx,
 	tmp75__ = *pBuf;
 	pDst->no_fragmentation = tmp75__ >> 0 & 0x1;
 	pDst->he_frag_operation = tmp75__ >> 1 & 0x3;
-	pDst->reserved = tmp75__ >> 3 & 0x1f;
+	pDst->reserved = tmp75__ >> 3 & 0x3;
+	pDst->extd_buff_size = tmp75__ >> 5 & 0x7;
 	(void)pCtx;
 	return status;
 } /* End dot11f_unpack_ie_addba_extn_element. */
@@ -28073,6 +28074,7 @@ uint32_t dot11f_pack_ie_addba_extn_element(tpAniSirGlobal pCtx,
 		tmp192__ |= (pSrc->no_fragmentation << 0);
 		tmp192__ |= (pSrc->he_frag_operation << 1);
 		tmp192__ |= (pSrc->reserved << 3);
+		tmp192__ |= (pSrc->extd_buff_size << 5);
 		if (unlikely(nBuf < 1))
 			return DOT11F_INCOMPLETE_IE;