FILS: Fix HE MCS field initialization
The second argument to memset() is only eight bits, so there is no point
in trying to set 0xffff values for an array of 16-bit fields. 0xff will
do the exact same thing without causing static analyzes warnings about
truncated value.
Fixes: 903e3a1e62
("FILS: Fix maximum NSS calculation for FD frame")
Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
This commit is contained in:
parent
f80d833688
commit
fb2b7858a7
1 changed files with 1 additions and 1 deletions
|
@ -1450,7 +1450,7 @@ static u16 hostapd_fils_discovery_cap(struct hostapd_data *hapd)
|
||||||
int i;
|
int i;
|
||||||
u16 nss = 0, mcs[6];
|
u16 nss = 0, mcs[6];
|
||||||
|
|
||||||
os_memset(mcs, 0xffff, 6 * sizeof(u16));
|
os_memset(mcs, 0xff, 6 * sizeof(u16));
|
||||||
|
|
||||||
if (mcs_nss_size == 4) {
|
if (mcs_nss_size == 4) {
|
||||||
mcs[0] = WPA_GET_LE16(&he_mcs[0]);
|
mcs[0] = WPA_GET_LE16(&he_mcs[0]);
|
||||||
|
|
Loading…
Reference in a new issue