From patchwork Sat Jan 7 20:36:04 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= X-Patchwork-Id: 9503277 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 A2337606B4 for ; Sat, 7 Jan 2017 20:36:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9499C28409 for ; Sat, 7 Jan 2017 20:36:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 893D428443; Sat, 7 Jan 2017 20:36:33 +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 107CF28409 for ; Sat, 7 Jan 2017 20:36:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S941886AbdAGUga (ORCPT ); Sat, 7 Jan 2017 15:36:30 -0500 Received: from mail-lf0-f67.google.com ([209.85.215.67]:34476 "EHLO mail-lf0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933323AbdAGUgZ (ORCPT ); Sat, 7 Jan 2017 15:36:25 -0500 Received: by mail-lf0-f67.google.com with SMTP id q89so2540569lfi.1 for ; Sat, 07 Jan 2017 12:36:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=HAFKA6RpNj5LjIIgsNz7puMzy0HSOFvU79NNkFS7nAs=; b=NjxjTtEifI61tNa9a2scQlfDwW3PDL6QvMpT4TLf10XcdU+rAu7linRxkG4ncrw+Nt Dr6u9VnQJ5IrarkskZYqnAYRUc/sTZG8oDyxSqvYZYGU+R6WkVRpcOFYJpEgUSx3symk KK0YxgOIwWMNqZ+Je70Nf+oRz54QL2ttXBGwtTLThpk6nySUwH6o/JgEM/Ug3ykzZOW7 EEsayTe1jXvLtugCbvra86gM/Qz75s1zq3F+s6ZM8V+mohq85GO+MKLrzfqS7akt9v8I 0mAMNq+qIFY6Yj9p/VL7e9r5e+EjMvafRGonVLbhCMORZz/wHOlOu9gFZs5RFnJ+WTJq s18g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=HAFKA6RpNj5LjIIgsNz7puMzy0HSOFvU79NNkFS7nAs=; b=e1MW1bIW9SxolDHsa2ehmohL6y83HB351P+X1spTkX5oaxGdf4G7bSlMEKeZmTenCW 1ocwnmbJVXIEzTR6IjAuyu2rIgWeXmap4aChS4lIWsHx4FjJx9DVhDWsv9wbUwNAvZQN QxzPU1pd3cn38PBdM1ea6ZN6ON+3BPia6hisChL4Mg7kxABYgSVfkRDnA7Qb3qkRCdtJ YnDQhIy/9Z0Kae9+Y96nBHMq8uSX0bH3t+UHIf8eCOtZDLLjoMVLFxS60H9cbHOjcgWp mShGrnX81Z6t6LZvEpAj1s8zYoq+rRgTWw8GinbJsy29eKtFxvzlqQ3mNVvEcShzqL03 0+Dw== X-Gm-Message-State: AIkVDXIn9kAhHSZrpgOBJtPx6zyLiwL4a7PhadiEvGsOTUUKWUYdwVyrd2qFyho41Khbbw== X-Received: by 10.25.56.65 with SMTP id d1mr27653453lfj.171.1483821383957; Sat, 07 Jan 2017 12:36:23 -0800 (PST) Received: from linux-samsung.lan (ip-194-187-74-233.konfederacka.maverick.com.pl. [194.187.74.233]) by smtp.gmail.com with ESMTPSA id d26sm2132247lfb.37.2017.01.07.12.36.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 07 Jan 2017 12:36:22 -0800 (PST) From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= To: Kalle Valo Cc: Arend van Spriel , Franky Lin , Hante Meuleman , Pieter-Paul Giesberts , Franky Lin , linux-wireless@vger.kernel.org, brcm80211-dev-list.pdl@broadcom.com, =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= Subject: [PATCH 1/2] brcmfmac: don't preset all channels as disabled Date: Sat, 7 Jan 2017 21:36:04 +0100 Message-Id: <20170107203605.24866-1-zajec5@gmail.com> X-Mailer: git-send-email 2.10.1 MIME-Version: 1.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 From: Rafał Miłecki During init we take care of regulatory stuff by disabling all unavailable channels (see brcmf_construct_chaninfo) so this predisabling them is not really required (and this patch won't change any behavior). It will on the other hand allow more detailed runtime control over channels which is the main reason for this change. Signed-off-by: Rafał Miłecki --- drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c index 895404c..45ee5b6 100644 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c @@ -138,7 +138,6 @@ static struct ieee80211_rate __wl_rates[] = { .band = NL80211_BAND_2GHZ, \ .center_freq = (_freq), \ .hw_value = (_channel), \ - .flags = IEEE80211_CHAN_DISABLED, \ .max_antenna_gain = 0, \ .max_power = 30, \ } @@ -147,7 +146,6 @@ static struct ieee80211_rate __wl_rates[] = { .band = NL80211_BAND_5GHZ, \ .center_freq = 5000 + (5 * (_channel)), \ .hw_value = (_channel), \ - .flags = IEEE80211_CHAN_DISABLED, \ .max_antenna_gain = 0, \ .max_power = 30, \ }