From patchwork Mon May 9 13:41:28 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rajkumar Manoharan X-Patchwork-Id: 769122 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.3) with ESMTP id p49DfnSi000893 for ; Mon, 9 May 2011 13:41:49 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753310Ab1EINlr (ORCPT ); Mon, 9 May 2011 09:41:47 -0400 Received: from mail.atheros.com ([12.19.149.2]:51777 "EHLO mail.atheros.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752924Ab1EINlr (ORCPT ); Mon, 9 May 2011 09:41:47 -0400 Received: from mail.atheros.com ([10.234.20.104]) by sidewinder.atheros.com for ; Mon, 09 May 2011 06:41:18 -0700 Received: from mail.atheros.com (10.12.4.18) by SC1EXHC-01.global.atheros.com (10.10.20.111) with Microsoft SMTP Server (TLS) id 8.2.213.0; Mon, 9 May 2011 06:41:45 -0700 Received: by mail.atheros.com (sSMTP sendmail emulation); Mon, 09 May 2011 19:11:41 +0530 From: Rajkumar Manoharan To: CC: , Rajkumar Manoharan Subject: [PATCH 3/4] ath9k: Fix rssi update in ad-hoc mode Date: Mon, 9 May 2011 19:11:28 +0530 Message-ID: <1304948489-14585-3-git-send-email-rmanoharan@atheros.com> X-Mailer: git-send-email 1.7.5.1 In-Reply-To: <1304948489-14585-1-git-send-email-rmanoharan@atheros.com> References: <1304948489-14585-1-git-send-email-rmanoharan@atheros.com> MIME-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Mon, 09 May 2011 13:41:49 +0000 (UTC) The average beacon rssi which will be used by ani is not updated in adhoc mode. Signed-off-by: Rajkumar Manoharan --- 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 a485c04..9fcd1e4 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;