From patchwork Thu Mar 1 14:18:17 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Eckelmann X-Patchwork-Id: 10251541 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 0039560211 for ; Thu, 1 Mar 2018 14:20:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DE25428464 for ; Thu, 1 Mar 2018 14:20:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D92AF28446; Thu, 1 Mar 2018 14:20: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=-6.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,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 E832B28390 for ; Thu, 1 Mar 2018 14:20:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1031304AbeCAOUs (ORCPT ); Thu, 1 Mar 2018 09:20:48 -0500 Received: from mail-qt0-f193.google.com ([209.85.216.193]:38311 "EHLO mail-qt0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1031280AbeCAOUq (ORCPT ); Thu, 1 Mar 2018 09:20:46 -0500 Received: by mail-qt0-f193.google.com with SMTP id n12so7683193qtl.5 for ; Thu, 01 Mar 2018 06:20:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=openmesh-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=JLFZiECcxsERHBQv13ErySgRWkp6C4aORU9QZm50iGs=; b=UoENqCvv/KXBzu+ToZOEFQ0EqGmmOHpDF9H1BUYwPVB4eqJx6uSc7fjatXg22lPwQl LIMNQW3piL6bwbWbswHUiL50y/LAqV60W8FddGaGIU+7L/YLSKMM8kMDs3IPOjl/jUWq ErSfQWxhCAiYCyH9z0/u8QgZhUrRasMU05YhGE1b2X5MI7/onIAxyqk6RgpXQP0qhzS9 SXVrgZG8c2jvOTlRt/lCkGkaVlL/Pkx5vbB1vUEHBJ1MTuv4tGC3LYmpXj3wYV7vZP9J iX9DrvQTTjCNjNMOxH0XYi5OSjDNDwM2nQdJf6ffb7GWrWDPyESJgG0VI+Hyn0kl0LPK NoIQ== 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; bh=JLFZiECcxsERHBQv13ErySgRWkp6C4aORU9QZm50iGs=; b=CmHys1GU4/0Z5c5zYtlgpj4knFr5M2cIjD0A5tGLYmfitmBdTIpQRuQCPzIcscW3+q AGs5dKFksonpnpBI6CXsc2Ig27vKgWuBqM3H57k0PXFIgwoGFBu/rO+dchkYr2idwFNM Bi9sCwsniRmEFsmW3vYhBLfvE9uSBeEOi4rPECTsM15Pc+bU7Kdewp1fzX96Qpa+7hMV KbqPag3AQ/iT6zsLUob8gj8nfE6ZhzmmZHvPszmn7Dz4wVST5Hfwz6eHF8ZFDTk8YGs0 YvItEhPtk5bLvdkKZqpv/iOhOo0ho+DtY10LQpXfjXgdyvMalrprKoEmVU/Poiz2D+1R N3jA== X-Gm-Message-State: AElRT7EG/aRF538cj7Nh1CeIrz1ozCaD+ZLv+bgKrYJg1ZuQUmzv1uZx Q2ojW+qwGIWHhWXKLzhQjwKZkfo+4yQ= X-Google-Smtp-Source: AG47ELtQm29GJi/R4Igu7mNUZ5TZa68hzB6neBfRetVC7XH0iZ2K5FQi1kCzOL34TTJt8qogZdU4yQ== X-Received: by 10.237.61.112 with SMTP id h45mr3144438qtf.225.1519914045564; Thu, 01 Mar 2018 06:20:45 -0800 (PST) Received: from sven-desktop.home.narfation.org (p2003007C6F4301EA1FEAE4CE1DF3DE58.dip0.t-ipconnect.de. [2003:7c:6f43:1ea:1fea:e4ce:1df3:de58]) by smtp.gmail.com with ESMTPSA id d30sm3027779qte.46.2018.03.01.06.20.44 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 01 Mar 2018 06:20:45 -0800 (PST) From: Sven Eckelmann To: linux-wireless@vger.kernel.org Cc: Kalle Valo , "Luis R. Rodriguez" , Sven Eckelmann Subject: [PATCH 07/52] ath: Add regulatory mapping for Montenegro Date: Thu, 1 Mar 2018 15:18:17 +0100 Message-Id: <20180301141902.24824-8-sven.eckelmann@openmesh.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180301141902.24824-1-sven.eckelmann@openmesh.com> References: <20180301141902.24824-1-sven.eckelmann@openmesh.com> 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 The country code is used by the ath to detect the ISO 3166-1 alpha-2 name and to select the correct conformance test limits (CTL) for a country. If the country isn't available and it is still programmed in the EEPROM then it will cause an error and stop the initialization with: Invalid EEPROM contents The current CTL mappings for this country are: * 2.4GHz: ETSI * 5GHz: ETSI Signed-off-by: Sven Eckelmann --- drivers/net/wireless/ath/regd.h | 1 + drivers/net/wireless/ath/regd_common.h | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/net/wireless/ath/regd.h b/drivers/net/wireless/ath/regd.h index f38e42703060..8575718425b6 100644 --- a/drivers/net/wireless/ath/regd.h +++ b/drivers/net/wireless/ath/regd.h @@ -141,6 +141,7 @@ enum CountryCode { CTRY_MAURITIUS = 480, CTRY_MEXICO = 484, CTRY_MONACO = 492, + CTRY_MONTENEGRO = 499, CTRY_MOROCCO = 504, CTRY_NEPAL = 524, CTRY_NETHERLANDS = 528, diff --git a/drivers/net/wireless/ath/regd_common.h b/drivers/net/wireless/ath/regd_common.h index 375f9da6955b..df5db47f2930 100644 --- a/drivers/net/wireless/ath/regd_common.h +++ b/drivers/net/wireless/ath/regd_common.h @@ -433,6 +433,7 @@ static struct country_code_to_enum_rd allCountries[] = { {CTRY_MAURITIUS, ETSI1_WORLD, "MU"}, {CTRY_MEXICO, FCC1_FCCA, "MX"}, {CTRY_MONACO, ETSI4_WORLD, "MC"}, + {CTRY_MONTENEGRO, ETSI1_WORLD, "ME"}, {CTRY_MOROCCO, APL4_WORLD, "MA"}, {CTRY_NEPAL, APL1_WORLD, "NP"}, {CTRY_NETHERLANDS, ETSI1_WORLD, "NL"},