summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/mvm/mvm.h
diff options
context:
space:
mode:
authorSara Sharon2015-08-20 13:12:58 +0200
committerLuciano Coelho2015-08-28 12:26:32 +0200
commit62e004fe941d56cb70ea9148bb79cf6698751248 (patch)
tree8bcfbfc3c8405d268d64381af04816f9ddcc0ccf /drivers/net/wireless/iwlwifi/mvm/mvm.h
parentiwlwifi: mvm: remove netdetect debugfs entry (diff)
downloadkernel-qcow2-linux-62e004fe941d56cb70ea9148bb79cf6698751248.tar.gz
kernel-qcow2-linux-62e004fe941d56cb70ea9148bb79cf6698751248.tar.xz
kernel-qcow2-linux-62e004fe941d56cb70ea9148bb79cf6698751248.zip
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>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/mvm/mvm.h')
-rw-r--r--drivers/net/wireless/iwlwifi/mvm/mvm.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/wireless/iwlwifi/mvm/mvm.h b/drivers/net/wireless/iwlwifi/mvm/mvm.h
index b95a07ec9e36..72cd67eab06f 100644
--- a/drivers/net/wireless/iwlwifi/mvm/mvm.h
+++ b/drivers/net/wireless/iwlwifi/mvm/mvm.h
@@ -323,11 +323,11 @@ enum iwl_bt_force_ant_mode {
struct iwl_mvm_vif_bf_data {
bool bf_enabled;
bool ba_enabled;
- s8 ave_beacon_signal;
- s8 last_cqm_event;
- s8 bt_coex_min_thold;
- s8 bt_coex_max_thold;
- s8 last_bt_coex_event;
+ int ave_beacon_signal;
+ int last_cqm_event;
+ int bt_coex_min_thold;
+ int bt_coex_max_thold;
+ int last_bt_coex_event;
};
/**