Return-path: Received: from mail-we0-f180.google.com ([74.125.82.180]:55778 "EHLO mail-we0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751027Ab3BPEIx convert rfc822-to-8bit (ORCPT ); Fri, 15 Feb 2013 23:08:53 -0500 Received: by mail-we0-f180.google.com with SMTP id k14so3314563wer.39 for ; Fri, 15 Feb 2013 20:08:52 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: Date: Fri, 15 Feb 2013 20:08:51 -0800 Message-ID: (sfid-20130216_050858_343549_A2880D38) Subject: Re: improve operational ANI in Mesh mode From: Adrian Chadd To: Georgiewskiy Yuriy Cc: linux-wireless@vger.kernel.org, ath9k-devel@lists.ath9k.org, devel@lists.open80211s.org Content-Type: text/plain; charset=KOI8-R Sender: linux-wireless-owner@vger.kernel.org List-ID: I think this is correct. adrian On 15 February 2013 18:43, Georgiewskiy Yuriy wrote: > > Hi, in our setups we experience pure ANI operational in mesh mode > VS AP mode, after debuffing and digging in ANI code i find what ANI > in AP mode work in limited mode, i try this mode with mesh and seems > getting same good operation as in AP mode, i am not familiar with ANI > may be there is another better way to fix this issue? > > changes what i made: > > diff -ruN compat-drivers-3.7.6-1/drivers/net/wireless/ath/ath9k/ani.c > compat-drivers-3.7.6-1-new/drivers/net/wireless/ath/ath9k/ani.c > --- compat-drivers-3.7.6-1/drivers/net/wireless/ath/ath9k/ani.c 2013-02-11 > 04:23:53.000000000 +0400 > +++ compat-drivers-3.7.6-1-new/drivers/net/wireless/ath/ath9k/ani.c > 2013-02-16 05:03:46.640746411 +0400 > @@ -303,7 +303,8 @@ > ah->stats.ast_ani_reset++; > > /* only allow a subset of functions in AP mode */ > - if (ah->opmode == NL80211_IFTYPE_AP) { > + if (ah->opmode == NL80211_IFTYPE_AP || ah->opmode == > NL80211_IFTYPE_MESH_POINT) { > + ath_dbg(common, ANI, "only allow a subset of functions in AP > or MESH mode"); > if (IS_CHAN_2GHZ(chan)) { > ah->ani_function = (ATH9K_ANI_SPUR_IMMUNITY_LEVEL | > ATH9K_ANI_FIRSTEP_LEVEL); > @@ -323,7 +324,8 @@ > > if (is_scanning || > (ah->opmode != NL80211_IFTYPE_STATION && > - ah->opmode != NL80211_IFTYPE_ADHOC)) { > + ah->opmode != NL80211_IFTYPE_ADHOC && + ah->opmode != > NL80211_IFTYPE_MESH_POINT)) { > /* > * If we're scanning or in AP mode, the defaults (ini) > * should be in place. For an AP we assume the historical > > > > C ????????? With Best Regards > ???????????? ????. Georgiewskiy Yuriy > +7 4872 711666 +7 4872 711666 > ???? +7 4872 711143 fax +7 4872 711143 > ???????? ??? "?? ?? ??????" IT Service Ltd > http://nkoort.ru http://nkoort.ru > JID: GHhost@icf.org.ru JID: GHhost@icf.org.ru > YG129-RIPE YG129-RIPE