From b77c0e3843c36530228d5a7d20bf0ea21fbc72bf Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Tue, 11 Dec 2018 19:17:49 -0800 Subject: [PATCH] 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 --- core/cds/inc/cds_config.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/cds/inc/cds_config.h b/core/cds/inc/cds_config.h index e45e479b246b..af2546005e57 100644 --- a/core/cds/inc/cds_config.h +++ b/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 ) */