linux/drivers/net/wireless/iwlwifi/mvm
Emmanuel Grumbach 8115efbdc8 iwlwifi: mvm: fix the keyidx assignment
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>
2013-02-11 11:54:27 +01:00
..
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 iwlwifi: mvm: Update quota settings for all bindings 2013-02-11 11:54:16 +01:00
fw.c iwlwifi: don't ack the card state notification 2013-02-05 13:52:42 +01:00
led.c
mac80211.c
mac-ctxt.c
Makefile
mvm.h
nvm.c
ops.c
phy-ctxt.c
power.c
quota.c iwlwifi: mvm: Update quota settings for all bindings 2013-02-11 11:54:16 +01:00
rs.c
rs.h
rx.c iwlwifi: use threaded interrupt handler 2013-02-05 14:39:12 +01:00
scan.c
sta.c iwlwifi: mvm: fix the keyidx assignment 2013-02-11 11:54:27 +01:00
sta.h
time-event.c iwlwifi: mvm: Change the Time Event type used for ROC 2013-02-11 11:54:23 +01:00
time-event.h
tx.c iwlwifi: use threaded interrupt handler 2013-02-05 14:39:12 +01:00
utils.c