From patchwork Wed Nov 1 15:29:21 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Larry Finger X-Patchwork-Id: 10036513 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A10A8603B5 for ; Wed, 1 Nov 2017 15:29:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9571728628 for ; Wed, 1 Nov 2017 15:29:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8A698289E2; Wed, 1 Nov 2017 15:29:58 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID, URIBL_BLACK autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 36F1828628 for ; Wed, 1 Nov 2017 15:29:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754553AbdKAP35 (ORCPT ); Wed, 1 Nov 2017 11:29:57 -0400 Received: from mail-oi0-f67.google.com ([209.85.218.67]:44546 "EHLO mail-oi0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754593AbdKAP3i (ORCPT ); Wed, 1 Nov 2017 11:29:38 -0400 Received: by mail-oi0-f67.google.com with SMTP id v132so5036852oie.1 for ; Wed, 01 Nov 2017 08:29:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=PgvFdMaoNUalfe2KlKpW/zGv4HJGHN2VLMBMlRyBOTs=; b=ayXtr2rsHjyq+PQvnCXR9UoslJBuHnxzP9iQdKSG26Bb+xM0sGtS02QVDRs6uherQD N7Ix202y8WZzCCPTws6IFjvE/tflVi9uUtFGUwhxiGFG8He5S1djMmchdj0iAo3DEBde qKzjp8hcCM7mnItxIn/X/D2hG6zcZjtOqY18qatq9ArSLoqFUFFdRnsbstnStNe2AZl1 DZxL0hDgq9zGTIep6v9SaxbvV10tr108YhtsVeeYpESAs9XNF+wu4HDZkqdTnsJCvxKT OVsOSV9P4Hpbv2euC5sX4fZoYV3NB7y9AXursFTvi/4hPtPp+OlgZP1T0AgDAz0pWCwB or+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=PgvFdMaoNUalfe2KlKpW/zGv4HJGHN2VLMBMlRyBOTs=; b=hbg6xHU0/p6UE7YSkuUulAbjWPad5UKr51jXH5ToxgIHO4f57/U8Gg/ZZSWYFjiMm3 iAj9/rrxqjWJrWzSHsBvEsynf8MjVziIv3IIfR3lIEZH3zjwNjhtZwpMC00gvngfFy8w 8heGj8CZave6K+8y9bfUAXxqeepEqqnQwA8Hks1GibSHjvLoyPfMmt0ayK6RcbucdreY RNXDbOa2Dr/IPmQ1cNCEk9cW1+CIJW6j3MHM45jJJIS4pfS7vRgxpl2ZVDJGTx7qA6EA 9G/lXpcLANL61ZGIfYQCbiAgfvAtLAzb/Yc9cnhwdeyWP8/aCvM0aClxJ+qd2cT1Zxrc dROg== X-Gm-Message-State: AJaThX5m6jVfgOcEOWdPxKgi0sMaZRF0CX5BljmO0AglkBkS9WxlchOx LUduyCQ0C5dQPJEnpkU0s+s= X-Google-Smtp-Source: ABhQp+RkZ0slvSduhk+g1WhfI2IRehFoO79vxGpMY9QYYC4gIllWSJaaDDzetN31B1NPFWlodLFiWQ== X-Received: by 10.157.63.173 with SMTP id r42mr145075otc.107.1509550177489; Wed, 01 Nov 2017 08:29:37 -0700 (PDT) Received: from Larrylap.localdomain (cpe-24-31-251-255.kc.res.rr.com. [24.31.251.255]) by smtp.gmail.com with ESMTPSA id v21sm338515ote.49.2017.11.01.08.29.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 01 Nov 2017 08:29:37 -0700 (PDT) From: Larry Finger To: kvalo@codeaurora.org Cc: linux-wireless@vger.kernel.org, Ping-Ke Shih , Larry Finger , Yan-Hsuan Chuang , Birming Chiu , Shaofu , Steven Ting Subject: [PATCH 06/11] rtlwifi: rtl_pci: Add ID for 8822BE Date: Wed, 1 Nov 2017 10:29:21 -0500 Message-Id: <20171101152926.24971-7-Larry.Finger@lwfinger.net> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20171101152926.24971-1-Larry.Finger@lwfinger.net> References: <20171101152926.24971-1-Larry.Finger@lwfinger.net> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Ping-Ke Shih When the driver for the RTL8822BE is added, it will need an ID for further use. Signed-off-by: Ping-Ke Shih Signed-off-by: Larry Finger Cc: Yan-Hsuan Chuang Cc: Birming Chiu Cc: Shaofu Cc: Steven Ting --- drivers/net/wireless/realtek/rtlwifi/pci.c | 5 +++++ drivers/net/wireless/realtek/rtlwifi/pci.h | 1 + 2 files changed, 6 insertions(+) diff --git a/drivers/net/wireless/realtek/rtlwifi/pci.c b/drivers/net/wireless/realtek/rtlwifi/pci.c index 0c30f4bf657b..874e1e593da9 100644 --- a/drivers/net/wireless/realtek/rtlwifi/pci.c +++ b/drivers/net/wireless/realtek/rtlwifi/pci.c @@ -1967,6 +1967,11 @@ static bool _rtl_pci_find_adapter(struct pci_dev *pdev, rtlhal->hw_type = HARDWARE_TYPE_RTL8812AE; RT_TRACE(rtlpriv, COMP_INIT, DBG_LOUD, "Find adapter, Hardware type is 8812AE\n"); + } else if (deviceid == RTL_PCI_8822BE_DID) { + rtlhal->hw_type = HARDWARE_TYPE_RTL8822BE; + rtlhal->bandset = BAND_ON_BOTH; + RT_TRACE(rtlpriv, COMP_INIT, DBG_LOUD, + "Find adapter, Hardware type is 8822BE\n"); } else { RT_TRACE(rtlpriv, COMP_ERR, DBG_WARNING, "Err: Unknown device - vid/did=%x/%x\n", diff --git a/drivers/net/wireless/realtek/rtlwifi/pci.h b/drivers/net/wireless/realtek/rtlwifi/pci.h index 6bf346ec4616..ce33fe7bc7c4 100644 --- a/drivers/net/wireless/realtek/rtlwifi/pci.h +++ b/drivers/net/wireless/realtek/rtlwifi/pci.h @@ -109,6 +109,7 @@ #define RTL_PCI_8192EE_DID 0x818B /*8192ee*/ #define RTL_PCI_8821AE_DID 0x8821 /*8821ae*/ #define RTL_PCI_8812AE_DID 0x8812 /*8812ae*/ +#define RTL_PCI_8822BE_DID 0xB822 /*8822be*/ /*8192 support 16 pages of IO registers*/ #define RTL_MEM_MAPPED_IO_RANGE_8190PCI 0x1000