From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mx1.redhat.com ([209.132.183.28]:57771 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750969Ab0KXOMI (ORCPT ); Wed, 24 Nov 2010 09:12:08 -0500 Date: Wed, 24 Nov 2010 15:11:33 +0100 From: Stanislaw Gruszka To: Johannes Berg Cc: Wey-Yi Guy , Intel Linux Wireless , linux-wireless@vger.kernel.org Subject: Re: [PATCH] iwlwifi: avoid "Error sending TX power (-5)" Message-ID: <20101124141133.GA2983@redhat.com> References: <1290595069-3878-1-git-send-email-sgruszka@redhat.com> <1290595452.3790.13.camel@jlt3.sipsolutions.net> <20101124130403.GA2446@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <20101124130403.GA2446@redhat.com> Sender: linux-wireless-owner@vger.kernel.org List-ID: On Wed, Nov 24, 2010 at 02:04:03PM +0100, Stanislaw Gruszka wrote: > On Wed, Nov 24, 2010 at 11:44:12AM +0100, Johannes Berg wrote: > > On Wed, 2010-11-24 at 11:37 +0100, Stanislaw Gruszka wrote: > > > We can have this error message when loading or unloading module, when > > > device is not marked as ready, but we want to set tx power from > > > commit_rxon. Perhaps something better should be done like call > > > lib->send_tx_power() directly from commit_rxon, but for now just > > > do not return error. > > > > I think this actually fixes it, as opposed to hiding it: > > > > http://git.kernel.org/?p=linux/kernel/git/iwlwifi/iwlwifi-2.6.git;a=commitdiff;h=9e2e7422d059f9b98c3a0810df92a1ff660ade2f > > Yes. Not fully, message disappears at start, but not when module is unloaded. Stanislaw