ath9k: Fix rssi update in ad-hoc mode
authorRajkumar Manoharan <rmanoharan@atheros.com>
Mon, 9 May 2011 13:41:28 +0000 (19:11 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 10 May 2011 19:54:53 +0000 (15:54 -0400)
The average beacon rssi which will be used by ani is not updated
in adhoc mode.

Signed-off-by: Rajkumar Manoharan <rmanoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/recv.c

index a485c04..9fcd1e4 100644 (file)
@@ -917,7 +917,8 @@ static void ath9k_process_rssi(struct ath_common *common,
        int last_rssi;
        __le16 fc;
 
-       if (ah->opmode != NL80211_IFTYPE_STATION)
+       if ((ah->opmode != NL80211_IFTYPE_STATION) &&
+           (ah->opmode != NL80211_IFTYPE_ADHOC))
                return;
 
        fc = hdr->frame_control;