lkml.org 
[lkml]   [2013]   [Mar]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[ 034/100] ath9k: fix RSSI dummy marker value
    Date
    3.8-stable review patch.  If anyone has any objections, please let me know.

    ------------------

    From: Felix Fietkau <nbd@openwrt.org>

    commit a3d63cadbad97671d740a9698acc2c95d1ca6e79 upstream.

    RSSI is being stored internally as s8 in several places. The indication
    of an unset RSSI value, ATH_RSSI_DUMMY_MARKER, was supposed to have been
    set to 127, but ended up being set to 0x127 because of a code cleanup
    mistake. This could lead to invalid signal strength values in a few
    places.

    Signed-off-by: Felix Fietkau <nbd@openwrt.org>
    Signed-off-by: John W. Linville <linville@tuxdriver.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

    ---
    drivers/net/wireless/ath/ath9k/common.h | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    --- a/drivers/net/wireless/ath/ath9k/common.h
    +++ b/drivers/net/wireless/ath/ath9k/common.h
    @@ -27,7 +27,7 @@
    #define WME_MAX_BA WME_BA_BMP_SIZE
    #define ATH_TID_MAX_BUFS (2 * WME_MAX_BA)

    -#define ATH_RSSI_DUMMY_MARKER 0x127
    +#define ATH_RSSI_DUMMY_MARKER 127
    #define ATH_RSSI_LPF_LEN 10
    #define RSSI_LPF_THRESHOLD -20
    #define ATH_RSSI_EP_MULTIPLIER (1<<7)



    \
     
     \ /
      Last update: 2013-03-13 00:41    [W:4.089 / U:0.128 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site