Return-path: Received: from col0-omc3-s5.col0.hotmail.com ([65.55.34.143]:1750 "EHLO col0-omc3-s5.col0.hotmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932542Ab0J1MPO convert rfc822-to-8bit (ORCPT ); Thu, 28 Oct 2010 08:15:14 -0400 Message-ID: From: Rajkumar Manoharan To: , CC: , Subject: RE: [RFC] ath9k: Fix incorrect access of rate flags in RC Date: Thu, 28 Oct 2010 17:45:13 +0530 In-Reply-To: <4CC65C42.70604@atheros.com> References: <1288021004-7315-1-git-send-email-mshajakhan@atheros.com> ,<4CC65C42.70604@atheros.com> Content-Type: text/plain; charset="iso-8859-1" MIME-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org List-ID: > looks like ,but not very sure Luis,need to consult Senthil and will tell > you. > thanks, > shafi > > On Monday 25 October 2010 10:06 PM, Luis R. Rodriguez wrote: > > On Mon, Oct 25, 2010 at 8:36 AM, Mohammed Shafi Shajakhan > > wrote: > > > >> From: Mohammed Shafi Shajakhan > >> > >> The index variable to access the rate flags should be obtained from the > >> inner loop counter which corresponds to rate table structure. > >> > >> Signed-off-by: Mohammed Shafi Shajakhan > >> > > Is this a stable fix? > > > > Luis > > Yes it is a stable fix. It solves the invalid rate selection when the supported basic rate is invalid on a purticular band. This patch fixed the following warning message. Call Trace: ?[] warn_slowpath_common+0x7a/0xb0 ?[] warn_slowpath_null+0x15/0x20 ?[] ath_get_rate+0x595/0x5b0 [ath9k] ?[] ? cpumask_next_and+0x36/0x50 ?[] rate_control_get_rate+0x86/0x160 [mac80211] ?[] invoke_tx_handlers+0x81c/0x12d0 [mac80211] ?[] ieee80211_tx+0x89/0x2b0 [mac80211] ?[] ? pskb_expand_head+0x1cc/0x1f0 ?[] ieee80211_xmit+0xb5/0x1c0 [mac80211] ?[] ieee80211_tx_skb+0x4f/0x60 [mac80211] ?[] ieee80211_send_nullfunc+0x46/0x60 [mac80211] ?[] ieee80211_offchannel_stop_station+0x107/0x150 [mac80211] ?[] ? pskb_expand_head+0x1cc/0x1f0 ?[] ieee80211_xmit+0xb5/0x1c0 [mac80211] ?[] ieee80211_tx_skb+0x4f/0x60 [mac80211] ?[] ieee80211_send_nullfunc+0x46/0x60 [mac80211] ?[] ieee80211_offchannel_stop_station+0x107/0x150 [mac80211] ?[] ieee80211_scan_work+0x146/0x600 [mac80211] ?[] ? schedule+0x2f5/0x8e0 ?[] ? ieee80211_scan_work+0x0/0x600 [mac80211] ?[] process_one_work+0x10f/0x380 ?[] worker_thread+0x162/0x340 ?[] ? worker_thread+0x0/0x340 - Rajkumar