From patchwork Thu Jun 11 11:06:30 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthias May X-Patchwork-Id: 6587551 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 04A239F399 for ; Thu, 11 Jun 2015 11:06:49 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 24155205EB for ; Thu, 11 Jun 2015 11:06:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4EFE8205E8 for ; Thu, 11 Jun 2015 11:06:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754157AbbFKLGp (ORCPT ); Thu, 11 Jun 2015 07:06:45 -0400 Received: from mail.neratec.com ([46.140.151.2]:6733 "EHLO mail.neratec.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752990AbbFKLGj (ORCPT ); Thu, 11 Jun 2015 07:06:39 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.neratec.com (Postfix) with ESMTP id C4B9E8E4A8E for ; Thu, 11 Jun 2015 13:06:36 +0200 (CEST) Received: from mail.neratec.com ([127.0.0.1]) by localhost (mail.neratec.com [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id 5jjv_rJrNC_w; Thu, 11 Jun 2015 13:06:36 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail.neratec.com (Postfix) with ESMTP id 723BC8E4A73; Thu, 11 Jun 2015 13:06:36 +0200 (CEST) X-Virus-Scanned: amavisd-new at neratec.com Received: from mail.neratec.com ([127.0.0.1]) by localhost (mail.neratec.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id Q7n_8fUD9RZ2; Thu, 11 Jun 2015 13:06:36 +0200 (CEST) Received: from CHD500279.neratec.local (CHD500279.neratec.local [192.168.11.50]) by mail.neratec.com (Postfix) with ESMTPSA id 4FD4B8E4A78; Thu, 11 Jun 2015 13:06:36 +0200 (CEST) From: Matthias May To: linux-wireless@vger.kernel.org Cc: matthias.may@neratec.com Subject: [PATCHv2 3/4] brcm80211: send minimum bandwidth to handle Date: Thu, 11 Jun 2015 13:06:30 +0200 Message-Id: <1434020791-16291-4-git-send-email-matthias.may@neratec.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1434020791-16291-1-git-send-email-matthias.may@neratec.com> References: <1434020791-16291-1-git-send-email-matthias.may@neratec.com> 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.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, 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 add 20MHz minimum bandwidth to the calls of freq_reg_info() Signed-off-by: Matthias May --- drivers/net/wireless/brcm80211/brcmsmac/channel.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/brcm80211/brcmsmac/channel.c b/drivers/net/wireless/brcm80211/brcmsmac/channel.c index 635ae03..1de5129 100644 --- a/drivers/net/wireless/brcm80211/brcmsmac/channel.c +++ b/drivers/net/wireless/brcm80211/brcmsmac/channel.c @@ -680,7 +680,8 @@ brcms_reg_apply_beaconing_flags(struct wiphy *wiphy, if (initiator == NL80211_REGDOM_SET_BY_COUNTRY_IE) { rule = freq_reg_info(wiphy, - MHZ_TO_KHZ(ch->center_freq)); + MHZ_TO_KHZ(ch->center_freq), + MHZ_TO_KHZ(20)); if (IS_ERR(rule)) continue;