qcacmn: Avoid checking extcaps byte if equal to IE len
Reading extcaps from the scan entry currently checks if the byte to be accessed is less than the length of the IE. Following this, it will attempt to access the extcap IE using the requested byte as the index. Avoid accessing the extcap IE if the byte is greater than one less than the ie_len (since indexing starts from zero). CRs-Fixed: 2856212 Change-Id: Ie357edcd6095570c05871af657381c287e92504e
Este cometimento está contido em:

cometido por
snandini

ascendente
50133e4345
cometimento
32515d5e22
@@ -1419,7 +1419,7 @@ util_scan_entry_get_extcap(struct scan_cache_entry *scan_entry,
|
||||
if (!ext_cap)
|
||||
return QDF_STATUS_E_NULL_VALUE;
|
||||
|
||||
if (ext_cap->ext_cap_len < ext_caps_byte)
|
||||
if (ext_cap->ext_cap_len <= ext_caps_byte)
|
||||
return QDF_STATUS_E_NULL_VALUE;
|
||||
|
||||
*extcap_value =
|
||||
|
Criar uma nova questão referindo esta
Bloquear um utilizador