qcacld-3.0: Fix the value of LIM_ENCR_AUTH_BODY_LEN
Fix the value of LIM_ENCR_AUTH_BODY_LEN. Use the macros to include the fields instead of taking the whole structure and excluding it. Change-Id: I42e27390ddd515190970c1ee483c610377f8d697 CRs-Fixed: 2044611
Bu işleme şunda yer alıyor:

işlemeyi yapan:
Gerrit - the friendly Code Review server

ebeveyn
dbf0be537d
işleme
5e0387a8a0
@@ -565,6 +565,11 @@
|
||||
#define SIR_MAC_WEP_IV_LENGTH 4
|
||||
#define SIR_MAC_WEP_ICV_LENGTH 4
|
||||
|
||||
/* 2 bytes each for auth algo number, transaction number and status code */
|
||||
#define SIR_MAC_AUTH_FRAME_INFO_LEN 6
|
||||
/* 2 bytes for ID and length + SIR_MAC_AUTH_CHALLENGE_LENGTH */
|
||||
#define SIR_MAC_AUTH_CHALLENGE_BODY_LEN (2 + SIR_MAC_AUTH_CHALLENGE_LENGTH)
|
||||
|
||||
/* / MAX key length when ULA is used */
|
||||
#define SIR_MAC_MAX_KEY_LENGTH 32
|
||||
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2011-2015 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2011-2015, 2017 The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* Previously licensed under the ISC license by Qualcomm Atheros, Inc.
|
||||
*
|
||||
@@ -39,9 +39,11 @@
|
||||
#define __LIM_SECURITY_UTILS_H
|
||||
#include "sir_mac_prot_def.h" /* for tSirMacAuthFrameBody */
|
||||
|
||||
#define LIM_ENCR_AUTH_BODY_LEN (sizeof(tSirMacAuthFrameBody) + \
|
||||
#define LIM_ENCR_AUTH_BODY_LEN (SIR_MAC_AUTH_FRAME_INFO_LEN + \
|
||||
SIR_MAC_AUTH_CHALLENGE_BODY_LEN + \
|
||||
SIR_MAC_WEP_IV_LENGTH + \
|
||||
SIR_MAC_WEP_ICV_LENGTH)
|
||||
|
||||
struct tLimPreAuthNode;
|
||||
|
||||
uint8_t lim_is_auth_algo_supported(tpAniSirGlobal, tAniAuthType, tpPESession);
|
||||
|
Yeni konuda referans
Bir kullanıcı engelle