Browse Source

qcacld-3.0: Replace IEEE80211_PMKID_LEN with PMKID_LEN

Replace IEEE80211_PMKID_LEN with PMKID_LEN which is defined
in wlan_cmn_ieee80211.h.

Change-Id: I0b59d4cbd6522e799e66b3b674b5a0cfa53b039a
CRs-Fixed: 2395980
Srinivas Girigowda 6 years ago
parent
commit
3beefb408c

+ 0 - 2
core/cds/inc/cds_ieee80211_defines.h

@@ -91,6 +91,4 @@ typedef struct ieee80211_rx_status {
 } ieee80211_recv_status;
 #endif /* EXTERNAL_USE_ONLY */
 
-#define IEEE80211_PMKID_LEN     16
-
 #endif

+ 1 - 3
core/mac/src/pe/include/lim_fils_defs.h

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2017 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2017, 2019 The Linux Foundation. All rights reserved.
  *
  * Permission to use, copy, modify, and/or distribute this software for
  * any purpose with or without fee is hereby granted, provided that the
@@ -58,8 +58,6 @@
 #define FILS_SHA256_PKM_LEN 32
 #define FILS_SHA384_PKM_LEN 48
 
-#define PMKID_LEN 16
-
 #define MAX_PRF_INTERATIONS_COUNT 255
 
 /* 9.4.2.180 FILS Session element */

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

@@ -1271,7 +1271,7 @@ void populate_fils_connect_params(struct mac_context *mac_ctx,
 			fils_info->fils_pmk_len);
 
 	qdf_mem_copy(fils_join_rsp->fils_pmkid, fils_info->fils_pmkid,
-			IEEE80211_PMKID_LEN);
+			PMKID_LEN);
 
 	fils_join_rsp->kek_len = fils_info->kek_len;
 	qdf_mem_copy(fils_join_rsp->kek, fils_info->kek, fils_info->kek_len);