From patchwork Thu Mar 1 14:18:28 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Eckelmann X-Patchwork-Id: 10251563 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 9F5BD60211 for ; Thu, 1 Mar 2018 14:21:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 77CBC286FF for ; Thu, 1 Mar 2018 14:21:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 74A9D28420; Thu, 1 Mar 2018 14:21:41 +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 6249A285F9 for ; Thu, 1 Mar 2018 14:21:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1031352AbeCAOVQ (ORCPT ); Thu, 1 Mar 2018 09:21:16 -0500 Received: from mail-qt0-f196.google.com ([209.85.216.196]:41440 "EHLO mail-qt0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1031339AbeCAOVN (ORCPT ); Thu, 1 Mar 2018 09:21:13 -0500 Received: by mail-qt0-f196.google.com with SMTP id j4so7673956qth.8 for ; Thu, 01 Mar 2018 06:21:13 -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=nwiMFHq+oztsxYVucOQmJbcSOmI+fCEu/qlWFd7pxnQ=; b=WYqne1SLP1cQrl9aNZhat67fiw2O3lPeot7ySGqCQKpaIZK7TqChFaDpJCNiLu1Q8n TQO3SS77rfRtxQdZIgr/eKd+CrpHYT3xRjuV2d9BougHtk1KTDDasB1GQC0d6jymsGT/ QpsHzdCd//6Ywhb+XNhiMA2N/H9/Z2rSqPU/1cAB8AEzeqLa9gwFXdA5g5ovFIoBOVYQ dzpr7M2wQczJpUqV8FXp13kTLipvzTdPYVoM0pmhqT1EFZU2cFEgpKKcVi+/a7t8euJG F8VuXLT9JLeUxUxrneKD+rZRihSDwyiSMDO3iTqizmGOqOAg3vom0sBkGFSU7+0qbjtk kI6g== 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=nwiMFHq+oztsxYVucOQmJbcSOmI+fCEu/qlWFd7pxnQ=; b=nghitxmMDFmsKIRP7473jkfu/f1loGmEsZMuVfx8b/OUAW8vZ/co3OuzO1y9asplwf VgYCtYOZ2CthzZ/SJJTRoDUNWTZXgfsrgP4btqvubCS0PDXuqtV2w1hZZL3qVDqZGyjP HIDWBrhAKliUmxdIco94xoyYI3XKiF8KSpz9I/iZo3v5VRAhWlMcxKyGp1zPOfY8sOXZ fL8elXPk3JXnDcx1p7jgwaqakB/ayq8TQ3F+LwCBlBPVE3CLeN/66YmFlIXRohi4ykWz xc0beQBnCpw7wlrQtHiDqe+cduYPLZ8wbim3hGBqCMsdsLLkcYBk12JdO3rW2t7PjjPp SJdw== X-Gm-Message-State: AElRT7FNJvzzTTm9ZtmxGLprMETFLirZMOhmnGaGuViETZTMKgru0GRt apbXl1gY7y7/Uif7RpzeLsPXaRocAio= X-Google-Smtp-Source: AG47ELscvJQnGFR4jRMuTrtAXQ0YJNzq1zFDcD0aJi9vVxvrsT1t/425CneWkEyzxYIzGTPJbYslTQ== X-Received: by 10.200.50.251 with SMTP id a56mr3176874qtb.13.1519914072849; Thu, 01 Mar 2018 06:21:12 -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 w41sm2930970qtc.73.2018.03.01.06.21.12 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 01 Mar 2018 06:21:12 -0800 (PST) From: Sven Eckelmann To: linux-wireless@vger.kernel.org Cc: Kalle Valo , "Luis R. Rodriguez" , Sven Eckelmann Subject: [PATCH 18/52] ath: Add regulatory mapping for ETSI8_WORLD Date: Thu, 1 Mar 2018 15:18:28 +0100 Message-Id: <20180301141902.24824-19-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 14332b84443b..88913c67fed2 100644 --- a/drivers/net/wireless/ath/regd_common.h +++ b/drivers/net/wireless/ath/regd_common.h @@ -44,6 +44,7 @@ enum EnumRd { ETSI4_ETSIC = 0x38, ETSI5_WORLD = 0x39, ETSI6_WORLD = 0x34, + ETSI8_WORLD = 0x3D, ETSI_RESERVED = 0x33, MKK1_MKKA = 0x40, @@ -183,6 +184,7 @@ static struct reg_dmn_pair_mapping regDomainPairs[] = { {ETSI4_WORLD, CTL_ETSI, CTL_ETSI}, {ETSI5_WORLD, CTL_ETSI, CTL_ETSI}, {ETSI6_WORLD, CTL_ETSI, CTL_ETSI}, + {ETSI8_WORLD, CTL_ETSI, CTL_ETSI}, /* XXX: For ETSI3_ETSIA, Was NO_CTL meant for the 2 GHz band ? */ {ETSI3_ETSIA, CTL_ETSI, CTL_ETSI},