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>
This commit is contained in:
Rajkumar Manoharan 2011-05-09 19:11:28 +05:30 committed by John W. Linville
parent 94333f59cb
commit 2b892a98db
1 changed files with 2 additions and 1 deletions

View 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;