From patchwork Fri Jan 17 05:27:33 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gang ZHAO X-Patchwork-Id: 3501951 Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 34F9DC02DD for ; Fri, 17 Jan 2014 05:30:30 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6368B20172 for ; Fri, 17 Jan 2014 05:30:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8AB9A2015D for ; Fri, 17 Jan 2014 05:30:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751812AbaAQFaW (ORCPT ); Fri, 17 Jan 2014 00:30:22 -0500 Received: from mail-pb0-f50.google.com ([209.85.160.50]:44201 "EHLO mail-pb0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751548AbaAQFaT (ORCPT ); Fri, 17 Jan 2014 00:30:19 -0500 Received: by mail-pb0-f50.google.com with SMTP id rq2so3636099pbb.23 for ; Thu, 16 Jan 2014 21:30:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=oqvOz91YUYJwn27ohRC7fwK9UzdZqfn1OIjrnT1pNkY=; b=m50e7wJkDMSKPqcbUbrUS4rnJmTeaxq+ADggj/k21ceYJsKlbC2ZIsmR1VZ3xcdmko ATLE8afVYeHwf2+/VooSn00CF6sVkxMSRSTJQUMZXRNdYrZMkOt+1g3vgwfy/qFOiVh4 zGotDr8phcsTerBoFRFKSNLw5CgkoLcCDmfnEbZOJGfVLScWxKHQ9EUtikAeF1yYz4B5 oLYBjSg9Y9J+peBHbuNYEG5LHqnAH002wBMUr5NwTtdQzUucbeLNIaP2tkYCS9FKNyfW FGvGVAwTwOjBI0kcDgNTiyPOP4sjlaVeuj9prLHOVx8cfBMHGrtissJRsy/Fmn2rpsxG pzDw== X-Received: by 10.68.241.101 with SMTP id wh5mr5901526pbc.134.1389936618773; Thu, 16 Jan 2014 21:30:18 -0800 (PST) Received: from localhost.localdomain ([175.153.40.33]) by mx.google.com with ESMTPSA id xu8sm26228557pab.0.2014.01.16.21.30.15 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 16 Jan 2014 21:30:18 -0800 (PST) From: ZHAO Gang To: Stefano Brivio Cc: , , "John W. Linville" Subject: [PATCH 1/2] b43: fix the wrong assignment of status.freq in b43_rx() Date: Fri, 17 Jan 2014 13:27:33 +0800 Message-Id: X-Mailer: git-send-email 1.8.4.2 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP In following patch, replace b43 specific helper function with kernel api to reduce code duplication. Signed-off-by: ZHAO Gang --- drivers/net/wireless/b43/xmit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/b43/xmit.c b/drivers/net/wireless/b43/xmit.c index 4ae63f4..50e5ddb 100644 --- a/drivers/net/wireless/b43/xmit.c +++ b/drivers/net/wireless/b43/xmit.c @@ -821,10 +821,10 @@ void b43_rx(struct b43_wldev *dev, struct sk_buff *skb, const void *_rxhdr) * channel number in b43. */ if (chanstat & B43_RX_CHAN_5GHZ) { status.band = IEEE80211_BAND_5GHZ; - status.freq = b43_freq_to_channel_5ghz(chanid); + status.freq = b43_channel_to_freq_5ghz(chanid); } else { status.band = IEEE80211_BAND_2GHZ; - status.freq = b43_freq_to_channel_2ghz(chanid); + status.freq = b43_channel_to_freq_2ghz(chanid); } break; default: