From patchwork Fri May 15 21:33:02 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Larry Finger X-Patchwork-Id: 6416811 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id A94119F444 for ; Fri, 15 May 2015 21:33:32 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D13BD204AF for ; Fri, 15 May 2015 21:33:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id EA75B20584 for ; Fri, 15 May 2015 21:33:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1945929AbbEOVd0 (ORCPT ); Fri, 15 May 2015 17:33:26 -0400 Received: from mail-oi0-f49.google.com ([209.85.218.49]:35082 "EHLO mail-oi0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753507AbbEOVdV (ORCPT ); Fri, 15 May 2015 17:33:21 -0400 Received: by oign205 with SMTP id n205so92372482oig.2; Fri, 15 May 2015 14:33:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=Oh+ljYWj9NKV0xCfUqgcoHwzxoWf/P0DXNrnLo6JXZ8=; b=v2DrpYuf333fFqzsEqFPhW5Me2BXbr5/zC9V6qSZ+9AQSjdtP4e4Ooj7sjFFnBPBR2 Jpw0oBtcfcGTycp6g4C8SoqxK7iIHAnKeOsEdCAluXcfVE2AEGzoA8j/rlKvSRYuAR2n nPa3n4ZSvGjAmJ+a2E+m1PCvCFj7/kiHXsZQWVLbWwXxTEC2ALy8LVzpRhQF2QaPh1pH 1KbGG2H069VH4QIlSNTzF3x5hZv1Q7pVphuYYwoemVwYl1cqmtrPKOODdp7vzZAGsLTF 5AdchqgFCaWR4sGegBpRsm44iujtVPtRxpzAO3C8MuZ8laRfNW2D2zhJqMwdCGM3Gpfn d2tg== X-Received: by 10.182.181.103 with SMTP id dv7mr9017828obc.25.1431725599263; Fri, 15 May 2015 14:33:19 -0700 (PDT) Received: from linux.site.site (cpe-72-133-230-77.kc.res.rr.com. [72.133.230.77]) by mx.google.com with ESMTPSA id xs4sm1554712obc.12.2015.05.15.14.33.17 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 15 May 2015 14:33:18 -0700 (PDT) From: Larry Finger To: kvalo@codeaurora.org Cc: linux-wireless@vger.kernel.org, Shao Fu , netdev@vger.kernel.org, Larry Finger Subject: [PATCH 4/5] rtlwifi: rtl8723be: Update driver for regulatory changes Date: Fri, 15 May 2015 16:33:02 -0500 Message-Id: <1431725583-7324-5-git-send-email-Larry.Finger@lwfinger.net> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1431725583-7324-1-git-send-email-Larry.Finger@lwfinger.net> References: <1431725583-7324-1-git-send-email-Larry.Finger@lwfinger.net> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID,T_RP_MATCHES_RCVD,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 From: Shao Fu The driver is converted to use the channel plan in the EEPROM. Signed-off-by: Shao Fu Signed-off-by: Larry Finger --- drivers/net/wireless/rtlwifi/rtl8723be/hw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/rtlwifi/rtl8723be/hw.c b/drivers/net/wireless/rtlwifi/rtl8723be/hw.c index b681af3..e0f679b 100644 --- a/drivers/net/wireless/rtlwifi/rtl8723be/hw.c +++ b/drivers/net/wireless/rtlwifi/rtl8723be/hw.c @@ -2139,8 +2139,8 @@ static void _rtl8723be_read_adapter_info(struct ieee80211_hw *hw, RT_TRACE(rtlpriv, COMP_INIT, DBG_LOUD, "EEPROM Customer ID: 0x%2x\n", rtlefuse->eeprom_oemid); - /* set channel plan to world wide 13 */ - rtlefuse->channel_plan = COUNTRY_CODE_WORLD_WIDE_13; + /* set channel plan from efuse */ + rtlefuse->channel_plan = rtlefuse->eeprom_channelplan; if (rtlhal->oem_id == RT_CID_DEFAULT) { /* Does this one have a Toshiba SMID from group 1? */