From patchwork Mon Jan 2 07:28:29 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: 9493137 X-Patchwork-Delegate: johannes@sipsolutions.net 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 0003362AB2 for ; Mon, 2 Jan 2017 07:28:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EDD882236A for ; Mon, 2 Jan 2017 07:28:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E2CF52675C; Mon, 2 Jan 2017 07:28:50 +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=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI 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 EB6B926212 for ; Mon, 2 Jan 2017 07:28:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754808AbdABH2p (ORCPT ); Mon, 2 Jan 2017 02:28:45 -0500 Received: from mail-lf0-f67.google.com ([209.85.215.67]:32955 "EHLO mail-lf0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754754AbdABH2o (ORCPT ); Mon, 2 Jan 2017 02:28:44 -0500 Received: by mail-lf0-f67.google.com with SMTP id y21so39487319lfa.0; Sun, 01 Jan 2017 23:28:43 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=ec1T2eRZpE72UwwkmjaZpv1H2EV0zBKbTWgIVzT162k=; b=MbwXmSyURoBS3VE9WF3lY8FRtGVO/Wsv8dKOq/aKa9Mlu29P4StE4QOEqlbDoiIM4E Ih8EmJM0IEVT8/u/kxi66s0C1bN/YhvyvqL6Yc0KJL6wtJUM/+JZP0C5c2zyRD3NpY77 b0ynAmkdDZmnMxxRwALWbrbdCP2BaEScOJ6H3+9dvKx0r3jUhD847pue38k9+gLaDuPf mIPHch4k65JYMwrcY3Q8D7rWYSDbQRDyVlE0roDlMiGwQwLRaOKUyyJyB5RGmmOIUPg2 BS9pAktwrkJQXHcyXiUDL+aWmqMWUaX8aVSE0tRJ6rjZfRMK3Mvj6hNYvgR5ynt5VW2f 1V2g== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=ec1T2eRZpE72UwwkmjaZpv1H2EV0zBKbTWgIVzT162k=; b=IhxO2EA4UoS/7vwnjaR3/TuuB5MqxEf2twR3J9CBbwGKv1oul3bCbcPVp3gdZ/ONNo F3QvFmI/R9H2uZc2lAu8Rg462DR8HDYeIoYMfohIJAXF3Go1Dmg6QL4TbMlSC56Yz7g6 BoJcYcMPZ4NS/8ulCcQ7p0LVb9Q2g3NSMeWpkCmlvVXZyofKws47eHqakNinBj74r5wo LG50fjsNHCbmM/5bIvt4vqieJu5Dm+1upuV66Ro6E5fj8zV2TwDNJSXKEtBXiyvR3wye DA8Z5y1haUfNQ07oP6kDVTqdmPdb09IxcipKIRVA/1R4c1fDiuP+2ddpI/pK+LskiYGk Gwug== X-Gm-Message-State: AIkVDXJyMfphcS9GaKv0zFxz0KxvewXpX1nE4rn3Yz6UpfnMrqR/jEF2DpmAnUSKzw+mfQ== X-Received: by 10.25.193.194 with SMTP id r185mr15663359lff.103.1483342122326; Sun, 01 Jan 2017 23:28:42 -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 f186sm15630471lfg.25.2017.01.01.23.28.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 01 Jan 2017 23:28:41 -0800 (PST) From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= To: Johannes Berg , linux-wireless@vger.kernel.org Cc: linux-doc@vger.kernel.org, =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= Subject: [PATCH 2/2] cfg80211: fix example REG_RULE usage in Documentation Date: Mon, 2 Jan 2017 08:28:29 +0100 Message-Id: <20170102072829.9766-2-zajec5@gmail.com> X-Mailer: git-send-email 2.10.1 In-Reply-To: <20170102072829.9766-1-zajec5@gmail.com> References: <20170102072829.9766-1-zajec5@gmail.com> 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 It's just an example, but lets make it look more real to don't confuse people about possible REG_RULE usage. Channels are 20 MHz wide, so start and end frequencies are 10 MHz away from the center one. Signed-off-by: Rafał Miłecki --- Documentation/networking/regulatory.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Documentation/networking/regulatory.txt b/Documentation/networking/regulatory.txt index b4af93f..7818b5f 100644 --- a/Documentation/networking/regulatory.txt +++ b/Documentation/networking/regulatory.txt @@ -156,12 +156,12 @@ struct ieee80211_regdomain mydriver_jp_regdom = { //.alpha2 = "99", /* If I have no alpha2 to map it to */ .reg_rules = { /* IEEE 802.11b/g, channels 1..14 */ - REG_RULE(2412-20, 2484+20, 40, 6, 20, 0), + REG_RULE(2412-10, 2484+10, 40, 6, 20, 0), /* IEEE 802.11a, channels 34..48 */ - REG_RULE(5170-20, 5240+20, 40, 6, 20, + REG_RULE(5170-10, 5240+10, 40, 6, 20, NL80211_RRF_NO_IR), /* IEEE 802.11a, channels 52..64 */ - REG_RULE(5260-20, 5320+20, 40, 6, 20, + REG_RULE(5260-10, 5320+10, 40, 6, 20, NL80211_RRF_NO_IR| NL80211_RRF_DFS), }