Return-path: Received: from mail-qc0-f174.google.com ([209.85.216.174]:33857 "EHLO mail-qc0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759925Ab2EKQxY convert rfc822-to-8bit (ORCPT ); Fri, 11 May 2012 12:53:24 -0400 Received: by qcro28 with SMTP id o28so2148666qcr.19 for ; Fri, 11 May 2012 09:53:23 -0700 (PDT) MIME-Version: 1.0 Reply-To: sedat.dilek@gmail.com In-Reply-To: <1336665952-24363-5-git-send-email-johannes@sipsolutions.net> References: <1336665952-24363-1-git-send-email-johannes@sipsolutions.net> <1336665952-24363-5-git-send-email-johannes@sipsolutions.net> Date: Fri, 11 May 2012 18:53:23 +0200 Message-ID: (sfid-20120511_185327_654387_5F47D475) Subject: Re: [PATCH 4/4] iwlwifi: do not send lq cmd when station add fails From: Sedat Dilek To: Johannes Berg Cc: linville@tuxdriver.com, linux-wireless@vger.kernel.org, Meenakshi Venkataraman Content-Type: text/plain; charset=UTF-8 Sender: linux-wireless-owner@vger.kernel.org List-ID: On Thu, May 10, 2012 at 6:05 PM, Johannes Berg wrote: > From: Meenakshi Venkataraman > > When adding a station fails in > iwl_restore_stations, the driver treats it > like a successful station add and sends a > link quality command, when it it shouldn't. > > This patch fixes one of the potential > sources for kernel warnings like this one: > > WARNING: at drivers/net/wireless/iwlwifi/iwl-agn-sta.c:905 iwl_send_lq_cmd+0x130/0x217 [iwlwifi]() > Hardware name: 3323A2G > Modules linked in: ... > Pid: 17359, comm: kworker/u:2 Tainted: G           O 3.3.0-wl+ #1 > Call Trace: >  [] warn_slowpath_common+0x7e/0x96 >  [] warn_slowpath_null+0x15/0x17 >  [] iwl_send_lq_cmd+0x130/0x217 [iwlwifi] >  [] iwl_restore_stations+0x209/0x289 [iwlwifi] >  [] iwlagn_commit_rxon+0x602/0x7bd [iwlwifi] >  [] iwlagn_bss_info_changed+0x247/0x31a [iwlwifi] >  [] ieee80211_bss_info_change_notify+0x1a5/0x1ba [mac80211] >  [] ieee80211_destroy_auth_data+0x4b/0x70 [mac80211] >  [] ieee80211_sta_work+0xb5/0x954 [mac80211] > > Signed-off-by: Meenakshi Venkataraman > Reviewed-by: Wey-Yi W Guy > Reviewed-by: Emmanuel Grumbach > Signed-off-by: Johannes Berg > Tested-by: Sedat Dilek