From patchwork Thu Nov 16 03:14:22 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Weixiao Zhang X-Patchwork-Id: 10060609 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 419C7604D4 for ; Thu, 16 Nov 2017 03:14:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 285862A560 for ; Thu, 16 Nov 2017 03:14:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 19B272A60F; Thu, 16 Nov 2017 03:14:47 +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=-6.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM 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 ABD6C2A560 for ; Thu, 16 Nov 2017 03:14:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758990AbdKPDOb (ORCPT ); Wed, 15 Nov 2017 22:14:31 -0500 Received: from mail-it0-f68.google.com ([209.85.214.68]:38968 "EHLO mail-it0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753083AbdKPDO1 (ORCPT ); Wed, 15 Nov 2017 22:14:27 -0500 Received: by mail-it0-f68.google.com with SMTP id y15so4270698ita.4; Wed, 15 Nov 2017 19:14:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id; bh=lTAp5nnN5PMrTu3ZmnrXfyiyZKb6xPFcP49nexTK8QA=; b=U3gYZyfLLlusq/32x6xhFQtz4WBLQmaax2W1LFUajhEqu8OR77siNQyPf058bJBv/Q BpStjEHbvrefV2CDE95xcVefViZfpOHrsDPXemYFl2F46ubY3ktbw0WOy45gEVW2qd6X 2Lakk7azKNY2IQFNZ2thKFcBiiaVQtIDLNOPPxunPPHVcvguciNHuBykO9aNDwOvMiLY q3m9Eoqvn/zLcZmF60d0JuL+6OBUiRXv2Ubu85zXseKMb7sLrGLBe91nXXeQZnnLLdip LD9qXanC+INN9Flh8BfFA+xV4wnfjXUDEY0nGp53dxFZmR6nH8LA4746RSQmzAffteDu bK3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=lTAp5nnN5PMrTu3ZmnrXfyiyZKb6xPFcP49nexTK8QA=; b=JhrVn8gtj/U1SMFkrbK6cSpPDM3VnouL1hi4YaiLWC1zXiQhqRdXZKWZtC+/jcoPLa wTJllcvemZvGEI1q7qPa04iRganLNc8jpbvVZcjnCGtLntM5z1FWy2Xsw2X7Wb9OlaSI 8vPYnU+16Zh3w822ndu2pspVfLGb6h5TEJym3Ka19l7HYYrTptMSlimmVaHkuXjnHVlK DLxEZG5DJc9AfeROznYqVi85T9MGt8kY9womuv+4KxjNm5piBuifm4AS4+X/XgR+UMr5 NUvHIQYIvyKF33A0rM7DGr0LkzEkx2KjTJPaQ4Ed8G7ZSNVb4HSPYiwrnZBgIS08Pvy4 BjGw== X-Gm-Message-State: AJaThX6k36Z/5suKKuo/PTSX/FslizHT3jZzkSNXcE1R7WFFtzjpmsno 3r2pwRM0c2SS8nfdsT3ovOOBUWQI X-Google-Smtp-Source: AGs4zMa6KYouU6ZvV35NlSH0G7zntA2dLbLsrWxHBwgMMduZK0QhG3jXlBXEywCTw9edRx+t8i14FQ== X-Received: by 10.36.252.68 with SMTP id b65mr711554ith.151.1510802066382; Wed, 15 Nov 2017 19:14:26 -0800 (PST) Received: from ximibaba (c-98-253-232-104.hsd1.il.comcast.net. [98.253.232.104]) by smtp.gmail.com with ESMTPSA id a29sm256868itj.8.2017.11.15.19.14.25 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 15 Nov 2017 19:14:25 -0800 (PST) From: Weixiao Zhang To: Lennert Buytenhek , Kalle Valo , Johannes Berg , Andrew Zaborowski , Weixiao Zhang , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] mac80211: mwl8k: Expand non-DFS 5G channels Date: Wed, 15 Nov 2017 21:14:22 -0600 Message-Id: <20171116031422.5408-1-waveletboy@gmail.com> X-Mailer: git-send-email 2.11.0 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 Signed-off-by: Weixiao Zhang --- drivers/net/wireless/marvell/mwl8k.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/marvell/mwl8k.c b/drivers/net/wireless/marvell/mwl8k.c index e813b2ca740c..8e4e9b6919e0 100644 --- a/drivers/net/wireless/marvell/mwl8k.c +++ b/drivers/net/wireless/marvell/mwl8k.c @@ -199,7 +199,7 @@ struct mwl8k_priv { struct ieee80211_channel channels_24[14]; struct ieee80211_rate rates_24[13]; struct ieee80211_supported_band band_50; - struct ieee80211_channel channels_50[4]; + struct ieee80211_channel channels_50[9]; struct ieee80211_rate rates_50[8]; u32 ap_macids_supported; u32 sta_macids_supported; @@ -383,6 +383,11 @@ static const struct ieee80211_channel mwl8k_channels_50[] = { { .band = NL80211_BAND_5GHZ, .center_freq = 5200, .hw_value = 40, }, { .band = NL80211_BAND_5GHZ, .center_freq = 5220, .hw_value = 44, }, { .band = NL80211_BAND_5GHZ, .center_freq = 5240, .hw_value = 48, }, + { .band = NL80211_BAND_5GHZ, .center_freq = 5745, .hw_value = 149, }, + { .band = NL80211_BAND_5GHZ, .center_freq = 5765, .hw_value = 153, }, + { .band = NL80211_BAND_5GHZ, .center_freq = 5785, .hw_value = 157, }, + { .band = NL80211_BAND_5GHZ, .center_freq = 5805, .hw_value = 161, }, + { .band = NL80211_BAND_5GHZ, .center_freq = 5825, .hw_value = 165, }, }; static const struct ieee80211_rate mwl8k_rates_50[] = {