• Sara Sharon's avatar
    iwlwifi: mvm: fix statistics variables type · 62e004fe
    Sara Sharon authored
    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: default avatarSara Sharon <sara.sharon@intel.com>
    Signed-off-by: default avatarLuciano Coelho <luciano.coelho@intel.com>
    62e004fe
fw-api-stats.h 10.2 KB