From patchwork Thu Mar 1 14:18:27 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Eckelmann X-Patchwork-Id: 10251567 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 8CF65604D4 for ; Thu, 1 Mar 2018 14:21:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7693527F93 for ; Thu, 1 Mar 2018 14:21:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id ED98128449; Thu, 1 Mar 2018 14:21:42 +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 D1A952843C for ; Thu, 1 Mar 2018 14:21:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1031341AbeCAOVO (ORCPT ); Thu, 1 Mar 2018 09:21:14 -0500 Received: from mail-qk0-f194.google.com ([209.85.220.194]:44634 "EHLO mail-qk0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1031338AbeCAOVL (ORCPT ); Thu, 1 Mar 2018 09:21:11 -0500 Received: by mail-qk0-f194.google.com with SMTP id v124so7672854qkh.11 for ; Thu, 01 Mar 2018 06:21:11 -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=Kq0douaxdkQhWO1IUKIjqx2hMFdngWAham808Kt5vHk=; b=xbkDcPKAUVq0HogtAYlTE63KlHOu95YBMVCNb6jhy4wL8WF5upGWk4yEVj7CMAIBUV uQf0F6yzGDuxLexgoaLse7ZK3sEMAIsJ6tXWGfX3JDduT6YGPAiqVfLfstbOK7LdqgnS /AVNJb6asE24qb+4eS05Oi1ELytPHE/+FycgrVvF9SZCSZcgsEzL1SqTHLZAWk5KzmWA wFUbeDXNSLAJRy1mvy5Y9J9HcdUOq/j21D64SVaWtjpFYBJyKZk31mHnwrErmU6IkXob PAvNPMDTjVoMUL294GwhOgSBAjSgvBaCo5I0jXDqtloMWTE7lzZKVoO7JzfmV28aTBjc MD+Q== 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=Kq0douaxdkQhWO1IUKIjqx2hMFdngWAham808Kt5vHk=; b=Yxg2Cx0RHd5qFWv0gzQ5p9VIJBvxKNZCAkIMmRoNq4KtgbUJPpxIeZ+N5sBLgmfiQj szrGWN/8bRFvKUIewtT/EzJnLHvwahHoY3WiJY0pyLjx3DpE40sSkymTma9xpH3fuK5M CEqm7yg9AnleP69EG67j/zcBSeiSRAlkArTMmm/weqh8DuNo1JsVF9WaJUHxkX8gTghd Eu1MlRSdyCOEqJzsvaNvJbcQRItl2xEGZXBRq0CzSTrw8X3RVos9WpCIaPGATjiXxXCK SF7evtLl8D9lqYrKwtDo6zwUm16sTM85J02CPYTWxZEXelxV4xeB393Op6OhrjIOqvAd 3c1g== X-Gm-Message-State: AElRT7EyxtTAsplGpsuMHxr2h0XCEyWrcyKqXRIOz689RGckLQR82iTr ByArnovKIGL05AgMLAP/fAC/xCN/mkE= X-Google-Smtp-Source: AG47ELs4wQJrz0uBFFl5qUBf2Vq9nf5YX5qY3SvGQNWYxVoJN0r6n9J8RILMcKXAXWJWRnDHUeIMbA== X-Received: by 10.55.187.199 with SMTP id l190mr3110656qkf.336.1519914070432; Thu, 01 Mar 2018 06:21:10 -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 73sm3100227qkb.63.2018.03.01.06.21.09 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 01 Mar 2018 06:21:09 -0800 (PST) From: Sven Eckelmann To: linux-wireless@vger.kernel.org Cc: Kalle Valo , "Luis R. Rodriguez" , Sven Eckelmann Subject: [PATCH 17/52] ath: Add regulatory mapping for APL13_WORLD Date: Thu, 1 Mar 2018 15:18:27 +0100 Message-Id: <20180301141902.24824-18-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: ETSI * 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 44e3831c13b1..14332b84443b 100644 --- a/drivers/net/wireless/ath/regd_common.h +++ b/drivers/net/wireless/ath/regd_common.h @@ -68,6 +68,7 @@ enum EnumRd { APL1_ETSIC = 0x55, APL2_ETSIC = 0x56, APL5_WORLD = 0x58, + APL13_WORLD = 0x5A, APL6_WORLD = 0x5B, APL7_FCCA = 0x5C, APL8_WORLD = 0x5D, @@ -195,6 +196,7 @@ static struct reg_dmn_pair_mapping regDomainPairs[] = { {APL3_WORLD, CTL_FCC, CTL_ETSI}, {APL4_WORLD, CTL_FCC, CTL_ETSI}, {APL5_WORLD, CTL_FCC, CTL_ETSI}, + {APL13_WORLD, CTL_ETSI, CTL_ETSI}, {APL6_WORLD, CTL_ETSI, CTL_ETSI}, {APL8_WORLD, CTL_ETSI, CTL_ETSI}, {APL9_WORLD, CTL_ETSI, CTL_ETSI},