8115efbdc8
Fixes an issue that smatch pointed out: 1118 1119 key_flags = cpu_to_le16(keyconf->keyidx & STA_KEY_FLG_KEYID_MSK); ^^^^^^^^^^^^^^^ This is s8. ^^^^^^^^^^^^^^^^^^^^^ STA_KEY_FLG_KEYID_MSK is 0x300. The result after the bitwise AND is always zero because 0xff & 0x300. Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com> |
||
---|---|---|
.. | ||
binding.c | ||
d3.c | ||
debugfs.c | ||
fw-api-d3.h | ||
fw-api-mac.h | ||
fw-api-power.h | ||
fw-api-rs.h | ||
fw-api-scan.h | ||
fw-api-sta.h | ||
fw-api-tx.h | ||
fw-api.h | ||
fw.c | ||
led.c | ||
mac80211.c | ||
mac-ctxt.c | ||
Makefile | ||
mvm.h | ||
nvm.c | ||
ops.c | ||
phy-ctxt.c | ||
power.c | ||
quota.c | ||
rs.c | ||
rs.h | ||
rx.c | ||
scan.c | ||
sta.c | ||
sta.h | ||
time-event.c | ||
time-event.h | ||
tx.c | ||
utils.c |