From patchwork Thu Mar 1 14:18:16 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Eckelmann X-Patchwork-Id: 10251539 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 C286460211 for ; Thu, 1 Mar 2018 14:20:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AF75A27E01 for ; Thu, 1 Mar 2018 14:20:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id ACA5127FAC; Thu, 1 Mar 2018 14:20:55 +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 6B2EF27E01 for ; Thu, 1 Mar 2018 14:20:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1031228AbeCAOUp (ORCPT ); Thu, 1 Mar 2018 09:20:45 -0500 Received: from mail-qk0-f195.google.com ([209.85.220.195]:45939 "EHLO mail-qk0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1031301AbeCAOUn (ORCPT ); Thu, 1 Mar 2018 09:20:43 -0500 Received: by mail-qk0-f195.google.com with SMTP id g2so7667274qkd.12 for ; Thu, 01 Mar 2018 06:20:43 -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=AahNM0sMgRZ9C3ztIMKZoJ650WMLTuahD8Q6oErhYjs=; b=hoyd0MEQsbLjEb/TM/SRTGxejBF1HGsDuUvODTIdnroZEQVmjZEe6S9scFHXHDaJwX mynDtp4S7Ko5e+32nY04JK0o5u2q2JPao9gSBMMo3Wu6CizMEFwmnF5nixldNxcooKDM fO0aWBEFHGi0FGMj0z8DkPKZzChMITTeJIORLtS6T4TeDdKplcuznqscjsVc9bWwmGQ7 VQq7I8SO6YJRB6TxJvG4bjMTu9dzGSK2U+SxfqSZWnnmSy9vbwZAp7IyHaCFJ2ovlOI/ zi2/BhGg3i2LarGjfxrSnYHax6zFbLicPYWt6aX9UB+GPlT271IDwDnVGNHxOlqpou04 WNMg== 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=AahNM0sMgRZ9C3ztIMKZoJ650WMLTuahD8Q6oErhYjs=; b=qwBTDsszdh0S79QYeAkoaYFJZZSPyvRPNjpp5czo7m0CuSChSpnD2vXmDNOjYi7a5s 6EvMUuX4nkf83RxZxi2DSpM+fWu5CFaAm+XxehLe5Isc1kWxnajRWUg09CCAnDC9SQwy ypiCZAXfNIl2a+P8a68ayxLoZO+ME9wpkAqO/c+dSVJhUgGykCmlLWWtIvespElGAHVf VWxI9wnfC15GGIFa3gPLkA4eqghofQzs8+jWMk9pk9nBjfLUIVtCYRzhSa5BxFWE5PWG ko408kbDuxmbnN86an8rwgIJb2oeINGi1N1o9nY3gu2DI9yPpaYsNoPxQUi5frHCrMAw bmaA== X-Gm-Message-State: AElRT7G/DWUwf4i4FCrK4dy80wLR6g80EYoh/yU3+N/d+cFHDUWec3KM sNWCX/gH5TR+GXR6y5MgMzBwFI8oD6s= X-Google-Smtp-Source: AG47ELspYRGtesYoExxdN6GTPo4DQTxFYMRV8UoOpYizJVTiiQn2BuwKon4fqXY1z6mHVC3XoLuclA== X-Received: by 10.55.149.129 with SMTP id x123mr2886346qkd.254.1519914042931; Thu, 01 Mar 2018 06:20:42 -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 q10sm3064108qtk.25.2018.03.01.06.20.42 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 01 Mar 2018 06:20:42 -0800 (PST) From: Sven Eckelmann To: linux-wireless@vger.kernel.org Cc: Kalle Valo , "Luis R. Rodriguez" , Sven Eckelmann Subject: [PATCH 06/52] ath: Add regulatory mapping for Mauritius Date: Thu, 1 Mar 2018 15:18:16 +0100 Message-Id: <20180301141902.24824-7-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 a615a878ac40..f38e42703060 100644 --- a/drivers/net/wireless/ath/regd.h +++ b/drivers/net/wireless/ath/regd.h @@ -138,6 +138,7 @@ enum CountryCode { CTRY_MACEDONIA = 807, CTRY_MALAYSIA = 458, CTRY_MALTA = 470, + CTRY_MAURITIUS = 480, CTRY_MEXICO = 484, CTRY_MONACO = 492, CTRY_MOROCCO = 504, diff --git a/drivers/net/wireless/ath/regd_common.h b/drivers/net/wireless/ath/regd_common.h index bdc1ff191264..375f9da6955b 100644 --- a/drivers/net/wireless/ath/regd_common.h +++ b/drivers/net/wireless/ath/regd_common.h @@ -430,6 +430,7 @@ static struct country_code_to_enum_rd allCountries[] = { {CTRY_MACEDONIA, NULL1_WORLD, "MK"}, {CTRY_MALAYSIA, APL8_WORLD, "MY"}, {CTRY_MALTA, ETSI1_WORLD, "MT"}, + {CTRY_MAURITIUS, ETSI1_WORLD, "MU"}, {CTRY_MEXICO, FCC1_FCCA, "MX"}, {CTRY_MONACO, ETSI4_WORLD, "MC"}, {CTRY_MOROCCO, APL4_WORLD, "MA"},