Patch "mac80211: fix driver RSSI event calculations" has been added to the 4.1-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
mac80211: fix driver RSSI event calculations
to the 4.1-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
mac80211-fix-driver-rssi-event-calculations.patch
and it can be found in the queue-4.1 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
8ec6d97871f37e4743678ea4a455bd59580aa0f4Mon Sep 17 00:00:00 2001
From: Johannes Berg <[email protected]>
Date: Fri, 28 Aug 2015 10:52:53 +0200
Subject: mac80211: fix driver RSSI event calculations
From: Johannes Berg <[email protected]>
commit 8ec6d97871f37e4743678ea4a455bd59580aa0f4 upstream.
The ifmgd->ave_beacon_signal value cannot be taken as is for comparisons, it must be divided by since it's represented like that for better accuracy of the EWMA calculations. This would lead to invalid driver RSSI events. Fix the used value.
--- net/mac80211/mlme.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/mac80211/mlme.c +1 -1
@@ -3340,7 +3340,7 @@ static void ieee80211_rx_mgmt_beacon(strif (ifmgd->rssi_min_thold != ifmgd->rssi_max_thold && ifmgd->count_beacon_signal >=IEEE80211_SIGNAL_AVE_MIN_COUNT ) { -int sig = ifmgd->ave_beacon_signal; +int sig = ifmgd->ave_beacon_signal /16 ;int last_sig = ifmgd->last_ave_beacon_signal;struct ieee80211_event event = { .type =RSSI_EVENT ,
Patches currently in stable-queue which might be from [email protected] are
queue-4.1/mac80211-fix-local-deauth-while-associating.patch queue-4.1/nl80211-fix-potential-memory-leak-from-parse_acl_data.patch queue-4.1/mac80211-fix-divide-by-zero-when-noa-update.patch queue-4.1/mac80211-allow-null-chandef-in-tracing.patch queue-4.1/mac80211-fix-driver-rssi-event-calculations.patch