From patchwork Fri May 15 21:33:03 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Larry Finger X-Patchwork-Id: 6416831 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 21EEE9F318 for ; Fri, 15 May 2015 21:33:49 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4A4652056E for ; Fri, 15 May 2015 21:33:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6DD92204AF for ; Fri, 15 May 2015 21:33:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1946150AbbEOVdk (ORCPT ); Fri, 15 May 2015 17:33:40 -0400 Received: from mail-oi0-f53.google.com ([209.85.218.53]:34395 "EHLO mail-oi0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934661AbbEOVdW (ORCPT ); Fri, 15 May 2015 17:33:22 -0400 Received: by oiko83 with SMTP id o83so92476981oik.1; Fri, 15 May 2015 14:33:20 -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=77HFh95ZTHQUufi+o8bpnGTN0/28wwHkVpu/av0dX+A=; b=qh/VamfW6IKVDuYsBi3lcE+4sk0nKYp4SMTBkO95vr4/WcmUuI3ktdRWUdiske+b8A 9hO18HVckKB4/y7fdCznZpdDOjFcRrRbrCohvMovz/c6naHlBerEOUrgjgk3jG4CwGTI MWDzRFjnHcU2ZunJTF2nb5oj0I+JwLtIKtB92/GwCIymRV7I0ETGlubPG/sny7rrvohG RSSdro/ibDJeE54XitxhjeOxdnLOPo4tI50gjqgfIDK+CN8rznQqil/QFCsVwIFcCMHW vIVFBwfePI9n2sAggRhBzuQM31B/pJDMl/eeAsM2qfEyj9vtfig2If44VuoU6947pbhO GZ3Q== X-Received: by 10.182.115.199 with SMTP id jq7mr8614103obb.27.1431725600833; Fri, 15 May 2015 14:33:20 -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.19 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 15 May 2015 14:33:20 -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 5/5] rtlwifi: rtl8821ae: Fix problem with regulatory information Date: Fri, 15 May 2015 16:33:03 -0500 Message-Id: <1431725583-7324-6-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 was not setting a channel plan. Now it gets it from EEPROM. Signed-off-by: Shao Fu Signed-off-by: Larry Finger --- drivers/net/wireless/rtlwifi/rtl8821ae/hw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/rtlwifi/rtl8821ae/hw.c b/drivers/net/wireless/rtlwifi/rtl8821ae/hw.c index 8704eee..450bd4d 100644 --- a/drivers/net/wireless/rtlwifi/rtl8821ae/hw.c +++ b/drivers/net/wireless/rtlwifi/rtl8821ae/hw.c @@ -3232,8 +3232,8 @@ static void _rtl8821ae_read_adapter_info(struct ieee80211_hw *hw, bool b_pseudo_ if (rtlefuse->eeprom_channelplan == 0xff) rtlefuse->eeprom_channelplan = 0x7F; - /* set channel paln to world wide 13 */ - /* rtlefuse->channel_plan = (u8)rtlefuse->eeprom_channelplan; */ + /* set channel plan from efuse */ + rtlefuse->channel_plan = rtlefuse->eeprom_channelplan; /*parse xtal*/ rtlefuse->crystalcap = hwinfo[EEPROM_XTAL_8821AE];