Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2b892a98 authored by Rajkumar Manoharan's avatar Rajkumar Manoharan Committed by John W. Linville
Browse files

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: default avatarRajkumar Manoharan <rmanoharan@atheros.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 94333f59
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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;