diff options
author | Rajkumar Manoharan <rmanoharan@atheros.com> | 2011-05-09 19:11:28 +0530 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-05-10 15:54:53 -0400 |
commit | 2b892a98db269b96ed097d560aaaa371907d20f5 (patch) | |
tree | cd9b6347826c1c69a41f4d57288e719683ac32a2 | |
parent | 94333f59cba08a1f6513ecd7e2fc5b85c1949a98 (diff) | |
download | blackbird-op-linux-2b892a98db269b96ed097d560aaaa371907d20f5.tar.gz blackbird-op-linux-2b892a98db269b96ed097d560aaaa371907d20f5.zip |
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>
-rw-r--r-- | drivers/net/wireless/ath/ath9k/recv.c | 3 |
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 a485c040bf80..9fcd1e4f4504 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, 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; |