aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath
diff options
context:
space:
mode:
authorRajkumar Manoharan <rmanoharan@atheros.com>2011-05-09 09:41:28 -0400
committerJohn W. Linville <linville@tuxdriver.com>2011-05-10 15:54:53 -0400
commit2b892a98db269b96ed097d560aaaa371907d20f5 (patch)
treecd9b6347826c1c69a41f4d57288e719683ac32a2 /drivers/net/wireless/ath
parent94333f59cba08a1f6513ecd7e2fc5b85c1949a98 (diff)
ath9k: Fix rssi update in ad-hoc mode
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>
Diffstat (limited to 'drivers/net/wireless/ath')
-rw-r--r--drivers/net/wireless/ath/ath9k/recv.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/recv.c b/drivers/net/wireless/ath/ath9k/recv.c
index a485c040bf8..9fcd1e4f450 100644
--- a/drivers/net/wireless/ath/ath9k/recv.c
+++ b/drivers/net/wireless/ath/ath9k/recv.c
@@ -917,7 +917,8 @@ static void ath9k_process_rssi(struct ath_common *common,
917 int last_rssi; 917 int last_rssi;
918 __le16 fc; 918 __le16 fc;
919 919
920 if (ah->opmode != NL80211_IFTYPE_STATION) 920 if ((ah->opmode != NL80211_IFTYPE_STATION) &&
921 (ah->opmode != NL80211_IFTYPE_ADHOC))
921 return; 922 return;
922 923
923 fc = hdr->frame_control; 924 fc = hdr->frame_control;