From patchwork Thu Mar 1 14:18:26 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Eckelmann X-Patchwork-Id: 10251561 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 5E18D60211 for ; Thu, 1 Mar 2018 14:21:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3C53328692 for ; Thu, 1 Mar 2018 14:21:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3561B2857D; Thu, 1 Mar 2018 14:21:30 +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 F32602857D for ; Thu, 1 Mar 2018 14:21:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1031334AbeCAOVK (ORCPT ); Thu, 1 Mar 2018 09:21:10 -0500 Received: from mail-qt0-f195.google.com ([209.85.216.195]:46629 "EHLO mail-qt0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1031161AbeCAOVI (ORCPT ); Thu, 1 Mar 2018 09:21:08 -0500 Received: by mail-qt0-f195.google.com with SMTP id m13so7661359qtg.13 for ; Thu, 01 Mar 2018 06:21:08 -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=Ytfz4TDDGWx+tW627zur2U5lQ53jjgj77KyfWkyEai4=; b=t7hpAMM5JgoysmT3bVW6mNzQCSjmo0GsMpze0j2bWUI3IHKCGbsMp1DCoWT0XqL0NO yW/oig1ZARewZ1nhmhpurEE6ZFvaM9YyhsSG+dzzgWPfL22gxopSAqgPqO9jqL/4nJSR bIohZzGcoygTvUcA63eJdeKXVG4WeiLAfe8ZCPr4UXNVK1WS7X288YvBdXm6lP7++v+K RkPZnP8RzVVwxAYzsVdCv3q+J4Xdp2zBF1j3eHl7/yLOD4bE/AnFrZWBGIJJNzSzkqwa z/XXjZm55rW/D4t9WMKXdBfxiVeVWG1ZrYyz0nW50rWVrPBURsxjnDeH0E5OzHy6u+/t Rz6A== 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=Ytfz4TDDGWx+tW627zur2U5lQ53jjgj77KyfWkyEai4=; b=QuNTwCCFVj+3QjwoByeikYmXPTkyaCZbgVYxyBfY6xwJfAydeex6n2kdz4Y5sQNJeS WtxfwPYKplWUfhoQ4gSveMOfxmPu+fvY2guJBtJXhEcWlusgTo+y8CtOpm4SqDUh9J4a vxwKaqpZVvAhjAc6FjkYFB7UQBNamew9MZhc/ne40fp5okNZIA8ImwJiKRUfKp9kDzhD kJz61nkd+vQspcSK0rTZYqS1kICx8lrnl0L5nyJCZzO+TWGkWCpJ+3wWLVXV7NdhGuLv vNvhppZTmLn8BxSZH5OCwO5B0mn3PEEOjxv57LxJyeLXtl6M++nJ+2W5kcGbpx1OCu0P LuDg== X-Gm-Message-State: AElRT7HApMcYSQMYZWTG470fGc1AafMFhBH6YMHnizjlrjlGJno5vaAc 43TCag/DeQQYLgc5n8N8eLnB7F6Aedc= X-Google-Smtp-Source: AG47ELv7DlhEFJ9JoIC13Z7q7nMFCWfFDWlSxHQFxWjxTWoSLDkn9kEPmsPewe484nkJgXb/UJE7Yg== X-Received: by 10.200.8.56 with SMTP id u53mr3251718qth.315.1519914067964; Thu, 01 Mar 2018 06:21:07 -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 t28sm2685084qkj.61.2018.03.01.06.21.07 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 01 Mar 2018 06:21:07 -0800 (PST) From: Sven Eckelmann To: linux-wireless@vger.kernel.org Cc: Kalle Valo , "Luis R. Rodriguez" , Sven Eckelmann Subject: [PATCH 16/52] ath: Add regulatory mapping for APL10_MKKC Date: Thu, 1 Mar 2018 15:18:26 +0100 Message-Id: <20180301141902.24824-17-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 regdomain code is used to select the correct the correct conformance test limits (CTL) for a country. If the regdomain code 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 regdomain code are: * 2.4GHz: MKK * 5GHz: ETSI Signed-off-by: Sven Eckelmann --- drivers/net/wireless/ath/regd_common.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/wireless/ath/regd_common.h b/drivers/net/wireless/ath/regd_common.h index 07c966ad7a67..44e3831c13b1 100644 --- a/drivers/net/wireless/ath/regd_common.h +++ b/drivers/net/wireless/ath/regd_common.h @@ -72,6 +72,7 @@ enum EnumRd { APL7_FCCA = 0x5C, APL8_WORLD = 0x5D, APL9_WORLD = 0x5E, + APL10_MKKC = 0x5F, WOR0_WORLD = 0x60, WOR1_WORLD = 0x61, @@ -198,6 +199,7 @@ static struct reg_dmn_pair_mapping regDomainPairs[] = { {APL8_WORLD, CTL_ETSI, CTL_ETSI}, {APL9_WORLD, CTL_ETSI, CTL_ETSI}, + {APL10_MKKC, CTL_ETSI, CTL_MKK}, {APL3_FCCA, CTL_FCC, CTL_FCC}, {APL7_FCCA, CTL_FCC, CTL_FCC}, {APL1_ETSIC, CTL_FCC, CTL_ETSI},