diff options
author | Eyal Shapira <eyal@wizery.com> | 2014-08-13 00:26:17 +0300 |
---|---|---|
committer | Emmanuel Grumbach <emmanuel.grumbach@intel.com> | 2014-09-08 19:47:22 +0300 |
commit | 2cddddc56a1179aa71b460ad616176c237d4a243 (patch) | |
tree | 561e553def9c08cb629ecd051336e71d5c01fe05 /drivers/net/wireless/iwlwifi/mvm/mac-ctxt.c | |
parent | iwlwifi: add PCI IDs and add then new 3165 series (diff) | |
download | linux-dev-2cddddc56a1179aa71b460ad616176c237d4a243.tar.xz linux-dev-2cddddc56a1179aa71b460ad616176c237d4a243.zip |
iwlwifi: mvm: fix an overflow in iwl_mvm_get_signal_strength
The idea here is to translate a value of 0 received from
the firmware to the lowest rssi figure. As rx_status->chain_signal
is a signed byte the lowest possible value is -128 and not -256.
-256 was causing 0 to get stored in the signed byte.
Signed-off-by: Eyal Shapira <eyalx.shapira@intel.com>
Reviewed-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/mvm/mac-ctxt.c')
0 files changed, 0 insertions, 0 deletions