Return-path: Received: from sabertooth02.qualcomm.com ([65.197.215.38]:64768 "EHLO sabertooth02.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751176AbbJIOl2 (ORCPT ); Fri, 9 Oct 2015 10:41:28 -0400 From: Kalle Valo To: CC: , Subject: Re: [PATCH] ath10k: Fix OFDM rx-rate reporting. References: <1444173675-16833-1-git-send-email-greearb@candelatech.com> Date: Fri, 9 Oct 2015 17:41:19 +0300 In-Reply-To: <1444173675-16833-1-git-send-email-greearb@candelatech.com> (greearb@candelatech.com's message of "Tue, 6 Oct 2015 16:21:15 -0700") Message-ID: <87egh4qf3k.fsf@kamboji.qca.qualcomm.com> (sfid-20151009_164132_304885_D30831F0) MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: linux-wireless-owner@vger.kernel.org List-ID: greearb@candelatech.com writes: > From: Ben Greear > > The ath10k hw_rate codes are duplicated for > cck and ofdm modes, so we have to check a flag to > see if rate is cck or not when searching for > the proper bitrate. > > This fixes monitor mode reporting invalid rates > on my setup. > > Signed-off-by: Ben Greear Please rebase, doesn't apply and it used unknown SHA1 ids: Applying: ath10k: Fix OFDM rx-rate reporting. fatal: sha1 information is lacking or useless (drivers/net/wireless/ath/ath10k/htt_rx.c). Repository lacks necessary blobs to fall back on 3-way merge. Cannot fall back to three-way merge. Patch failed at 0001 ath10k: Fix OFDM rx-rate reporting. > u8 ath10k_mac_hw_rate_to_idx(const struct ieee80211_supported_band *sband, > - u8 hw_rate) > + u8 hw_rate, u8 cck) A boolean for cck would be nice because that's what it release is. > @@ -99,6 +99,12 @@ u8 ath10k_mac_hw_rate_to_idx(const struct ieee80211_supported_band *sband, > for (i = 0; i < sband->n_bitrates; i++) { > rate = &sband->bitrates[i]; > > + /* hw_rate values are not unique, have to tie-break with bitrate > + * and cck check. > + */ > + if (ath10k_mac_bitrate_is_cck(rate->bitrate) && !cck) > + continue; Then this check could be just 'if (is_cck() != cck) -- Kalle Valo