From patchwork Thu Mar 1 14:18:30 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Eckelmann X-Patchwork-Id: 10251569 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 97B2B60211 for ; Thu, 1 Mar 2018 14:21:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8636028555 for ; Thu, 1 Mar 2018 14:21:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3E010284AA; Thu, 1 Mar 2018 14:21:44 +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 882D828047 for ; Thu, 1 Mar 2018 14:21:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1031154AbeCAOVU (ORCPT ); Thu, 1 Mar 2018 09:21:20 -0500 Received: from mail-qk0-f196.google.com ([209.85.220.196]:35247 "EHLO mail-qk0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1031353AbeCAOVS (ORCPT ); Thu, 1 Mar 2018 09:21:18 -0500 Received: by mail-qk0-f196.google.com with SMTP id s188so7707440qkb.2 for ; Thu, 01 Mar 2018 06:21:18 -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=VI7rXNEEqUlUJ6eqJCKBsF9bte5AT7mtdviHJK8yHyc=; b=wyMs/zMzG73pliTOs+JidTkDcrloSoAYc0MCv0yUtDUp8bzOnlqlz4vhIrP+gTNls2 BUGRZ2YcxxZefMe2VB80KGRVYnXYhdWp7yG/R9gExgUEGwC2DukoHjZyJHLC0cgUSvEb FfLr5dkpbWhOdzj9uWYVVUBqG7N/xzBUZaVF2nzWYrl9sSozR8vrxPdAXo4ZE56bIXfr /RUlzF8AbldxrZte9AhZJ2RoWPF3FlVl4ZvxLpbubbslACE3fNafj+t7HLKowzLViHJJ 4ZJXQ56ikbgV6jv30TIq4ai1v6qkI2fauRgaYKlHtqHlwbzwfq4R3kxZ3scvbDmLh5it HRqg== 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=VI7rXNEEqUlUJ6eqJCKBsF9bte5AT7mtdviHJK8yHyc=; b=FYNKcyZFlCi1LiUNa4pgEjKdJEOc3c4I468Ye0mCtepwULL121MoDXwz+EJZok8CFd 1q7G1fUqYbv8eBb9txE9W9KB+P0fsDY+A8FVWQBwa+Lkq7rqptv1mmhBQ+DcJDzmKIHK ukgxa9j30GqXo7wP1iwImlzX7VIidYdzgJImYUL3MsvRKn9P5yVN1TlN6nzexYkZg4xu IR+zU8TYpjLckUVuq+L6bv1zCWYYW06EClHYRN9zFmDqVRjWSf91VLE8sxauLI8eRMpZ 9LZJkZxahuIHgf1KgpgJwUhvxCOxqKi6RFlMXsB+sdkbpQ1V5ir3Zy1VvVS8rQFjo6/0 6NvQ== X-Gm-Message-State: AElRT7EJSTtb+uiDoWjxJk/z/DtraBVQi5t9CA7XOw7otLaUMdTV4q5e Ylaa7FqafZ2PIS6EeUIS7ZmJfrppf9Q= X-Google-Smtp-Source: AG47ELtDuKnaBN9jibFzIv+bXMUPQ5cPQ0LYs4k4lcpS7lVWo8JueMsyxhnpqy/n27AJqyYHTghu4Q== X-Received: by 10.55.39.67 with SMTP id n64mr3000029qkn.234.1519914077774; Thu, 01 Mar 2018 06:21:17 -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 i63sm2854956qtb.89.2018.03.01.06.21.16 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 01 Mar 2018 06:21:17 -0800 (PST) From: Sven Eckelmann To: linux-wireless@vger.kernel.org Cc: Kalle Valo , "Luis R. Rodriguez" , Sven Eckelmann Subject: [PATCH 20/52] ath: Add regulatory mapping for FCC3_ETSIC Date: Thu, 1 Mar 2018 15:18:30 +0100 Message-Id: <20180301141902.24824-21-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: FCC 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 f1735ac67c52..447547c25093 100644 --- a/drivers/net/wireless/ath/regd_common.h +++ b/drivers/net/wireless/ath/regd_common.h @@ -35,6 +35,7 @@ enum EnumRd { FRANCE_RES = 0x31, FCC3_FCCA = 0x3A, FCC3_WORLD = 0x3B, + FCC3_ETSIC = 0x3F, ETSI1_WORLD = 0x37, ETSI3_ETSIA = 0x32, @@ -174,6 +175,7 @@ static struct reg_dmn_pair_mapping regDomainPairs[] = { {FCC2_ETSIC, CTL_FCC, CTL_ETSI}, {FCC3_FCCA, CTL_FCC, CTL_FCC}, {FCC3_WORLD, CTL_FCC, CTL_ETSI}, + {FCC3_ETSIC, CTL_FCC, CTL_ETSI}, {FCC4_FCCA, CTL_FCC, CTL_FCC}, {FCC5_FCCA, CTL_FCC, CTL_FCC}, {FCC6_FCCA, CTL_FCC, CTL_FCC},