From patchwork Thu Mar 1 14:18:25 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Eckelmann X-Patchwork-Id: 10251559 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 31D1360211 for ; Thu, 1 Mar 2018 14:21:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2064527D0C for ; Thu, 1 Mar 2018 14:21:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1E15128668; Thu, 1 Mar 2018 14:21:26 +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 E262028066 for ; Thu, 1 Mar 2018 14:21:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1031337AbeCAOVI (ORCPT ); Thu, 1 Mar 2018 09:21:08 -0500 Received: from mail-qt0-f196.google.com ([209.85.216.196]:41416 "EHLO mail-qt0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1031274AbeCAOVG (ORCPT ); Thu, 1 Mar 2018 09:21:06 -0500 Received: by mail-qt0-f196.google.com with SMTP id j4so7673322qth.8 for ; Thu, 01 Mar 2018 06:21:06 -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=6vFMoasUwGpGyuhiw+zUEv7N0Padfz0usvZB6QDVxu8=; b=aDKUO6AGtHJ7dQWYxWHOk7xaTXQwgM1lBs91NL2mMcWvxmQdNoLJqIb8bsnJPz3fyA H+jJJe/Qxwws1CbeqDYwD9FQ5e3tKMkvfUYm6yKzRDSUATFMupgn91eu1ZoU+ebUoPde SDVQhlUDSK8A8gsxnSJ+CBbutC0jYvBjhyfsdf8gup/QoCtwf8eFFdmLGyGZyu4sXtS1 RmI8e4HeqUzUk3vKjhTmh9Kbyh9JMQ01ZlZxTMi4amD8i0H1eOHq/Ut5Gz30xMwgfuHU jLnCtlkeeiHn8rhkFbid8q/2kG8uUfre0BIQq/oOPDWKQPpc5+8VOHKp6wWwfbtBbJjo AKZA== 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=6vFMoasUwGpGyuhiw+zUEv7N0Padfz0usvZB6QDVxu8=; b=Ofk1Qi3FjFA0/6ouMS0fQcAvQh3bsLi5jhWv5y2KLBSfzyvI+UBURIRdYuIQUMghUd 8TTkwFl5GeI+D0NSiV1sp3MHeJFFpkhc7+VwUKFYImLyRHetpCM2YW31+Zp3yOSIulfj P+0q/k0+r/RRMMFQmNt/13PW8GBUpMmQFEz22P4DRgwJPYlPSOjD3ix5Z4X+MbB1Nw08 Ea4AwStQAyyLupC3xWiX8ZHMK2he1zsElHEzq7ZQ1ySl+DBFiwPWfHeuFFGvHrFzvK8P dfs0JfRbd/ypLVySpE8srx7FlOnwyV08HFUFABBxneuRnA3O63iTHq4fxWlYCEyWA41h hrbg== X-Gm-Message-State: AElRT7FNkIlPBImCtnkuX34QQ6dGJcT5A+M+v9rUF8hZMVR7wph+cJRf /WovQKxb6u7NW0/N3pL7prI3ksYJJb4= X-Google-Smtp-Source: AG47ELu3GPrE5cV3Id4FzHD+dXqPCiwL1+/2S7vJtZETKx8dRjS2nF1OOmqG7jw4Yqh7kOBkwAwvlA== X-Received: by 10.200.12.198 with SMTP id o6mr3091596qti.246.1519914065474; Thu, 01 Mar 2018 06:21:05 -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 y11sm2730368qkj.15.2018.03.01.06.21.04 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 01 Mar 2018 06:21:05 -0800 (PST) From: Sven Eckelmann To: linux-wireless@vger.kernel.org Cc: Kalle Valo , "Luis R. Rodriguez" , Sven Eckelmann Subject: [PATCH 15/52] ath: Add regulatory mapping for APL2_FCCA Date: Thu, 1 Mar 2018 15:18:25 +0100 Message-Id: <20180301141902.24824-16-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: FCC * 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 5cbd76235248..07c966ad7a67 100644 --- a/drivers/net/wireless/ath/regd_common.h +++ b/drivers/net/wireless/ath/regd_common.h @@ -59,6 +59,7 @@ enum EnumRd { MKK1_MKKA1 = 0x4A, MKK1_MKKA2 = 0x4B, MKK1_MKKC = 0x4C, + APL2_FCCA = 0x4D, APL3_FCCA = 0x50, APL1_WORLD = 0x52, @@ -189,6 +190,7 @@ static struct reg_dmn_pair_mapping regDomainPairs[] = { {FCC1_FCCA, CTL_FCC, CTL_FCC}, {APL1_WORLD, CTL_FCC, CTL_ETSI}, {APL2_WORLD, CTL_FCC, CTL_ETSI}, + {APL2_FCCA, CTL_FCC, CTL_FCC}, {APL3_WORLD, CTL_FCC, CTL_ETSI}, {APL4_WORLD, CTL_FCC, CTL_ETSI}, {APL5_WORLD, CTL_FCC, CTL_ETSI},