Prechádzať zdrojové kódy

qcacld-3.0: Use MAX_PMKID_LEN in cds_fils_connection_info

Currently in cds_config.h the macro MAX_PMKID_LEN is not used, and the
pmkid field in struct cds_fils_connection_info uses the "magic number"
16, so replace the magic number with the macro.

Change-Id: I11e7f55d43e5cdd3f222f54434a33c94654f2384
CRs-Fixed: 2366959
Jeff Johnson 6 rokov pred
rodič
commit
b77c0e3843
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      core/cds/inc/cds_config.h

+ 1 - 1
core/cds/inc/cds_config.h

@@ -155,7 +155,7 @@ struct cds_fils_connection_info {
 	uint8_t auth_type;
 	uint8_t pmk[MAX_PMK_LEN];
 	uint8_t pmk_len;
-	uint8_t pmkid[16];
+	uint8_t pmkid[MAX_PMKID_LEN];
 };
 #endif
 #endif /* !defined( __CDS_CONFIG_H ) */