]> git.baikalelectronics.ru Git - kernel.git/commit
ath9k: make sure main_rssi is positive
authorMohammed Shafi Shajakhan <mshajakhan@atheros.com>
Fri, 13 May 2011 15:01:40 +0000 (20:31 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 16 May 2011 18:10:47 +0000 (14:10 -0400)
commit23dea5da565dc065f1b36e5e0338a6ce71bcf88b
tree74a9248670c1a5347d8ec58b6bc3c7703e94f4c7
parent6a94b32f2ae1e4777bc7999ad5c36b068bcbbfd9
ath9k: make sure main_rssi is positive

some times the rssi control descriptor for the main antenna may be
negative like that of alternate antenna, hence before  incrementing
packet counts/rssi of main/alternate antenna make sure both main_rssi
and alt_rssi are positive only. this avoids wrong selection of antenna
due to diversity

Cc: Gabriel Tseng <Gabriel.Tseng@Atheros.com>
Cc: Senthilkumar Balasubramanian <Senthilkumar.Balasubramanian@Atheros.com>
Signed-off-by: Mohammed Shafi Shajakhan <mshajakhan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/recv.c