Return-path: Received: from mail.deathmatch.net ([70.167.247.36]:4158 "EHLO mail.deathmatch.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751793AbYKQNil (ORCPT ); Mon, 17 Nov 2008 08:38:41 -0500 Date: Mon, 17 Nov 2008 08:37:37 -0500 From: Bob Copeland To: "Xu, Martin" Cc: Nick Kossifidis , "Luis R. Rodriguez" , linux-wireless , "yang.y.yi@gmail.com" , Vikram Kandukuri , Jothikumar Mothilal , "ath5k-devel@lists.ath5k.org" , "Liu, Bing Wei" , "Selbak, Rolla N" , "Wang, Yong Y" Subject: Re: [ath5k-devel] [Bug 11749] Ath5k driver has too many interrupts per second at idle Message-ID: <20081117133737.GA16412@hash.localnet> (sfid-20081117_143846_471899_C0B342C0) References: <20081013150525.884BC108058@picon.linux-foundation.org> <43e72e890810131206u75fd68e8p5416d7456ff44097@mail.gmail.com> <40f31dec0810131214j1709534fl2a95bb844d08513b@mail.gmail.com> <9F0C1DB20AFA954FA1DA05309350433D41083496@pdsmsx503.ccr.corp.intel.com> <9F0C1DB20AFA954FA1DA05309350433D410CD777@pdsmsx503.ccr.corp.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <9F0C1DB20AFA954FA1DA05309350433D410CD777@pdsmsx503.ccr.corp.intel.com> Sender: linux-wireless-owner@vger.kernel.org List-ID: On Mon, Nov 17, 2008 at 03:35:07PM +0800, Xu, Martin wrote: > Hi bob?? > Please review below patch which has been modified according to your comments. Thanks, looks a lot better. I still have a few minor comments: > +static void > +set_beacon_filter(struct ieee80211_hw *hw, bool enable) > +{ [...] > + return; > +} Please don't use 'return' for void functions. > +static void ath5k_bss_info_changed(struct ieee80211_hw *hw, > + struct ieee80211_vif *vif, > + struct ieee80211_bss_conf *bss_conf, > + u32 changes) > +{ > + struct ath5k_softc *sc = hw->priv; > + if (changes & BSS_CHANGED_ASSOC) { > + mutex_lock(&sc->lock); > + sc->assoc = bss_conf->assoc; > + if (sc->opmode == NL80211_IFTYPE_STATION) { > + if (sc->assoc) > + set_beacon_filter(hw, 1); > + else > + set_beacon_filter(hw, 0); No need for test: set_beacon_filter(hw, sc->assoc); > + } > + mutex_unlock(&sc->lock); > + } > + return; ditto above comment Thanks, Bob -- Bob Copeland %% www.bobcopeland.com