From owner-freebsd-wireless@freebsd.org Wed Jul 22 03:36:22 2020 Return-Path: Delivered-To: freebsd-wireless@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 3B957370120 for ; Wed, 22 Jul 2020 03:36:22 +0000 (UTC) (envelope-from notjanedeere@gmail.com) Received: from mail-io1-xd43.google.com (mail-io1-xd43.google.com [IPv6:2607:f8b0:4864:20::d43]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BBLjK1cpTz4bsJ for ; Wed, 22 Jul 2020 03:36:20 +0000 (UTC) (envelope-from notjanedeere@gmail.com) Received: by mail-io1-xd43.google.com with SMTP id a12so1052063ion.13 for ; Tue, 21 Jul 2020 20:36:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:references:to:from:message-id:date:user-agent:mime-version :in-reply-to:content-language; bh=G25OQ3wjskHkpe6qZEowIiX35zenTMqCavlwBS1vgeM=; b=fn9MvOPjQDQQKEEVMwZ+X14Tposd/qS246Sr6mY4fSS/XLAQawUeIuhAO/a8i8PV1g pKiINHCrezm9/e1SJGBvQ/fLUgocrWLCaYpeI5zHUjL/833HSaBQV3ZKRvq6PwyFRl3K fZrn3y7JjVM9XDU7C2V04tilBKTv36Ksewjf/RPqmFKN6kFOJqP48Aq5lXtg3+uM5Djg ROfYe2Eu9LetWk/UrD+lOr5Cx4gs+gl5+qWUP9TQ/StXnzQSND6Oq6TPMaXgBzV/XNve EW/ZPiqbCOxmfGQVMST08SS0TKsDwP3opmIVjuv1fWinsFA4eGfXPtCzSzg/UkS7mi4w hX+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:references:to:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=G25OQ3wjskHkpe6qZEowIiX35zenTMqCavlwBS1vgeM=; b=A7yAJqTQiFrSnU5J0Oi6J7SmTUD5vxl9HPitP+QriYXbMkgYsZtiqg4DQs8Ti4shj6 b5kcauMApusACM4wdFY86D2l/puwrN57YTeCuG3aJDfl9KzMIC/PhnMq0ui57qyI4qhd cMULjT0EH9xtoib9zMGWhILiS2lHhaYzIqBgztVkC6CEnTiJsz+3tyDTU4M+dCerjhhw Dn4lTI1/PvhkItwfO/ulq8kIBO/WHtG4l5K+H3IO0/LOZGysusn5NMpt9FLaZXugGOD0 h8WlpEE+PoVq4Md9m6tJQO/aFu3YmWb38LQPwU3OAB6x5K/QnM3g1bTKUykjr4PLODld DTCg== X-Gm-Message-State: AOAM532vN7nhWty0iRpiy6EOirnuPga5iy50jfkFwQTU19WIKCD1s/Ap Zq/2IaP4Bi5pNWerQwIcmvfuGhZ4 X-Google-Smtp-Source: ABdhPJyKZyYLDhF5hjaHV5mMq63LFMyCN+8nCbLrRah4etBdkQXQZh+bs6UBzgelmx9r9DfFUn+vsg== X-Received: by 2002:a02:3c08:: with SMTP id m8mr34826706jaa.107.1595388979933; Tue, 21 Jul 2020 20:36:19 -0700 (PDT) Received: from [10.5.0.2] ([153.92.40.7]) by smtp.gmail.com with ESMTPSA id g1sm11519373ilk.51.2020.07.21.20.36.19 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 21 Jul 2020 20:36:19 -0700 (PDT) Subject: Fwd: Re: regdomain.xml - Linux wireless-regdb References: To: freebsd-wireless From: Aaron X-Forwarded-Message-Id: Message-ID: Date: Tue, 21 Jul 2020 23:36:19 -0400 User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US X-Rspamd-Queue-Id: 4BBLjK1cpTz4bsJ X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=fn9MvOPj; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of notjanedeere@gmail.com designates 2607:f8b0:4864:20::d43 as permitted sender) smtp.mailfrom=notjanedeere@gmail.com X-Spamd-Result: default: False [-3.07 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; NEURAL_HAM_MEDIUM(-1.03)[-1.027]; FROM_HAS_DN(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-wireless@freebsd.org]; NEURAL_HAM_LONG(-0.98)[-0.982]; RCPT_COUNT_ONE(0.00)[1]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::d43:from]; NEURAL_HAM_SHORT(-0.07)[-0.065]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_TLS_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim] Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.33 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Jul 2020 03:36:22 -0000 Still working on my mailing list etiquette ... On 7/21/2020 11:11 PM, Adrian Chadd wrote: > On Tue, 21 Jul 2020 at 20:03, Aaron > wrote: > > On 7/21/2020 10:53 PM, Adrian Chadd wrote: > > As a data source yes, but I'd /love/ ours to be more structured. > > Parsing the wireless-regdb format is ... lol. > > > > > > -a > Fair enough.  This data also has a 1:1 mapping between country and > regulatory domain.  You mentioned Atheros earlier, is this 1:many > country:rd mapping necessary or just an artifact of how they coded > things? > > > I mean, both are true. For atheros hardware we do that already in the > driver; and for other NICs that need local weird channel/sku bits they > can implement themselves. :-) > > > > -adrian > > _______________________________________________ > freebsd-wireless@freebsd.org > mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-wireless > To unsubscribe, send any mail to > "freebsd-wireless-unsubscribe@freebsd.org > " > So Atheros and the Japanese are on their own.  In that case, the data that's needed is ... what's already in the wireless-regdb file?  You've got: * Country * Regulatory domain name (albeit only FCC, ETSI and JP), /which isn't actually used for anything!/  The details for each country are stored directly, there's no referring to the regulatory domains at all. * Frequencies and channel widths. * TX power (in db OR mW, if that needs to be normalised someone's going to have to supply me with a reference or a formula) * Flags.  Once the data's parsed we can get a complete list of these. Is there anything else needed?  And given that each country is a self-contained dataset, what do we need the regulatory domain name for beyond a label?