From patchwork Thu Mar 1 14:18:29 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Eckelmann X-Patchwork-Id: 10251565 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 5587260211 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 44855285FE for ; Thu, 1 Mar 2018 14:21:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B07492823E; 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 CCB4728500 for ; Thu, 1 Mar 2018 14:21:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1031355AbeCAOVS (ORCPT ); Thu, 1 Mar 2018 09:21:18 -0500 Received: from mail-qk0-f196.google.com ([209.85.220.196]:39848 "EHLO mail-qk0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1031343AbeCAOVQ (ORCPT ); Thu, 1 Mar 2018 09:21:16 -0500 Received: by mail-qk0-f196.google.com with SMTP id z197so7701242qkb.6 for ; Thu, 01 Mar 2018 06:21:15 -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=Ez01Rsbd2/i78OJrQX0LTOM9ZCQuZIRRFUuICJTBfd8=; b=UE5CxN6AqbCYUO4dtuLvzOkNYUPc1XGsPqAMYSg9FZXgDCT2bZO6X8iHJk0W7uf67b +zSZF2/N4mNCeL0UsVpTPB+ENjDNeZVkUekyMFBZoqjlbE3JtYPVwz6dMfZkOLA28tJp 2w/QuSDvepEKI/xoEeqYiDjYs52g0p7hVmsHwidQLbWtq+YoeVJZsjjPUcJyIVayiL9j xnzD3+WC6X7veqkntHIYBX6V+cZ4GSe4aFh6i0UrEwwiK5EksRNX0Q4M4Rlp7gI1S+QF I5aRhtMIp5yAt8Aq+U8UBWUda4iyA/+xbvPy6WeTxWLdM6HJ2Ie1N0hbDN2UmyKa9BsT p0iw== 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=Ez01Rsbd2/i78OJrQX0LTOM9ZCQuZIRRFUuICJTBfd8=; b=inNgftTDhmUQdbFhAd6wN9XdFwuOq4HfmVJzwuYmTdlv4A73+9o53i7Ncdh4/cpIal YjzNcOdmawg3R1rvPz1Os2Ibh5lw48M+pODz+RKmge5VVdN6l7e+/naVq7GY4l0g1bSo JIVa1mMQhQNz2zZFouT/yoi/9u72fyRQOlJl1wqSqJfLT8DO35VzRqQLcW0x1tYvfijM mDvBCA0lQEJ73AatnVeorTtDW38iZZz5rVI5CMZjtDn7+lMehHsGDOsYHrHrk2C5LWBZ i1tvddw7UCADjumINRvT9Gm7OqapfBmjzRU+YJNux/wP0+bdFgs2Wqod8LxqVS2QFosN JBkQ== X-Gm-Message-State: AElRT7Ges01ARQh+vjK0py9SMCVEFSLG+293JjNWe6tgbHJhHDTT7JtH bZI5sDzRoMkmB4MG8Q/1MkLlbXYhs0M= X-Google-Smtp-Source: AG47ELv+aNFFVQOt5Cz/tTBM/mW/35Ve8MV8OXYuhdBUpHPnCbHsxhMILoveL6rA5q67XyP5EPqS+w== X-Received: by 10.55.116.135 with SMTP id p129mr2899690qkc.344.1519914075279; Thu, 01 Mar 2018 06:21:15 -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 o126sm2716984qkc.77.2018.03.01.06.21.14 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 01 Mar 2018 06:21:14 -0800 (PST) From: Sven Eckelmann To: linux-wireless@vger.kernel.org Cc: Kalle Valo , "Luis R. Rodriguez" , Sven Eckelmann Subject: [PATCH 19/52] ath: Add regulatory mapping for ETSI9_WORLD Date: Thu, 1 Mar 2018 15:18:29 +0100 Message-Id: <20180301141902.24824-20-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 88913c67fed2..f1735ac67c52 100644 --- a/drivers/net/wireless/ath/regd_common.h +++ b/drivers/net/wireless/ath/regd_common.h @@ -45,6 +45,7 @@ enum EnumRd { ETSI5_WORLD = 0x39, ETSI6_WORLD = 0x34, ETSI8_WORLD = 0x3D, + ETSI9_WORLD = 0x3E, ETSI_RESERVED = 0x33, MKK1_MKKA = 0x40, @@ -185,6 +186,7 @@ static struct reg_dmn_pair_mapping regDomainPairs[] = { {ETSI5_WORLD, CTL_ETSI, CTL_ETSI}, {ETSI6_WORLD, CTL_ETSI, CTL_ETSI}, {ETSI8_WORLD, CTL_ETSI, CTL_ETSI}, + {ETSI9_WORLD, CTL_ETSI, CTL_ETSI}, /* XXX: For ETSI3_ETSIA, Was NO_CTL meant for the 2 GHz band ? */ {ETSI3_ETSIA, CTL_ETSI, CTL_ETSI},