iwlwifi: mvm: fix statistics variables type
authorSara Sharon <sara.sharon@intel.com>
Thu, 20 Aug 2015 11:12:58 +0000 (14:12 +0300)
committerLuciano Coelho <luciano.coelho@intel.com>
Fri, 28 Aug 2015 10:26:32 +0000 (13:26 +0300)
commit62e004fe941d56cb70ea9148bb79cf6698751248
tree8bcfbfc3c8405d268d64381af04816f9ddcc0ccf
parentdbb04b0d29f884dbb6d0a52dd7877445d2e776f1
iwlwifi: mvm: fix statistics variables type

When receiving statistics notification there is a field of average energy.
This is defines as signed 8 bit, while FW refers to it as unsigned.
when the energy is higher than 127 this causes in iwl_mvm_stat_iterator
a wrong computation of the signal
     int sig = -stats->general.beacon_filter_average_energy;
resulting in incorrect CQM event (change from low to high).

While at it - update the rest of the fields to the correct type.

Signed-off-by: Sara Sharon <sara.sharon@intel.com>
Signed-off-by: Luciano Coelho <luciano.coelho@intel.com>
drivers/net/wireless/iwlwifi/mvm/fw-api-stats.h
drivers/net/wireless/iwlwifi/mvm/mvm.h
drivers/net/wireless/iwlwifi/mvm/rx.c