Browse Source

qcacmn: Add macros for GCMP header and MIC length

CCMP and GCMP both have different lengths of their MIC part. MIC
length for CCMP is 8 bytes whereas it is 16 bytes for GCMP. When
encryption type is GCMP/GCMP-256, sending packets with CCMP MIC
length causes fw to drop the GCMP encrypted management packets
leading to connection issues.

Add macros for GCMP header and MIC length

Change-Id: Ib768319d38dca90d92ff99ad3318a70f5a6ae474
CRs-Fixed: 2226978
Himanshu Agarwal 7 years ago
parent
commit
80a3da4f57
1 changed files with 2 additions and 0 deletions
  1. 2 0
      umac/cmn_services/cmn_defs/inc/wlan_cmn_ieee80211.h

+ 2 - 0
umac/cmn_services/cmn_defs/inc/wlan_cmn_ieee80211.h

@@ -27,6 +27,8 @@
 
 #define IEEE80211_CCMP_HEADERLEN    8
 #define IEEE80211_CCMP_MICLEN       8
+#define WLAN_IEEE80211_GCMP_HEADERLEN    8
+#define WLAN_IEEE80211_GCMP_MICLEN       16
 #define IEEE80211_FC1_WEP           0x40
 #define WLAN_HDR_IV_LEN            3
 #define WLAN_HDR_EXT_IV_BIT        0x20