From owner-freebsd-wireless@freebsd.org Sun Jul 19 21:00:23 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 39F7536886B for ; Sun, 19 Jul 2020 21:00:23 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4B8y1M0lT9z423S for ; Sun, 19 Jul 2020 21:00:23 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: by mailman.nyi.freebsd.org (Postfix) id 19100368CF7; Sun, 19 Jul 2020 21:00:23 +0000 (UTC) Delivered-To: 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 18A1936886A for ; Sun, 19 Jul 2020 21:00:23 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4B8y1L714tz425v for ; Sun, 19 Jul 2020 21:00:22 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id D32B021C53 for ; Sun, 19 Jul 2020 21:00:22 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 06JL0Mfn005702 for ; Sun, 19 Jul 2020 21:00:22 GMT (envelope-from bugzilla-noreply@FreeBSD.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 06JL0MJ5005701 for wireless@FreeBSD.org; Sun, 19 Jul 2020 21:00:22 GMT (envelope-from bugzilla-noreply@FreeBSD.org) Message-Id: <202007192100.06JL0MJ5005701@kenobi.freebsd.org> X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@FreeBSD.org using -f From: bugzilla-noreply@FreeBSD.org To: wireless@FreeBSD.org Subject: Problem reports for wireless@FreeBSD.org that need special attention Date: Sun, 19 Jul 2020 21:00:22 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" 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: Sun, 19 Jul 2020 21:00:23 -0000 To view an individual PR, use: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=(Bug Id). The following is a listing of current problems submitted by FreeBSD users, which need special attention. These represent problem reports covering all versions including experimental development code and obsolete releases. Status | Bug Id | Description ------------+-----------+--------------------------------------------------- New | 237921 | wpi: Memory leak in function wpi_free_tx_ring of Open | 154598 | [ath] Atheros 5424/2424 can't connect to WPA netw Open | 236918 | Crash: in iwn_ampdu_tx_stop (or ieee80211_ht_node Open | 238636 | ath: Fix kernel addresses printed in if_ath_sysct Open | 240776 | iwm: Can't find wifi networks after short time si 5 problems total for which you should take action. From owner-freebsd-wireless@freebsd.org Mon Jul 20 03:47:48 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 EE15637198A for ; Mon, 20 Jul 2020 03:47:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 4B973S61Khz4QQc for ; Mon, 20 Jul 2020 03:47:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id CE1BB371989; Mon, 20 Jul 2020 03:47:48 +0000 (UTC) Delivered-To: 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 CDDFC371A01 for ; Mon, 20 Jul 2020 03:47:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4B973S58Hbz4Qc6 for ; Mon, 20 Jul 2020 03:47:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 9454626558 for ; Mon, 20 Jul 2020 03:47:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 06K3lmg4078124 for ; Mon, 20 Jul 2020 03:47:48 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 06K3lmMQ078123 for wireless@FreeBSD.org; Mon, 20 Jul 2020 03:47:48 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: wireless@FreeBSD.org Subject: [Bug 243992] iwm(4): iwm_pcie_load_section: Could not load the [0] uCode section (Intel Wireless-AC 9560) Date: Mon, 20 Jul 2020 03:47:48 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: wireless X-Bugzilla-Version: 12.1-STABLE X-Bugzilla-Keywords: IntelNetworking, needs-qa X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: pete@nomadlogic.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: wireless@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 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: Mon, 20 Jul 2020 03:47:49 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D243992 pete@nomadlogic.org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pete@nomadlogic.org --- Comment #7 from pete@nomadlogic.org --- I am not sure if this is helpful, but I have a AC-9560 on a Lenovo Thinkpad P43s running CURRENT that ran into this issue. I tried rebooting the system while getting the same uCode loading error, but after powering off the syst= em completely and powering back on the firmware loaded and the NIC is working = as expected again. The NIC was working fine for ages, then i booted a linux image off of USB to test something, and when i rebooted back into CURRENT the firmware failed to load. So perhaps there was some junk that didn't get cleared from the linux kernel preventing the firmware from loading? Honestly have no idea but tho= ught i'd throw it out there. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-wireless@freebsd.org Tue Jul 21 09:06:52 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 E08E137C659 for ; Tue, 21 Jul 2020 09:06:52 +0000 (UTC) (envelope-from notjanedeere@gmail.com) Received: from mail-qk1-x72a.google.com (mail-qk1-x72a.google.com [IPv6:2607:f8b0:4864:20::72a]) (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 4B9t576nCrz4M7g for ; Tue, 21 Jul 2020 09:06:51 +0000 (UTC) (envelope-from notjanedeere@gmail.com) Received: by mail-qk1-x72a.google.com with SMTP id x69so5965756qkb.1 for ; Tue, 21 Jul 2020 02:06:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:message-id:date:user-agent:mime-version :content-language; bh=9CkAeHYwes6HryxNg6PNyRtafP4IbTPSIWQ05ZFWr+Q=; b=CF7icH5I9/fZowzHUP/6Q/lrd0dNFaMYwTMwoIfg2rtqFiK3GiCJT1IoYui9tBus8j oriKoiEmO5+GzN6PDjZToOcsyFyohaXKon5uKlrfP7M4ymTTQzS6wNvAR+220iUAWL8r DpDKexXCEvdhnfX0USc6ENvHNwg3mXDP5DitCou97G2ng6HULCe6iFjyMVBAwaXmTc5c Px3605wFCGkg0KFy6Z4PuYopdmM6NDklWb7Ivq/tM2fIoStXbTDCSavzWcAuEY4mAV+n CoOtieiSB3VmEhxbH9mP0sqhB0tak84AYLJz+76uK/usaELEJSWs9d96G34wEVcpJpfT KSFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-language; bh=9CkAeHYwes6HryxNg6PNyRtafP4IbTPSIWQ05ZFWr+Q=; b=YaPcqeVUWhCXa7DFK9OdAcSO6qrC+fy1e8J6F0QzMKd1EVnbZah0r4cmKEKZKdaFL+ wZQOVbGlvXJyiNo1WKRN91kKcfdRgLe9X8KAro7/o3TB/E3mu9p/WpPOPuEZBA7Hq6E5 /wOlWwr2JhAug1WoT47u78ap7pW8Q15XTAFJnVEUqdNpAcaOpHRZam7Ssz2v2SRj3JUJ xFawbflP79PbFLIn/O6EVwQdVTY1dZwKcOmDVlJHVqqr6h+FVSBMD6oFNwAe6sP6qhC4 CNN5DyCnPx72a5CAZ411f6LalJSBYvlufbh+QKCjLQh9+shibJQEK9Q+PVjakBbmUWMR zkUQ== X-Gm-Message-State: AOAM531aIbhsBwGU/IKR99DQYdA0+LmqtLDJLKXwmjrgySXVKGyH8U9/ nUciNFiBq+37Osvtu4qUXmCwq9Az X-Google-Smtp-Source: ABdhPJy85CffSI47qHK/moeQOqRSU4jo9OjmeQnqf7lPP7/+5HOEijsCqRrIsPRQ4ABSb8SM0XeGkw== X-Received: by 2002:a37:5bc4:: with SMTP id p187mr26188275qkb.166.1595322410745; Tue, 21 Jul 2020 02:06:50 -0700 (PDT) Received: from [10.5.0.2] ([162.219.176.188]) by smtp.gmail.com with ESMTPSA id a8sm2160319qth.69.2020.07.21.02.06.50 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 21 Jul 2020 02:06:50 -0700 (PDT) To: freebsd-wireless@freebsd.org From: Aaron Subject: regdomain.xml Message-ID: Date: Tue, 21 Jul 2020 05:06:48 -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 Content-Language: en-US X-Rspamd-Queue-Id: 4B9t576nCrz4M7g X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=CF7icH5I; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of notjanedeere@gmail.com designates 2607:f8b0:4864:20::72a as permitted sender) smtp.mailfrom=notjanedeere@gmail.com X-Spamd-Result: default: False [-3.27 / 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.02)[-1.023]; 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]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.01)[-1.012]; RCVD_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::72a:from]; NEURAL_HAM_SHORT(-0.24)[-0.236]; 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: Tue, 21 Jul 2020 09:06:52 -0000 Howdy FreeBSD wireless mailing list, Looking to help, only item on this list (https://wiki.freebsd.org/WiFi/TodoStuff) I'm competent to address is "net80211 regulatory".  I read the "regdomain" manpage ... no help there. My assumptions: * the data you're looking to clean up/update/refactor is "/etc/regdomain.xml". * you have some idea what you want this file to look like afterwards (an example would be very helpful) * the information you want added is available somewhere (FCC site, IEEE site, ...) If my assumptions are correct and no-one's already doing it, my questions are: * the regulatory database is indexed by SKU, rather than by country. So adding a new _country_ is actually rather annoyingly difficult. o There's a section that links to , so either someone's already done the work here or I need this item explained. * Change the regulatory database code to be indexed by something that isn't hard-coded, and have the "regulatory domain entry index" map _to_ an SKU where needed. o "regulatory database code" meaning ? o Since SKU in this context is not a Stock Keeping Unit ... definition please? * This lets me do useful things like _update the regulatory database_.. o When you refer to the "regulatory database", do you just mean "/etc/regdomain.xml"?  And what updates are you trying to do that are currently difficult? * extend it to support new frequency ranges (60GHZ, VHF white spaces); in KHz settings rather than MHz increments; o Current s are in MHz, not hard to change them to KHz.  Would obviously impact every program that reads the file ... o If I understand correctly, adding new freq ranges is just data entry.  If so, is there a link to the new frequency ranges you want added? * add VHT flags and 80/80+80/160MHz wide channel widths. o More data entry.  Link to the data you want added? If having me add data, refactor, change hierarchy, etc. is helpful let me know.  If it sounds like there'll be too much handholding, no hard feelings. CmdrWgls From owner-freebsd-wireless@freebsd.org Tue Jul 21 16:02:26 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 20A973605AA for ; Tue, 21 Jul 2020 16:02:26 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-qv1-xf30.google.com (mail-qv1-xf30.google.com [IPv6:2607:f8b0:4864:20::f30]) (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 4BB3Jc6PF3z3ZDV for ; Tue, 21 Jul 2020 16:02:24 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mail-qv1-xf30.google.com with SMTP id el4so9527943qvb.13 for ; Tue, 21 Jul 2020 09:02:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=C/1fo5sLTBvAwYqi3IQGuiOgEUPEY+bIpHsIzWcEQj0=; b=bciaG3X+ZRuRwmmCBJUdMq6IIqrkEbqA0TnwCQQISWyjsv2ZyMwlwrd4y8xdgYqvkv NK4CAxtVgqWl8IAQc82ws3MwKEmELDzgKCeed8qjzo8IjguX/3okFV8jT9F6ieP7bkiv 7AdsFET5IHrIJe+NCwaOIUpBjyEhDWZoVVxDAvPs+C80TN7rjNv7KHpojqosBJsryErX bzrgGBmDXIQKLdvuW0RrZDJFAsGu+pIf33Yj+usRMSJZ0mTSL4XZa0xYti9d24wLobMa G862sbb5SCSQkC96Iqh1+DVKuKUI3+O4gLCZgWifoFKiNEfAI5MYNXyAjJfzEsc8+2kF COGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=C/1fo5sLTBvAwYqi3IQGuiOgEUPEY+bIpHsIzWcEQj0=; b=n3LHvNO+I6FOlAQYrMhPTc51AlW8e1vR4HyZvxgBBrzdwlF8pouwlTmIKu7j1/BM21 8VUvqRDRjKnBfEdXvnAoNDLCFwFZSb7+nUed/C7CwzY2914+rovFV3M71L7ENgKoMyN3 vDUrR53HGijHuShCkBWzf6K72j27iHGFoCiWm7gWtHacK+PLscJkApmxLjeKvUNMjmO9 fcKAqXhN0sspqvRDA3V7ZpwF4S6Sm6i47OaDLgYuaHARjWicFqokAcvzHmGw83xqWUFO rl4pdHlSug24s2AA7Bf4cJmGaYSFXp1FCg5pq97/UFkJ8JNTb40i5vAu7UBpfFdRMKxG gW5g== X-Gm-Message-State: AOAM532oFexBxvE1LeAC1jHNL2os1+2f7V8oIXqHEkVsK8ViZZbXiMkN 73hFB1/9duCUOhcb1SWJz1ozfEreYPUkS08pcCOwgcaq X-Google-Smtp-Source: ABdhPJwR70MlJd+orIzOhZ230A5tGX/xscXxGPOxF8goh1tOQmua+khrp8loXh9CT+srgsn8yg/TNVfze7r+CkTo4V0= X-Received: by 2002:a0c:e1c3:: with SMTP id v3mr26403148qvl.209.1595347339354; Tue, 21 Jul 2020 09:02:19 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Adrian Chadd Date: Tue, 21 Jul 2020 09:02:07 -0700 Message-ID: Subject: Re: regdomain.xml To: Aaron Cc: "freebsd-wireless@freebsd.org" X-Rspamd-Queue-Id: 4BB3Jc6PF3z3ZDV X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=bciaG3X+; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of adrianchadd@gmail.com designates 2607:f8b0:4864:20::f30 as permitted sender) smtp.mailfrom=adrianchadd@gmail.com X-Spamd-Result: default: False [-2.99 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FREEMAIL_TO(0.00)[gmail.com]; 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]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.02)[-1.023]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; NEURAL_SPAM_SHORT(0.08)[0.084]; NEURAL_HAM_LONG(-1.06)[-1.055]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-wireless@freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::f30:from]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] Content-Type: text/plain; charset="UTF-8" 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: Tue, 21 Jul 2020 16:02:26 -0000 hi! On Tue, 21 Jul 2020 at 02:06, Aaron wrote: > Howdy FreeBSD wireless mailing list, > > Looking to help, only item on this list > (https://wiki.freebsd.org/WiFi/TodoStuff) I'm competent to address is > "net80211 regulatory". I read the "regdomain" manpage ... no help there. > Yeah, it's ...old. :-0 > > My assumptions: > > * the data you're looking to clean up/update/refactor is > "/etc/regdomain.xml". > * you have some idea what you want this file to look like afterwards > (an example would be very helpful) > * the information you want added is available somewhere (FCC site, > IEEE site, ...) > Luckily we can just use what's in the linux regulatory domain tables because they've already done the work of scouring the regulatory sites for their information :-) > > If my assumptions are correct and no-one's already doing it, my > questions are: > > * the regulatory database is indexed by SKU, rather than by country. > So adding a new _country_ is actually rather annoyingly difficult. > o There's a section that links to , so either > someone's already done the work here or I need this item explained. > The file is organised per-SKU; 'rd' is regulatory domain, not country. * Change the regulatory database code to be indexed by something that > isn't hard-coded, and have the "regulatory domain entry index" map > _to_ an SKU where needed. > o "regulatory database code" meaning ? > o Since SKU in this context is not a Stock Keeping Unit ... > definition please? > it /is/ stock keeping unit. Ok, so! This database is an XML representation of the Atheros regulatory database. You can find that in sys/dev/ath/ath_hal/ah_regdomain/ or something similar under ath_hal. It's organised per-SKU because the Atheros parts are kinda organised that way. Eg, there are multiple japan codes because the japan rules state that older hardware doesn't need to work with newer rules, but newer hardware does. So each respin of the japan regdomain rules created a new SKU. * This lets me do useful things like _update the regulatory database_.. > o When you refer to the "regulatory database", do you just mean > "/etc/regdomain.xml"? And what updates are you trying to do > that are currently difficult? > Well, it's a pain to update things :-) Eg, if I wanted to update the US I'd have to go update all the FCC domains that the US can use. FCC is FCC without DFS channels; FCC3 is FCC with DFS channels. It's just a lot of work. * extend it to support new frequency ranges (60GHZ, VHF white spaces); > in KHz settings rather than MHz increments; > o Current s are in MHz, not hard to change them to KHz. > Would obviously impact every program that reads the file ... > o If I understand correctly, adding new freq ranges is just data > entry. If so, is there a link to the new frequency ranges you > want added? > Whatever's in the linux regdomain database would be a good start. > * add VHT flags and 80/80+80/160MHz wide channel widths. > o More data entry. Link to the data you want added? > I've added it for FCC. You can see what work it was just to add them there. :-) > If having me add data, refactor, change hierarchy, etc. is helpful let > me know. If it sounds like there'll be too much handholding, no hard > feelings. I'm sure we can help out :-) So, I'd really like to figure out how to simplify the regdomain.xml file. But - we should come up with a firm plan first. Luckily this IS basically all userland work. :-) What do others think? What should we do? -adrian From owner-freebsd-wireless@freebsd.org Tue Jul 21 19:59:00 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 B7694366258 for ; Tue, 21 Jul 2020 19:59:00 +0000 (UTC) (envelope-from bsd-lists@BSDforge.com) Received: from udns.ultimatedns.net (static-24-113-41-81.wavecable.com [24.113.41.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "ultimatedns.net", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BB8Yc2SdKz48T2 for ; Tue, 21 Jul 2020 19:58:59 +0000 (UTC) (envelope-from bsd-lists@BSDforge.com) Received: from udns.ultimatedns.net (localhost [IPv6:0:0:0:0:0:0:0:1]) by udns.ultimatedns.net (8.15.2/8.15.2) with ESMTPS id 06LJx29w020155 (version=TLSv1.2 cipher=DHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Tue, 21 Jul 2020 12:59:09 -0700 (PDT) (envelope-from bsd-lists@BSDforge.com) X-Mailer: Cypht MIME-Version: 1.0 In-Reply-To: From: Chris Reply-To: bsd-lists@BSDforge.com To: , freebsd-wireless Subject: Re: regdomain.xml Date: Tue, 21 Jul 2020 12:59:09 -0700 Message-Id: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4BB8Yc2SdKz48T2 X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [0.00 / 15.00]; ASN(0.00)[asn:11404, ipnet:24.113.0.0/16, country:US]; local_wl_ip(0.00)[24.113.41.81] 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: Tue, 21 Jul 2020 19:59:00 -0000 On Tue, 21 Jul 2020 09:02:07 -0700 Adrian Chadd adrian=2Echadd@gmail=2Ecom said > hi! >=20 > On Tue, 21 Jul 2020 at 02:06, Aaron wrote: >=20 > > Howdy FreeBSD wireless mailing list, > > > > Looking to help, only item on this list > > (https://wiki=2Efreebsd=2Eorg/WiFi/TodoStuff) I'm competent to address is > > "net80211 regulatory"=2E I read the "regdomain" manpage =2E=2E=2E no help ther= e=2E > > >=20 > Yeah, it's =2E=2E=2Eold=2E :-0 >=20 >=20 > > > > My assumptions: > > > > * the data you're looking to clean up/update/refactor is > > "/etc/regdomain=2Exml"=2E > > * you have some idea what you want this file to look like afterwards > > (an example would be very helpful) > > * the information you want added is available somewhere (FCC site, > > IEEE site, =2E=2E=2E) > > >=20 > Luckily we can just use what's in the linux regulatory domain tables > because they've already done the work of scouring the regulatory sites fo= r > their information :-) >=20 >=20 > > > > If my assumptions are correct and no-one's already doing it, my > > questions are: > > > > * the regulatory database is indexed by SKU, rather than by country=2E > > So adding a new _country_ is actually rather annoyingly difficult=2E > > o There's a section that links to , so either > > someone's already done the work here or I need this item explai= ned=2E > > >=20 > The file is organised per-SKU; 'rd' is regulatory domain, not country=2E >=20 > * Change the regulatory database code to be indexed by something that > > isn't hard-coded, and have the "regulatory domain entry index" map > > _to_ an SKU where needed=2E > > o "regulatory database code" meaning ? > > o Since SKU in this context is not a Stock Keeping Unit =2E=2E=2E > > definition please? > > >=20 > it /is/ stock keeping unit=2E Ok, so! >=20 > This database is an XML representation of the Atheros regulatory database= =2E > You can find that in sys/dev/ath/ath_hal/ah_regdomain/ or something simil= ar > under ath_hal=2E > It's organised per-SKU because the Atheros parts are kinda organised that > way=2E Eg, there are multiple japan codes because the japan rules state tha= t > older hardware doesn't need to work with newer rules, but newer hardware > does=2E So each respin of the japan regdomain rules created a new SKU=2E >=20 >=20 > * This lets me do useful things like _update the regulatory database_=2E=2E > > o When you refer to the "regulatory database", do you just mean > > "/etc/regdomain=2Exml"? And what updates are you trying to do > > that are currently difficult? > > >=20 > Well, it's a pain to update things :-) Eg, if I wanted to update the US I= 'd > have to go update all the FCC domains that the US can use=2E FCC is FCC > without DFS channels; FCC3 is FCC with DFS channels=2E It's just a lot of > work=2E >=20 > * extend it to support new frequency ranges (60GHZ, VHF white spaces); > > in KHz settings rather than MHz increments; > > o Current s are in MHz, not hard to change them to KHz=2E > > Would obviously impact every program that reads the file =2E=2E=2E > > o If I understand correctly, adding new freq ranges is just data > > entry=2E If so, is there a link to the new frequency ranges you > > want added? > > >=20 > Whatever's in the linux regdomain database would be a good start=2E >=20 >=20 > > * add VHT flags and 80/80+80/160MHz wide channel widths=2E > > o More data entry=2E Link to the data you want added? > > >=20 > I've added it for FCC=2E You can see what work it was just to add them ther= e=2E > :-) >=20 >=20 > > If having me add data, refactor, change hierarchy, etc=2E is helpful let > > me know=2E If it sounds like there'll be too much handholding, no hard > > feelings=2E >=20 >=20 > I'm sure we can help out :-) >=20 > So, I'd really like to figure out how to simplify the regdomain=2Exml file=2E > But - we should come up with a firm plan first=2E Luckily this IS basically > all userland work=2E :-) >=20 +1 for the offer to dig in, Aaron! > What do others think? What should we do? I vote for recreating it as a CSV file=2E Would then be easier to work with and easy to convert to other formats -- json/xml/=2E=2E=2E You asked=2E ;-) >=20 >=20 >=20 > -adrian --Chris From owner-freebsd-wireless@freebsd.org Tue Jul 21 20:13:27 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 32430366D91 for ; Tue, 21 Jul 2020 20:13:27 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-qt1-x82a.google.com (mail-qt1-x82a.google.com [IPv6:2607:f8b0:4864:20::82a]) (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 4BB8tG24Jyz4B2P for ; Tue, 21 Jul 2020 20:13:26 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mail-qt1-x82a.google.com with SMTP id a32so138019qtb.5 for ; Tue, 21 Jul 2020 13:13:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=VDBdSorZjxbEyzUteXlzzyXpyYxehf3DB7oEmBxXC3M=; b=ru3C5JG6BuSbybF0b68jenZ3eh/5tmHVGWITZ+StIGjUqS9NlovaRJf1tLNMzYW/iI SBxk3Z44TNeKQXtvcNv1Co2nAsix4N7IwI2gYYmVePlaQvIA8pThGfDa5bbONcrOleKO 61BiFKZ70RwtQbYXlcJ7q+n0lzGeawFhW9vPOQS+qx7qYfylWoCKRohmEY+iTjjrm6P/ 8/MUaulIrxICcfHqWnt8AbFhKU8XnJlj/nx7BfGNI9Cgr5tTRnrDY/2J4Mit2gCPQixa eFF32fApXHvGp2UcXIx1IsN1XTKrEade8+wBigOnycFs6ptSOdO2ghTAoRqQq3sc7Vgs RoTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=VDBdSorZjxbEyzUteXlzzyXpyYxehf3DB7oEmBxXC3M=; b=FzmBJK0UlDdjifDKwuzAApiDI8x6x/vnIcWKEVJ0PKNpVzeeDwLvSJ26qcPBtbkoNK p32XZyK3nv6Ai/lPj/AgZMVVi3PvfI1OlnqG1wkjAsdvOoVGvF2sY1YnJDUpNFAZsACi cIkn/N+8oz5z9LuwhVWxTfNBgQUOlKwEM3jSJPsAP8YXm6zkGv4UYDmEsMWUxAcT2qVH h+VI5ULg7tUSsFZXeOJN4PGwcudFUl7gyAvBe3vWFo2HASqFoIKa6TyauixKLdvBQeyF 6WIKn7kSfhWl9Abz1uupa4eZjbR+d/8EfbcfPAgTt31/XvqJ6Ehx9lJeDM2Ch7+UuBp6 dtLg== X-Gm-Message-State: AOAM531BCRNPcNJ3yji+Ew1oAVs7gb/v02iJZlGoTFXDRcH34hY+sILG BzBNuEBxSvGCVGHAEIsjmUk3bhUIE8FXv8d0uTJGmQ== X-Google-Smtp-Source: ABdhPJyimGSHKDrG5iQG+/+oO7TxCkYFKuMOv+ooYX1gAcHmUUukK7yqKesboSrlHAg9SdoZvV/njB9UAEnwZMPgqog= X-Received: by 2002:ac8:514d:: with SMTP id h13mr31051505qtn.223.1595362405276; Tue, 21 Jul 2020 13:13:25 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Adrian Chadd Date: Tue, 21 Jul 2020 13:13:12 -0700 Message-ID: Subject: Re: regdomain.xml To: Chris H Cc: freebsd-wireless X-Rspamd-Queue-Id: 4BB8tG24Jyz4B2P X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=ru3C5JG6; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of adrianchadd@gmail.com designates 2607:f8b0:4864:20::82a as permitted sender) smtp.mailfrom=adrianchadd@gmail.com X-Spamd-Result: default: False [-3.60 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.04)[-1.042]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-wireless@freebsd.org]; NEURAL_HAM_LONG(-0.98)[-0.978]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::82a:from]; NEURAL_HAM_SHORT(-0.59)[-0.585]; 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]; TAGGED_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] Content-Type: text/plain; charset="UTF-8" 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: Tue, 21 Jul 2020 20:13:27 -0000 On Tue, 21 Jul 2020 at 12:59, Chris wrote: > > So, I'd really like to figure out how to simplify the regdomain.xml file. > > But - we should come up with a firm plan first. Luckily this IS basically > > all userland work. :-) > > > +1 for the offer to dig in, Aaron! > > > What do others think? What should we do? > I vote for recreating it as a CSV file. Would then be easier to work with > and easy to convert to other formats -- json/xml/... > Lol, if anything we'd likely use a format that we already use inside the tree, so json or xml. I don't MIND xml, but I mind how it's laid out right now . It makes extending things a pain in the rear. > > You asked. ;-) > I did. :-) -adrian > > > > > > > > -adrian > > --Chris > > > _______________________________________________ > 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 > " > From owner-freebsd-wireless@freebsd.org Tue Jul 21 20:21:23 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 6D5F6366DB3 for ; Tue, 21 Jul 2020 20:21:23 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BB93R2NKFz4BKR for ; Tue, 21 Jul 2020 20:21:23 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: from mail-qk1-f175.google.com (mail-qk1-f175.google.com [209.85.222.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) (Authenticated sender: kevans) by smtp.freebsd.org (Postfix) with ESMTPSA id 2BFCD28021 for ; Tue, 21 Jul 2020 20:21:23 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: by mail-qk1-f175.google.com with SMTP id g26so10524589qka.3 for ; Tue, 21 Jul 2020 13:21:23 -0700 (PDT) X-Gm-Message-State: AOAM531oYYXW/NJKkSF5RvVl7mxVyhUyLkRYT4pBtaKkzxjtDaeHJB6Y 9m3W63AY/ASoCDg2COfE9qwyRSxJ/NKLd2iUFQc= X-Google-Smtp-Source: ABdhPJxhUDgbk1htLLAciCvBlb/7Zsidd+fDt+5ZAtQzFK4gGBl/toJVcqfowLL/zRTLFwPtSPTgiBM+5SgSikdn+9M= X-Received: by 2002:a37:b987:: with SMTP id j129mr29337092qkf.120.1595362882752; Tue, 21 Jul 2020 13:21:22 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Kyle Evans Date: Tue, 21 Jul 2020 15:21:10 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: regdomain.xml To: Adrian Chadd Cc: Chris H , freebsd-wireless Content-Type: text/plain; charset="UTF-8" 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: Tue, 21 Jul 2020 20:21:23 -0000 On Tue, Jul 21, 2020 at 3:13 PM Adrian Chadd wrote: > > On Tue, 21 Jul 2020 at 12:59, Chris wrote: > > > > > So, I'd really like to figure out how to simplify the regdomain.xml file. > > > But - we should come up with a firm plan first. Luckily this IS basically > > > all userland work. :-) > > > > > +1 for the offer to dig in, Aaron! > > > > > What do others think? What should we do? > > I vote for recreating it as a CSV file. Would then be easier to work with > > and easy to convert to other formats -- json/xml/... > > > > Lol, if anything we'd likely use a format that we already use inside the > tree, so json or xml. I don't MIND xml, but I mind how it's laid out right > now . It makes extending things a pain in the rear. > Don't overlook ucl here, which can even do fancy stuff like file inclusion (which may or may not do object merging, based on how your ucl files are written) and is now used in a couple places of the tree. You could perhaps section off /usr/share/regdomain and do all kinds of fun stuff that reduces the labor involved.v From owner-freebsd-wireless@freebsd.org Tue Jul 21 21:31:23 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 004F336864A for ; Tue, 21 Jul 2020 21:31:23 +0000 (UTC) (envelope-from notjanedeere@gmail.com) Received: from mail-qv1-xf2b.google.com (mail-qv1-xf2b.google.com [IPv6:2607:f8b0:4864:20::f2b]) (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 4BBBc93PNxz4GB2 for ; Tue, 21 Jul 2020 21:31:21 +0000 (UTC) (envelope-from notjanedeere@gmail.com) Received: by mail-qv1-xf2b.google.com with SMTP id u8so112265qvj.12 for ; Tue, 21 Jul 2020 14:31:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=DPKYYWKTieK78LVemT0TlR+NbbbR5m5zDnuNc4cWLO8=; b=FoiKUuntabGSF5EDcXh+orCnQFVChWbnksAybOChoVwmHTlaUa0xkFPTCk3Sd7dECr k6nF+Dob3FcZThgzQMsS/RMnpfQzjhktX302i42spHcZe1CmTip1y/8yheEpdkGyIrun XZmUbdXTNc2sXzwBql4YfLyxCUsiTN+juF3h1RHsPtsiVdRvikyCVOJ1OTGZTvAorzGh /4S34/+C3sMNZuUmder0cV1UbQsqxB6NE4DQekqtl3yO1wcB7K3YDHbt7DVONpkZG2LX DEuUn9eJ+1lmIv5DWbp1tQoR3IbSctAnzOMJhUsBWpzCrR9XR8NLNl/Pv4Ts5MYKZ9VJ pyMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=DPKYYWKTieK78LVemT0TlR+NbbbR5m5zDnuNc4cWLO8=; b=WKjM8dEO11hu0bhozUgDjRkSXg7j5hTy1AKpBpjnbxuPpV9axaGwb2ufM4c6k8QePx 4LjQ1oxGNNyWV7Hw61iuVo4cBNihJL4xZAu6ukAMitMTSeOje941Hr+1SKWG7Jko+Xkf lTMTxLYbvN9OomZ1gowHvvFkTKpr8wJ01PPPSySYZ9IRD69owhEZYVgj39mjrrXdAbRu uLVdsF446T9V985pS39GYZApEcEjWn88GazgnhoqaemBp2akJMK2TFZf6oB3mW2hPrhs F1GKB7h1I1Ug16LRXxL0V9GfSA/Vnn0cTptnXJeAI0lCyoneFOOnEtGLt60EmDSoJWSM JA0Q== X-Gm-Message-State: AOAM533SptOQYECXFGXIJ2OU48qgZ04gdL1p4PIqR0xbOQv2jJTGqB1+ OqVkv2JDHIjwY+8ib3bb3lTRuFoa X-Google-Smtp-Source: ABdhPJyjLl0JEc3TXva5r2gNYdBvrP1OdYFZit7mF5XCO/zdDIGApn87+fLjiQeOk4G02fYZ7hDuww== X-Received: by 2002:a0c:f548:: with SMTP id p8mr28393218qvm.149.1595367080287; Tue, 21 Jul 2020 14:31:20 -0700 (PDT) Received: from [10.5.0.2] ([162.219.176.188]) by smtp.gmail.com with ESMTPSA id d53sm22994317qtc.47.2020.07.21.14.31.19 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 21 Jul 2020 14:31:19 -0700 (PDT) Subject: Re: regdomain.xml To: freebsd-wireless@freebsd.org References: From: Aaron Message-ID: Date: Tue, 21 Jul 2020 17:31: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-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Rspamd-Queue-Id: 4BBBc93PNxz4GB2 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=FoiKUunt; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of notjanedeere@gmail.com designates 2607:f8b0:4864:20::f2b as permitted sender) smtp.mailfrom=notjanedeere@gmail.com X-Spamd-Result: default: False [-3.19 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; NEURAL_HAM_MEDIUM(-0.99)[-0.993]; FROM_HAS_DN(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-wireless@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-0.98)[-0.977]; RCVD_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::f2b:from]; NEURAL_HAM_SHORT(-0.22)[-0.219]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; 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] 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: Tue, 21 Jul 2020 21:31:23 -0000 >>>> What do others think? What should we do? >>> I vote for recreating it as a CSV file. Would then be easier to work with >>> and easy to convert to other formats -- json/xml/... >> Lol, if anything we'd likely use a format that we already use inside the >> tree, so json or xml. I don't MIND xml, but I mind how it's laid out right >> now . It makes extending things a pain in the rear. > Don't overlook ucl here, which can even do fancy stuff like file > inclusion (which may or may not do object merging, based on how your > ucl files are written) and is now used in a couple places of the tree. > You could perhaps section off /usr/share/regdomain and do all kinds of > fun stuff that reduces the labor involved.v UCL looks interesting, what level of adoption does it have?  If it's common enough ... A single CSV file would be a catastrophe, there are several different sections to the regdomain.xml file, it would have to be several.  JSON or XML work, but I certainly won't be editing them manually.  Likely all programmatic through Python, perhaps later we write a shell script to make future changes easier? Agree the current format is poor, will propose changes once I've dug further into how the file is being used and what it's failing to do currently.  Still gathering information. From owner-freebsd-wireless@freebsd.org Tue Jul 21 21:32:40 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 3D3B83688DB for ; Tue, 21 Jul 2020 21:32:40 +0000 (UTC) (envelope-from notjanedeere@gmail.com) Received: from mail-qk1-x730.google.com (mail-qk1-x730.google.com [IPv6:2607:f8b0:4864:20::730]) (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 4BBBdg05Rxz4GSr for ; Tue, 21 Jul 2020 21:32:38 +0000 (UTC) (envelope-from notjanedeere@gmail.com) Received: by mail-qk1-x730.google.com with SMTP id l6so92058qkc.6 for ; Tue, 21 Jul 2020 14:32:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:message-id:date:user-agent:mime-version :content-language; bh=HUfo3XLND3YsziBBBI6LB1J2hbEL5yMx+bxi6o5g8gs=; b=lE9bDQ+AiMOMdhp2pcI75f1oCI3MAa5xOMdjjyXVBzNv0RRI1CKL9c0o7UrBqRhfIG dPWvfo/mgbRnNoEKH6kjpI6Sm/wm5ZUh1At8LqLClLNjYl/qTJbnWpuniKHexphEprOr 9dcG0APXkiJexAPuEhSVjN3sPxm0n1vB/ewPZFzDqhwiMN+jrg6wbQ60II+PItdr2asf cXyUs2mlASTxpo89I/+oArE5kRxy8IBqx7Dfkv+7x3Bnrm51Pu2h6E5/8V1Iau9iJlhV HSZshxECi2GiX/xHSNz9OlO7hBAtfHv/l6RMpd+Eb9Gl5Ob3MlwONmtT0/HVk6Gk8OHp gXVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-language; bh=HUfo3XLND3YsziBBBI6LB1J2hbEL5yMx+bxi6o5g8gs=; b=SYqD2wsb6IdfYbk5ot23CQCK2Eu4w4pvNswuairuuazidllaTBiTgnc8k/OF95QQsz XWFoEXRastvDwR/rHqjOwJ5W3Fwf/5yiQotWq48MK4KnqC5z08Q/+4/5UrNeaz1n/n8T elrkZNGg6pjdvlv7C5m9MD9K7vZPBKilrMS+ncsLaExuV9SlgfvRAVigujJTVGCoOHpU 7s6rLojTF9GNKsx1vlZa2MpwBXKcnFnvKjwrsScd0Mf+EhwvwON3ZHM5GDEcZaxrQpPp MkJH/yHvCfqZ06GmbCC6lj+vGMtZBE6QLnIQdSFz+tBbHr4diX/OfSzcgSvVbLHAcCfV YZzQ== X-Gm-Message-State: AOAM532DPzp6OwG9KRqVHOSVeTDZV1a4nlJ2/AgJx+mFPdn2Ta908lKk 1fIlp6MmvPVQq30ZzKk0OQ+GWbFS X-Google-Smtp-Source: ABdhPJycRjp7Pn0Cx+LHgLx/h3kzrBc99ruxZ2nPRVF136GVl3syCLNHn2Pz2paDpv4DV3nqWH3lHg== X-Received: by 2002:a05:620a:9d0:: with SMTP id y16mr17653767qky.353.1595367157695; Tue, 21 Jul 2020 14:32:37 -0700 (PDT) Received: from [10.5.0.2] ([162.219.176.188]) by smtp.gmail.com with ESMTPSA id c133sm3837993qkb.111.2020.07.21.14.32.36 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 21 Jul 2020 14:32:37 -0700 (PDT) To: freebsd-wireless@freebsd.org From: Aaron Subject: Re: regdomain.xml Message-ID: <87ea181d-b859-ea07-731e-e910e43db16b@gmail.com> Date: Tue, 21 Jul 2020 17:32:36 -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 Content-Language: en-US X-Rspamd-Queue-Id: 4BBBdg05Rxz4GSr X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=lE9bDQ+A; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of notjanedeere@gmail.com designates 2607:f8b0:4864:20::730 as permitted sender) smtp.mailfrom=notjanedeere@gmail.com X-Spamd-Result: default: False [-2.18 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; TO_DN_NONE(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-0.24)[-0.236]; 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]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; FAKE_REPLY(1.00)[]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; NEURAL_HAM_MEDIUM(-0.98)[-0.980]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-0.97)[-0.966]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-wireless@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::730:from]; RCVD_TLS_ALL(0.00)[] 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: Tue, 21 Jul 2020 21:32:40 -0000 Sent this to Adrian instead of the list: --- I preface this with the realisation that I'm using 12.1-RELEASE and should switch to one of the dev releases.  13-CURRENT? > I read the "regdomain" manpage ... no help there. > > Yeah, it's ...old. :-0 Stick that on the TODO?  Once everything else is done, obviously. > Luckily we can just use what's in the linux regulatory domain tables > because they've already done the work of scouring the regulatory sites > for their information :-) I'll search for this myself, but if someone has a link? > >   * the regulatory database is indexed by SKU, rather than by country. >     So adding a new _country_ is actually rather annoyingly difficult. >       o There's a section that links to , so > either >         someone's already done the work here or I need this item > explained. > > The file is organised per-SKU; 'rd' is regulatory domain, not country. The portion of the file is organised by , which contains a .  However, there is a section that is organised by and contains an .  If I wanted to add a new country working under the FCC rules, I'd just add one here and presto.  So why is adding a country difficult?   999 Madeupistan And now Madeupistan is mapped to the "japan" . >   * Change the regulatory database code to be indexed by something > that >     isn't hard-coded, and have the "regulatory domain entry index" map >     _to_ an SKU where needed. >       o "regulatory database code" meaning ? >       o Since SKU in this context is not a Stock Keeping Unit ... >         definition please? > > > it /is/ stock keeping unit. Ok, so! > > This database is an XML representation of the Atheros regulatory > database. You can find that in sys/dev/ath/ath_hal/ah_regdomain/ or > something similar under ath_hal. > It's organised per-SKU because the Atheros parts are kinda organised > that way. Eg, there are multiple japan codes because the japan rules > state that older hardware doesn't need to work with newer rules, but > newer hardware does. So each respin of the japan regdomain rules > created a new SKU. This is actually more confusing rather than less.  If the SKU is a piece of hardware, it shouldn't be in this file at all.  If it SHOULD be here, it should be in its own section.  Currently there's a list of s, a list of s, and a list of s.  If particular hardware (a ) needs to be mapped onto a particular , should there be a list of s? Also, isn't it user-defined which domain you join?  I know my wifi hardware asks me which country/domain/environment I'm in, it doesn't seem to set that without my intervention.  Where in the software does a particular piece of hardware get assigned to JAPAN-2010 instead of JAPAN-2020? Also ... the regulatory domains have versions?  They don't seem to be present in regdomain.xml.  Should they be added? >   * This lets me do useful things like _update the regulatory > database_.. >       o When you refer to the "regulatory database", do you just mean >         "/etc/regdomain.xml"?  And what updates are you trying to do >         that are currently difficult? > > Well, it's a pain to update things :-) Eg, if I wanted to update the > US I'd have to go update all the FCC domains that the US can use. FCC > is FCC without DFS channels; FCC3 is FCC with DFS channels. It's just > a lot of work. As implemented the file allows one to mapping per ISO country code ().  According to the file, the only the US uses is FCC.  How are you currently mapping the US onto multiple s?  Is it happening somewhere outside "/etc/regdomain.xml"? > >   * add VHT flags and 80/80+80/160MHz wide channel widths. >       o More data entry.  Link to the data you want added? > > I've added it for FCC. You can see what work it was just to add them > there. :-) Which FreeBSD version is this work in?  13-CURRENT? > So, I'd really like to figure out how to simplify the regdomain.xml > file. But - we should come up with a firm plan first. Luckily this IS > basically all userland work. :-) I'm trying to understand all the relationships so the refactoring solves rather than causes problems.  I'll be sticking to code samples in the mailing list until everyone's comfortable the new format is better than the old one. I'm not a FreeBSD user, mostly I just have it running on routers and wifi hardware (hence my interest).  Are XML config files widely used? Anyway, thanks for the response! CmdrWgls From owner-freebsd-wireless@freebsd.org Tue Jul 21 21:33:33 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 81E4B3688E7 for ; Tue, 21 Jul 2020 21:33:33 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-qv1-xf2e.google.com (mail-qv1-xf2e.google.com [IPv6:2607:f8b0:4864:20::f2e]) (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 4BBBfh3ljxz4GdX for ; Tue, 21 Jul 2020 21:33:32 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mail-qv1-xf2e.google.com with SMTP id el4so111300qvb.13 for ; Tue, 21 Jul 2020 14:33:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=VZMjHDMaz1CIgnbTOlFmKa3jraegxric+7gm0pE6dHI=; b=a6Ki6bnQ7bFk7GZyk19rPBbCQ5CN1ISvD6xw2gPC8oaHLRDndKVXFafPIASYM/2w6w xoqriPhegDCZX4A3djAUTfaEahDxpi+LAaNHOBcHNkq8SNNvEoBPeFBKHVpLzuK14e9R 5XEkHxY2jL+DTuo4nEVdEd/YMGMXFDppkgu1d/oDRbXZvRxySWti+TzGU9ldqrnhr30x uBURYI69USoh/XF0Tlf0tJirEr6QaeyTXNcVVJRCdh0xYNorig26JHzztcxuiRxnuc0T ehAa2EJefwQn8C1qG+nNqvyQ0cP4bpm3yaHE4kN1a31tlt6DC57657k9u0YqDPVyz7mZ byVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=VZMjHDMaz1CIgnbTOlFmKa3jraegxric+7gm0pE6dHI=; b=W6ZoBQ2wfgzhYz2GZrbT/D/WFLrP0sAmnra+My/+/2rCHIk06hSF8ar0J6ZO2DAsAm 7zhXaW4V0hAg13n2X7jDYMNFXCSQJkRKUUlFoV3PpvrsONpiXAWE/HDmDDIWej8Nc2+s TmHT2yJ5IjLK7nYR0RD1f90+UgwfloVLiNYTlRJ87wy8JBIQSut55olG9hSmu38+6WW6 DWrYRM6FP0MGjuZd/BVjSl3XIa5rRVIxFIvLOrSUZhl7QHq1QdQgSVhB74qtBqnIMcFh Mu0Ne+BV3C/NhULJwTCRpWJGuBVD3ucDBiKtEtt+E1QfUnol8PuHhQmeCwNkQWpNRjaO MUsg== X-Gm-Message-State: AOAM530UKBlJjGe65fhPSVkQsTzVNfHU4S4HFIVBS2G3D0CczhlubTNu +K5fiqw0xU8k4qqJkDt2yaEAJ7jAbj92F0o7d2U= X-Google-Smtp-Source: ABdhPJw0urA6lbBXAZFrxQOHP3vJ6GnZAb6jLr6mI1AikY5ISQDmiNr8IEfopJj+eMf+7Vrl0kzDRPTOYNC0GaspN1c= X-Received: by 2002:a05:6214:a72:: with SMTP id ef18mr28435905qvb.166.1595367211540; Tue, 21 Jul 2020 14:33:31 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Adrian Chadd Date: Tue, 21 Jul 2020 14:33:19 -0700 Message-ID: Subject: Re: regdomain.xml To: Aaron Cc: "freebsd-wireless@freebsd.org" X-Rspamd-Queue-Id: 4BBBfh3ljxz4GdX X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=a6Ki6bnQ; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of adrianchadd@gmail.com designates 2607:f8b0:4864:20::f2e as permitted sender) smtp.mailfrom=adrianchadd@gmail.com X-Spamd-Result: default: False [-3.49 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-0.45)[-0.453]; FREEMAIL_TO(0.00)[gmail.com]; 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]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.03)[-1.033]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-wireless@freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::f2e:from]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] Content-Type: text/plain; charset="UTF-8" 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: Tue, 21 Jul 2020 21:33:33 -0000 On Tue, 21 Jul 2020 at 14:31, Aaron wrote: > > >>>> What do others think? What should we do? > >>> I vote for recreating it as a CSV file. Would then be easier to work > with > >>> and easy to convert to other formats -- json/xml/... > >> Lol, if anything we'd likely use a format that we already use inside the > >> tree, so json or xml. I don't MIND xml, but I mind how it's laid out > right > >> now . It makes extending things a pain in the rear. > > Don't overlook ucl here, which can even do fancy stuff like file > > inclusion (which may or may not do object merging, based on how your > > ucl files are written) and is now used in a couple places of the tree. > > You could perhaps section off /usr/share/regdomain and do all kinds of > > fun stuff that reduces the labor involved.v > > UCL looks interesting, what level of adoption does it have? If it's > common enough ... > > A single CSV file would be a catastrophe, there are several different > sections to the regdomain.xml file, it would have to be several. JSON > or XML work, but I certainly won't be editing them manually. Likely all > programmatic through Python, perhaps later we write a shell script to > make future changes easier? > > Agree the current format is poor, will propose changes once I've dug > further into how the file is being used and what it's failing to do > currently. Still gathering information. > > Ok. Please do dig into it. Do try to treat the regdomain code as a black box - input is "what regulatory domain do we want" and the output is "a list of channels and properties of those channels that we currently program into net80211." Hopefully we don't have to change the net80211 channel API! -adrian From owner-freebsd-wireless@freebsd.org Tue Jul 21 21:42:07 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 C611E368E81 for ; Tue, 21 Jul 2020 21:42:07 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-qk1-f171.google.com (mail-qk1-f171.google.com [209.85.222.171]) (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 4BBBrb0P5Hz4H06 for ; Tue, 21 Jul 2020 21:42:06 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mail-qk1-f171.google.com with SMTP id l6so113794qkc.6 for ; Tue, 21 Jul 2020 14:42:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=bYP/4qDSyJgLrQ6+WO67CWAV52NHYOEfREoCqnaKb18=; b=IwLxeX1Az1geTs8oFUqb0x4buaLnu9WLS3qK9KU+rmDKhI1s+TOjrWlSWp7whggyga Z0v3SYnm/TpX+BtkaDDUY/AQg1X6NP4da9rHbxTBYLzSPReG2LHS1SrOiQk6rvCXL2EH 6zbrjeZ/QNph60lB1dwYyM+2VLZ8gqCWf9FTbtdx3p1EQLHe2CqgLOLeY7tEWuX7vDM5 9hdOVGY9sroExR+Jo42DVZu3oQWD0JipyWJwzP4zMror9Wdve+qhbnLfrPK4bI5soDo3 6ptbFXkZx0u921NWxHMa+louwdZOgzPrQEalBWqAM6Cfq1pFOQ2bb/Isv4Ekai7FJzSt XorA== X-Gm-Message-State: AOAM5303DmJ38liOXVeOsjBe9okVXjecw7sf0Dt4VooA61rQ/ra8Yd/s AylzdDtrb2pDOy6ootlxF+FFHa+eK5GXxy2inx4= X-Google-Smtp-Source: ABdhPJwdkUeRpr/3l3Xwi1ypkKREgej7QXOVfBWeJ1jOf6dfKRxoAnxy1vfUBPts6WZJgpkL04h2CC0cbyhIGF6GUO8= X-Received: by 2002:a05:620a:b04:: with SMTP id t4mr29155604qkg.183.1595367726201; Tue, 21 Jul 2020 14:42:06 -0700 (PDT) MIME-Version: 1.0 References: <7a0f5e2c-a9e2-a476-6d99-f4591211bbe5@gmail.com> In-Reply-To: <7a0f5e2c-a9e2-a476-6d99-f4591211bbe5@gmail.com> From: Adrian Chadd Date: Tue, 21 Jul 2020 14:41:54 -0700 Message-ID: Subject: Re: regdomain.xml To: Aaron , freebsd-wireless X-Rspamd-Queue-Id: 4BBBrb0P5Hz4H06 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of adrianchadd@gmail.com designates 209.85.222.171 as permitted sender) smtp.mailfrom=adrianchadd@gmail.com X-Spamd-Result: default: False [-2.19 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.92)[-0.922]; FROM_NEQ_ENVFROM(0.00)[adrian@freebsd.org,adrianchadd@gmail.com]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17:c]; RCVD_TLS_ALL(0.00)[]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-wireless@freebsd.org]; DMARC_NA(0.00)[freebsd.org]; NEURAL_HAM_LONG(-1.01)[-1.010]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; NEURAL_HAM_SHORT(-0.25)[-0.254]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[209.85.222.171:from]; FREEMAIL_TO(0.00)[gmail.com,freebsd.org]; FORGED_SENDER(0.30)[adrian@freebsd.org,adrianchadd@gmail.com]; RWL_MAILSPIKE_POSSIBLE(0.00)[209.85.222.171:from]; R_DKIM_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; MIME_TRACE(0.00)[0:+,1:+,2:~]; TAGGED_FROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2] Content-Type: text/plain; charset="UTF-8" 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: Tue, 21 Jul 2020 21:42:07 -0000 (cc'ing the list again, hehe :-) On Tue, 21 Jul 2020 at 14:35, Aaron wrote: > > On 7/21/2020 5:33 PM, Adrian Chadd wrote: > > > Ok. Please do dig into it. > > Do try to treat the regdomain code as a black box - input is "what > regulatory domain do we want" and the output is "a list of channels and > properties of those channels that we currently program into net80211." > Hopefully we don't have to change the net80211 channel API! > > This is the sort of information I'm looking for! So far all I'm looking > at is an XML file. Where would I find the "regdomain code"? > (We really should write a page in the wiki about regdomain stuff.) So, here's my suggestion: * get freebsd with a supported wifi card * look at what happens when you type "ifconfig wlan0 create wlandev XXX"; and then "ifconfig wlan0 regdomain FCC3" * .. see what it does with the channel programming in src/sbin/ifconfig/ and src/lib/lib80211/ * Also 'ifconfig wlan0 list sta" and "ifconfig -v wlan0 list sta" in src/sbin/ifconfig/ifieee80211.c look at setdefregdomain(), setregdomain_cb(), print_channels() and list_channels() * print_channels() queries net80211 for the list of channels * list_channels() calls it :-) * setregdomain_cb() sucks in the lib80211 regdomain code, does a bunch of hijinx, and then calls into net80211 using the IEEE80211_IOC_REGDOMAIN ioctl to set the sku/country and the channel list. -adrian From owner-freebsd-wireless@freebsd.org Tue Jul 21 21:48:31 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 3ACC836941B for ; Tue, 21 Jul 2020 21:48:31 +0000 (UTC) (envelope-from notjanedeere@gmail.com) Received: from mail-qt1-x833.google.com (mail-qt1-x833.google.com [IPv6:2607:f8b0:4864:20::833]) (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 4BBBzx0Rfnz4JFM; Tue, 21 Jul 2020 21:48:28 +0000 (UTC) (envelope-from notjanedeere@gmail.com) Received: by mail-qt1-x833.google.com with SMTP id s16so336686qtn.7; Tue, 21 Jul 2020 14:48:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language; bh=c9PWh6WqByLqd8LH2JQablfZrL4FMbJ7rBz0w7llaPM=; b=msK9l3af5ZjZ/PDxqiiuB7dSpXmcTUJM/u+xwNzsleIzY4Y2ol0iTcnCyKsHTiiWPR xptFaDVE2ZYjsyuI1ego3IFdQFJFjIBQgz2m0Bc8jZU8eG04louO+E/F433KpdduJMEq PysrrgVbQzAdWNUpgffFsLxhb/YzHJUlNBZibPwwydXLhccumFdbu7/3rg7wDkEBHljs ERuhKzFUuIbaUqR3YwtmOD3qPsX2KUmnw0tcqOBhe7Zj7ElzOyCUnBnwQ5LyMMCfWF8w mhu6jwzvzRrTnw+DdcoxxCOPmsq0FfOTgVGMcJ4Ve5YkOA93rVc1YNVW9cg9SExPXWhp 7a1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=c9PWh6WqByLqd8LH2JQablfZrL4FMbJ7rBz0w7llaPM=; b=YTaWPINndSJzS8F6tRWL8DU5omhznL40kt78ZmV2Fhn8730DYlVPE5QbKOAmuZ3AuT PIK5NWiKz7kFCEBYINbyxlzdhvanhwq2IlQ/dmN4OcX//MEV6h+GYiz7/YuCJ4Uu8jM6 fNqW8+MG1U5rkDnJyj1aVhUWQcglQqg912IB1OoQH5135V81sQVFfB0tbtI/y8Mxh7w4 CR37DvrgT8+9scwjuSI/w7/K/xqGuPwxRXnpQkk/xDlxf2B/qbCp0YDxPbTlgKN2oMVD 6WH/+pg0+UTe5GVeLwywoQnyvyVR9qMOUAaxqeChrsfUOgC6/WhCmBhOfQWiATmwYTjo fQdw== X-Gm-Message-State: AOAM531Mz70YvwXpb0VpuPp00YGZlKsZ5xzbdgafT9zhf3at2Y3bEs4V L+BxVt30rUiopGaRArwYkE6DKNbt X-Google-Smtp-Source: ABdhPJxKu9zEkkvPK62lWFFqWIHjnfmILqIiNsjTNDB1xVMIA0Z06IXVkPTwdrsVSKELG9h/cwRByQ== X-Received: by 2002:ac8:13c9:: with SMTP id i9mr31620486qtj.284.1595368106924; Tue, 21 Jul 2020 14:48:26 -0700 (PDT) Received: from [10.5.0.2] ([162.219.176.188]) by smtp.gmail.com with ESMTPSA id g1sm3422178qkl.86.2020.07.21.14.48.26 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 21 Jul 2020 14:48:26 -0700 (PDT) Subject: Re: regdomain.xml To: Adrian Chadd , freebsd-wireless References: <7a0f5e2c-a9e2-a476-6d99-f4591211bbe5@gmail.com> From: Aaron Message-ID: <31f9101a-1892-ea26-a5ed-460023e1c0f6@gmail.com> Date: Tue, 21 Jul 2020 17:48:25 -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: 4BBBzx0Rfnz4JFM X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=msK9l3af; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of notjanedeere@gmail.com designates 2607:f8b0:4864:20::833 as permitted sender) smtp.mailfrom=notjanedeere@gmail.com X-Spamd-Result: default: False [-3.33 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; NEURAL_HAM_MEDIUM(-1.03)[-1.031]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-0.98)[-0.979]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::833:from]; NEURAL_HAM_SHORT(-0.32)[-0.320]; 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: Tue, 21 Jul 2020 21:48:31 -0000 On 7/21/2020 5:41 PM, Adrian Chadd wrote: > (cc'ing the list again, hehe :-) > On Tue, 21 Jul 2020 at 14:35, Aaron > wrote: > > On 7/21/2020 5:33 PM, Adrian Chadd wrote: > >> Ok. Please do dig into it. >> >> Do try to treat the regdomain code as a black box - input is >> "what regulatory domain do we want" and the output is "a list of >> channels and properties of those channels that we currently >> program into net80211." Hopefully we don't have to change the >> net80211 channel API! > This is the sort of information I'm looking for!  So far all I'm > looking at is an XML file.  Where would I find the "regdomain code"? > > > (We really should write a page in the wiki about regdomain stuff.) > > So, here's my suggestion: > > * get freebsd with a supported wifi card > * look at what happens when you type "ifconfig wlan0 create wlandev > XXX"; and then "ifconfig wlan0 regdomain FCC3" > * .. see what it does with the channel programming in > src/sbin/ifconfig/ and src/lib/lib80211/ > * Also 'ifconfig wlan0 list sta" and "ifconfig -v wlan0 list sta" > > in src/sbin/ifconfig/ifieee80211.c look at > setdefregdomain(), setregdomain_cb(), print_channels() and list_channels() > > * print_channels() queries net80211 for the list of channels > * list_channels() calls it :-) > * setregdomain_cb() sucks in the lib80211 regdomain code, does a bunch > of hijinx, and then calls into net80211 using the > IEEE80211_IOC_REGDOMAIN ioctl to set the sku/country and the channel list. > > > > -adrian So much for limiting myself to XML parsing.  I'll grab some source files and take a look, I can code but might be too removed from what's being done here to get my ahead around it.  Thanks all. From owner-freebsd-wireless@freebsd.org Tue Jul 21 21:52:14 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 0A20436959B for ; Tue, 21 Jul 2020 21:52:14 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-qt1-f171.google.com (mail-qt1-f171.google.com [209.85.160.171]) (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 4BBC4D6PFDz4K0h for ; Tue, 21 Jul 2020 21:52:12 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mail-qt1-f171.google.com with SMTP id a32so351918qtb.5 for ; Tue, 21 Jul 2020 14:52:12 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=mdvbjPK3EzRPIrCYbSNi2xRJY0+ElqIDSJ/703kRelE=; b=R7YcHt4tbQfDO9QV2UbxD4A3RhFvooxZWwKUPvjH9qnNZTC/biOK0308B5GF9Crq4k K3Yy3CC2bBx5ucco678WYT4w0I83zqAfnMB4Z08Un01+w/zLDTeEHbFjt2HpPP0rsvbn fdIUCGQNdr+jnsGAlILYGGVHUoYPeqieONfxNu0df+3gOHkoMD0p/OP67YE4v1R1/LWc nnPAwgz2W3+OswzfItHXf++DbHMacbnk8qfmVcgIsTqUPzwZ1ftfjA8x5LDA+wRxD0Hp NDcdzO7gIw/knMjFRjycFLvJtJz4vH3HYJfI7YMxSbpSqGNGyGfTsjUGOEIl+rnHIP9w UqSQ== X-Gm-Message-State: AOAM532syhsU48U5pcuPkiOJIojVn/yAWksNzvRxp38A/YfoAuzr5lwj Pk+6DjBIZgBLnTtLAs5HIMfsX96wRkUUTiAxqYJqLQ== X-Google-Smtp-Source: ABdhPJwbfLl+Oi9Xx2eVc9y6s6dMdwDg5YCd2u4+vJlg8d6FpxvWAgaa0cdCuv4UaItTz2pL660R9AgXgySEmmCgV9c= X-Received: by 2002:ac8:1788:: with SMTP id o8mr2357142qtj.330.1595368332130; Tue, 21 Jul 2020 14:52:12 -0700 (PDT) MIME-Version: 1.0 References: <7a0f5e2c-a9e2-a476-6d99-f4591211bbe5@gmail.com> <31f9101a-1892-ea26-a5ed-460023e1c0f6@gmail.com> In-Reply-To: <31f9101a-1892-ea26-a5ed-460023e1c0f6@gmail.com> From: Adrian Chadd Date: Tue, 21 Jul 2020 14:52:00 -0700 Message-ID: Subject: Re: regdomain.xml To: Aaron Cc: freebsd-wireless X-Rspamd-Queue-Id: 4BBC4D6PFDz4K0h X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of adrianchadd@gmail.com designates 209.85.160.171 as permitted sender) smtp.mailfrom=adrianchadd@gmail.com X-Spamd-Result: default: False [-2.19 / 15.00]; FROM_NEQ_ENVFROM(0.00)[adrian@freebsd.org,adrianchadd@gmail.com]; ARC_NA(0.00)[]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17]; NEURAL_HAM_LONG(-1.01)[-1.010]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-wireless@freebsd.org]; DMARC_NA(0.00)[freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; NEURAL_HAM_SHORT(-0.25)[-0.254]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[209.85.160.171:from]; NEURAL_HAM_MEDIUM(-0.92)[-0.922]; FREEMAIL_TO(0.00)[gmail.com]; FORGED_SENDER(0.30)[adrian@freebsd.org,adrianchadd@gmail.com]; RWL_MAILSPIKE_POSSIBLE(0.00)[209.85.160.171:from]; R_DKIM_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; MIME_TRACE(0.00)[0:+,1:+,2:~]; TAGGED_FROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2] Content-Type: text/plain; charset="UTF-8" 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: Tue, 21 Jul 2020 21:52:14 -0000 On Tue, 21 Jul 2020 at 14:48, Aaron wrote: > On 7/21/2020 5:41 PM, Adrian Chadd wrote: > > (cc'ing the list again, hehe :-) > On Tue, 21 Jul 2020 at 14:35, Aaron wrote: > >> On 7/21/2020 5:33 PM, Adrian Chadd wrote: >> > Ok. Please do dig into it. >> >> Do try to treat the regdomain code as a black box - input is "what >> regulatory domain do we want" and the output is "a list of channels and >> properties of those channels that we currently program into net80211." >> Hopefully we don't have to change the net80211 channel API! >> >> This is the sort of information I'm looking for! So far all I'm looking >> at is an XML file. Where would I find the "regdomain code"? >> > > (We really should write a page in the wiki about regdomain stuff.) > > So, here's my suggestion: > > * get freebsd with a supported wifi card > * look at what happens when you type "ifconfig wlan0 create wlandev XXX"; > and then "ifconfig wlan0 regdomain FCC3" > * .. see what it does with the channel programming in src/sbin/ifconfig/ > and src/lib/lib80211/ > * Also 'ifconfig wlan0 list sta" and "ifconfig -v wlan0 list sta" > > in src/sbin/ifconfig/ifieee80211.c look at > setdefregdomain(), setregdomain_cb(), print_channels() and list_channels() > > * print_channels() queries net80211 for the list of channels > * list_channels() calls it :-) > * setregdomain_cb() sucks in the lib80211 regdomain code, does a bunch of > hijinx, and then calls into net80211 using the IEEE80211_IOC_REGDOMAIN > ioctl to set the sku/country and the channel list. > > > > -adrian > > So much for limiting myself to XML parsing. I'll grab some source files > and take a look, I can code but might be too removed from what's being done > here to get my ahead around it. Thanks all. > Oh! It's ok! If this is too big a thing then we can look around for other bits and pieces that need doing. :-) I'd still like to get the regdomain stuff discussed! -a From owner-freebsd-wireless@freebsd.org Tue Jul 21 21:56:41 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 5B3103694CA for ; Tue, 21 Jul 2020 21:56:41 +0000 (UTC) (envelope-from notjanedeere@gmail.com) Received: from mail-qk1-x731.google.com (mail-qk1-x731.google.com [IPv6:2607:f8b0:4864:20::731]) (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 4BBC9N4Cmvz4K3V for ; Tue, 21 Jul 2020 21:56:40 +0000 (UTC) (envelope-from notjanedeere@gmail.com) Received: by mail-qk1-x731.google.com with SMTP id x69so176831qkb.1 for ; Tue, 21 Jul 2020 14:56:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language; bh=6lZPkaos76bySE3s2vwfAARMnGYZ4lIq/+yvhp4tw24=; b=qaodDDwz250+pZZf6Rzkc+zqljCzTT28VmWjqqzIHcm9jAf9WX2CCaUeJwKlz+HXU3 YzcmkLON0hGdErZWdVL1ThqnQBIT+PwweWyxh59Mv6jA3KnjZ32PTUPOzZWu6Jm+c0QV 2o+uzNVaMiheDgu98+XxH0R9JvmTajyaJTbaUmVbBNQBqeiswTYFfo7byZ/nVj9w1NVb jobiyb9zIkxIRoZ4/k7XJsFAGtpzgVGN0+6Zgw48GCKtqDcCtwm3srlzd+MDCti4NiN8 /BQOstV399ePQKgWkqWqgQCFw1h/8TaNw7CuwgX9kAxFv5/aW18RWyFXoTr/9qDOcYOC i9tA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=6lZPkaos76bySE3s2vwfAARMnGYZ4lIq/+yvhp4tw24=; b=gkH/fgQTvgNa99yk3/xDysCF8Um3xBFigzSTXS4o2i59rGN11eP6cmalXDJFdKJWVv 8AOE0zhevI1mbC5wXHEBLBztoJntOBQorsfafTxABkulU2lLYiY5Gl6xVCWOcy9ChgGr xTBMAMFrKhtRm4Z1gE+CTRLl3+I4odTybUli4nIF9a4iX8Aq6NNMMfpRKZ0MYPGNcuHO JYcqyPWnpC59PCcrnpOPtb4hMlHe+hHPXwKJR+OLYxa3cUEvJhs5eYPZCI8JLduSiRZY 0DIbqvcmcM5TB48uu5E2bBMEHyJcYO5NuIl5CI52EY1Q3rnTqYfje58k+hKXcfGbkG0E +VmQ== X-Gm-Message-State: AOAM530yNQuAAv3zmTW5gujaR+YI6sylOUkrVML01qGZmS5lrG0UnS+x d6bYnLdJ9SaOIyacd6wGFIS6l1Mt X-Google-Smtp-Source: ABdhPJygrBxmR4qocYrrKXLo62nGP/kQ7D3R09to2+Dua/kzv/0NgsJ/41+f9tCNFgvM7vxxqxCyhg== X-Received: by 2002:a05:620a:40c1:: with SMTP id g1mr29286327qko.391.1595368599366; Tue, 21 Jul 2020 14:56:39 -0700 (PDT) Received: from [10.5.0.2] ([162.219.176.188]) by smtp.gmail.com with ESMTPSA id m32sm23925425qtd.94.2020.07.21.14.56.38 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 21 Jul 2020 14:56:39 -0700 (PDT) Subject: Re: regdomain.xml To: freebsd-wireless References: <7a0f5e2c-a9e2-a476-6d99-f4591211bbe5@gmail.com> <31f9101a-1892-ea26-a5ed-460023e1c0f6@gmail.com> From: Aaron Message-ID: Date: Tue, 21 Jul 2020 17:56:38 -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: 4BBC9N4Cmvz4K3V X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=qaodDDwz; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of notjanedeere@gmail.com designates 2607:f8b0:4864:20::731 as permitted sender) smtp.mailfrom=notjanedeere@gmail.com X-Spamd-Result: default: False [-3.44 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; NEURAL_HAM_MEDIUM(-1.04)[-1.038]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-wireless@freebsd.org]; NEURAL_HAM_LONG(-0.99)[-0.987]; 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::731:from]; NEURAL_HAM_SHORT(-0.41)[-0.411]; TO_MATCH_ENVRCPT_ALL(0.00)[]; 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: Tue, 21 Jul 2020 21:56:41 -0000 On 7/21/2020 5:52 PM, Adrian Chadd wrote: > On Tue, 21 Jul 2020 at 14:48, Aaron > wrote: > > On 7/21/2020 5:41 PM, Adrian Chadd wrote: >> (cc'ing the list again, hehe :-) >> On Tue, 21 Jul 2020 at 14:35, Aaron > > wrote: >> >> On 7/21/2020 5:33 PM, Adrian Chadd wrote: >> >>> Ok. Please do dig into it. >>> >>> Do try to treat the regdomain code as a black box - input is >>> "what regulatory domain do we want" and the output is "a >>> list of channels and properties of those channels that we >>> currently program into net80211." Hopefully we don't have to >>> change the net80211 channel API! >> This is the sort of information I'm looking for!  So far all >> I'm looking at is an XML file. Where would I find the >> "regdomain code"? >> >> >> (We really should write a page in the wiki about regdomain stuff.) >> >> So, here's my suggestion: >> >> * get freebsd with a supported wifi card >> * look at what happens when you type "ifconfig wlan0 create >> wlandev XXX"; and then "ifconfig wlan0 regdomain FCC3" >> * .. see what it does with the channel programming in >> src/sbin/ifconfig/ and src/lib/lib80211/ >> * Also 'ifconfig wlan0 list sta" and "ifconfig -v wlan0 list sta" >> >> in src/sbin/ifconfig/ifieee80211.c look at >> setdefregdomain(), setregdomain_cb(), print_channels() and >> list_channels() >> >> * print_channels() queries net80211 for the list of channels >> * list_channels() calls it :-) >> * setregdomain_cb() sucks in the lib80211 regdomain code, does a >> bunch of hijinx, and then calls into net80211 using the >> IEEE80211_IOC_REGDOMAIN ioctl to set the sku/country and the >> channel list. >> >> >> >> -adrian > > So much for limiting myself to XML parsing.  I'll grab some source > files and take a look, I can code but might be too removed from > what's being done here to get my ahead around it.  Thanks all. > > > Oh! It's ok! If this is too big a thing then we can look around for > other bits and pieces that need doing. :-) > > I'd still like to get the regdomain stuff discussed! > > > > -a No, I'm down - until I see what the code looks like of course.  If it's modular enough to be understood without too many adjacent systems I might be alright.  At present I'm less interested in changing the code that operates on the XML file and more interested in a refactoring.  (Which will necessitate code changes, but I expect I'll be less involved there.)  I'm good at data design work, I'll try and stay in my lane. From owner-freebsd-wireless@freebsd.org Wed Jul 22 02:25:39 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 3553736E951 for ; Wed, 22 Jul 2020 02:25:39 +0000 (UTC) (envelope-from notjanedeere@gmail.com) Received: from mail-io1-xd2e.google.com (mail-io1-xd2e.google.com [IPv6:2607:f8b0:4864:20::d2e]) (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 4BBK7k1yt2z4Xy6 for ; Wed, 22 Jul 2020 02:25:38 +0000 (UTC) (envelope-from notjanedeere@gmail.com) Received: by mail-io1-xd2e.google.com with SMTP id i4so841829iov.11 for ; Tue, 21 Jul 2020 19:25:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:message-id:date:user-agent:mime-version :content-transfer-encoding:content-language; bh=ss5c/VK78Q+5u2GRfFd17gjzfNfS27WPJfwKvUeO/xM=; b=da5w6xPL6M/8BF4BL0TPTDrQrscnC9dvjvUt5XYPqIsD0h69pGMJdZT9VuQyztYfjT iAlXyeFK7Lj3FkYfQH3M6EpOLlt542Tf2CYKoJq1tm8+FCIYykdAn/xnFsrkbmrz4oPI TozpKZWBJbFMczg5bTDGhJlxljFAJny/EVOOTQsI1EkL661wdlz6DFrC6/eN7Bwqq9yL F1NJcl1lpnpF+y69yqSw15cAQY+6rFdo5jrrH5RJRNBbzTqrs7HFDx6XettCjOqkj44q WULlxxU2373Eeie+NBQZ5It13Eiw8KMGAYLQ1Y8QvHTxp5mtgJPedF65G/iA8uhnsgoP kAMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-transfer-encoding:content-language; bh=ss5c/VK78Q+5u2GRfFd17gjzfNfS27WPJfwKvUeO/xM=; b=NAHulrispWGp1GboYlckhPdtqaiMW3EXanb5fDSPu2NbF+PJyWBGgtTE862uJcp5P5 ufHwvwHHgid0w3Zg7guh4/7flK7B76by9gio1Mpg76OMhIpJ/iqAcakrdii8Xk29b+8T kR06/hqKO2+7itiYSaByw12bvo74+qzvkbYWJ3D8RaX+emjg9cgr4K13+hws0FjAIjO2 V0GdCXhjaPtb+MsiUoN4RBAXqKZ0fAg0sXts0z4s9To/9WxofgRbBGSaaRuEZiVawaqG bfYvwdLLleshwhJb/odU1f9OxFF/iaofLQOBv06wLnyEIiQPSj24Sa8277oG7+6yU7vh oCzw== X-Gm-Message-State: AOAM531l0TwMGJAoGwO34mXXS/82x3PfcU0e05zcV1mK0cBgNp0KNqJS VGvbCuIjVfppjyy+klSGT08KR+kP X-Google-Smtp-Source: ABdhPJzed9KiQaWiA6ut2EFu5PrGez1k10yYpvf66vA6pLSKtWfBQhi1h8Ht6jib+xKKiF8gIe8RxA== X-Received: by 2002:a05:6638:2401:: with SMTP id z1mr10480779jat.97.1595384736797; Tue, 21 Jul 2020 19:25:36 -0700 (PDT) Received: from [10.5.0.2] ([153.92.40.7]) by smtp.gmail.com with ESMTPSA id f206sm11555125ilh.75.2020.07.21.19.25.35 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 21 Jul 2020 19:25:36 -0700 (PDT) To: freebsd-wireless From: Aaron Subject: regdomain.xml - Linux wireless-regdb Message-ID: <981a7753-1c85-7837-7aeb-15bf069fa6b8@gmail.com> Date: Tue, 21 Jul 2020 22:25:35 -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 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Rspamd-Queue-Id: 4BBK7k1yt2z4Xy6 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=da5w6xPL; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of notjanedeere@gmail.com designates 2607:f8b0:4864:20::d2e as permitted sender) smtp.mailfrom=notjanedeere@gmail.com X-Spamd-Result: default: False [-2.90 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; NEURAL_HAM_MEDIUM(-1.03)[-1.028]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-wireless@freebsd.org]; NEURAL_HAM_LONG(-0.98)[-0.983]; 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::d2e:from]; NEURAL_SPAM_SHORT(0.11)[0.108]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; 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] 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 02:25:39 -0000 For reference, found this: https://mirrors.edge.kernel.org/pub/software/network/wireless-regdb/ Contains current (2020-04) regulatory information.  Format appears to be: country [ISO3166 2-character country code]: [regulatory domain code]     ([start freq in MHz] - [end freq in MHZ] @ [channel width in MHz]), ([max transmit power in db] OR [max transmit in mW]), flag1, flag2, ... Example for US: # https://www.ecfr.gov/cgi-bin/text-idx?SID=eed706a2c49fd9271106c3228b0615f3&mc=true&node=pt47.1.15&rgn=div5 # Title 47 Part 15 - Radio Frequency Devices, April 2, 2020 country US: DFS-FCC     (2400 - 2483.5 @ 40), (30)     # 5.15 ~ 5.25 GHz: 30 dBm for master mode, 23 dBm for clients     (5150 - 5250 @ 80), (23), AUTO-BW     (5250 - 5350 @ 80), (23), DFS, AUTO-BW     # This range ends at 5725 MHz, but channel 144 extends to 5730 MHz.     # Since 5725 ~ 5730 MHz belongs to the next range which has looser     # requirements, we can extend the range by 5 MHz to make the kernel     # happy and be able to use channel 144.     (5470 - 5730 @ 160), (23), DFS     (5730 - 5850 @ 80), (30)     # 60g band     # reference: section IV-D https://docs.fcc.gov/public/attachments/FCC-16-89A1.pdf     # channels 1-6 EIRP=40dBm(43dBm peak)     (57240 - 71000 @ 2160), (40) It's referenced and complete, LICENSE only requires preserving copyright notice, contains already written code to parse the data ... looks like a very good place to start.  Opinions? From owner-freebsd-wireless@freebsd.org Wed Jul 22 02:53:25 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 3DA9936EEF8 for ; Wed, 22 Jul 2020 02:53:25 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-qt1-x834.google.com (mail-qt1-x834.google.com [IPv6:2607:f8b0:4864:20::834]) (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 4BBKlm2GCgz4Yjf for ; Wed, 22 Jul 2020 02:53:24 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mail-qt1-x834.google.com with SMTP id 6so849799qtt.0 for ; Tue, 21 Jul 2020 19:53:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=+QJYP3VMsM+SkDqbGhKfSkQ5IJKdAWAEcBro0KsAL6k=; b=cOG0a85yEy/qKUfHYkr2L5+0trqiZpcGqfGBVJT08ZcE46LksHbSbgDZmX4kN4UKHh TcT5rCkgv3P+wRKjjLDGrE1A9o/khqoRnMp238it4/Y1r0W1Poutq8sV6LBbk1efXq6R 6GH8v3RdGQHVcst2QMlG4NHWi5xJbspPlF/y+C5tI6K9Y6ea5KwfuUL6CtyrEfXZaaoI HGVBJXYIzTMjrOm3Os7BQPXShpO0yIjLyvorriat7ojEEs6SpB3hKxuX3Kl6zloGi7zi SgWWuOfGxvV7KvwzXejHkvhYEpuhTAjdxiHjaotB/CuSIkQXIN3Wn/+FDVBBsmMV1IHH jlyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=+QJYP3VMsM+SkDqbGhKfSkQ5IJKdAWAEcBro0KsAL6k=; b=uiUqQDHfP9i7kBLgbZYCVokbNSzl+zji9x70nnVKzjvF53CinweuVOCR9yGLHrhfqL M67YlOMZoUAf7Z8hp1hc1YiRySP7ZUuEZvQ732piaePSt5UCPCWde0D0T1XzE0p8RSKz MR0WHYs6mFm/cGzP15HDP4NLgF3wYx8627FB6EMMFlXKEqfK4YssabbmyEg680r4A39p KzHPlPQae4WjnrF7KGrzxBXf1XmEp08IsLp/Xq1mmANJ360j+kUprEWbsMfBQ9S/QkqV MmimXmBTUKkmV5VXi4GaynnOKPb2WrpPhH3UGK1cNiPpkrrnb7aWK0u2A613UzYAHvO6 OdVA== X-Gm-Message-State: AOAM532NJoy1CFpObsv9rclMcBgWeIqe3cQcWybuZvpoizmujmI3EHz+ uOvMeZyRhz/UpSMllsWYBnF00zcD38xhz6ZPvGY= X-Google-Smtp-Source: ABdhPJw+iTlDdx0N7ajI+WCJuLM1f9IQENjZd2aoFOQ1K82K2q4tdn9YgVTpfKzpsKzNt7AQ0FdDHLh1QM2L+bJsspM= X-Received: by 2002:ac8:3129:: with SMTP id g38mr31071076qtb.92.1595386403433; Tue, 21 Jul 2020 19:53:23 -0700 (PDT) MIME-Version: 1.0 References: <981a7753-1c85-7837-7aeb-15bf069fa6b8@gmail.com> In-Reply-To: <981a7753-1c85-7837-7aeb-15bf069fa6b8@gmail.com> From: Adrian Chadd Date: Tue, 21 Jul 2020 19:53:11 -0700 Message-ID: Subject: Re: regdomain.xml - Linux wireless-regdb To: Aaron Cc: freebsd-wireless X-Rspamd-Queue-Id: 4BBKlm2GCgz4Yjf X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=cOG0a85y; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of adrianchadd@gmail.com designates 2607:f8b0:4864:20::834 as permitted sender) smtp.mailfrom=adrianchadd@gmail.com X-Spamd-Result: default: False [-3.52 / 15.00]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; NEURAL_HAM_MEDIUM(-1.04)[-1.037]; FROM_HAS_DN(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-wireless@freebsd.org]; NEURAL_HAM_LONG(-0.99)[-0.987]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::834:from]; NEURAL_HAM_SHORT(-0.49)[-0.492]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FREEMAIL_TO(0.00)[gmail.com]; 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]; TAGGED_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] Content-Type: text/plain; charset="UTF-8" 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 02:53:25 -0000 As a data source yes, but I'd /love/ ours to be more structured. Parsing the wireless-regdb format is ... lol. -a From owner-freebsd-wireless@freebsd.org Wed Jul 22 03:03:17 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 2258F36F638 for ; Wed, 22 Jul 2020 03:03:17 +0000 (UTC) (envelope-from notjanedeere@gmail.com) Received: from mail-io1-xd29.google.com (mail-io1-xd29.google.com [IPv6:2607:f8b0:4864:20::d29]) (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 4BBKz76FFxz4ZJd for ; Wed, 22 Jul 2020 03:03:15 +0000 (UTC) (envelope-from notjanedeere@gmail.com) Received: by mail-io1-xd29.google.com with SMTP id k23so960858iom.10 for ; Tue, 21 Jul 2020 20:03:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=iKslAOMOgOCI1/Ut3B84ZJWiIu6GZu5vXBz40SKmId4=; b=KM1N3uS8EYvSCC5y4o3h6C8DNIC+q+/hIilcJsPJNchVT4h9vuvtZL4PTrhz84AgXQ ZVmRZ01OBNk7Gm66FLEx5WsxJ456w9KDTtuYhrodBe9T9K6IJdvL3noUxBu25mMLIGyn 50/o0rU0+BUG8zs8AKU3kEvDG77ABT32NldnuIglgTFgBhFyhSafVKR3RVjfeCNZMfau EiI/W02/rT+stV63+CyLQFZ0BWJo4Fma1RBhIXlcbxPxlPxos4rurIRbX0sIYcihKjEG 0R9eBaDwMHnOkqWupPpW8EBhW6PXvckT/Hz+BwjxRhCgQ6sEXzvndc+Imy4mfBmvU9W2 VjEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=iKslAOMOgOCI1/Ut3B84ZJWiIu6GZu5vXBz40SKmId4=; b=ny+kwNI9+kijOBwpqKzj/G3QjoGyp8iOApsZvuIAlCE5Q58obDnzl5s5pi2N7UWrJ1 f7T31hIEczkKNSywnHVM2eApbCgsK1bY26WuhX5pa8qIjDstoreKZj7DzNW8GzOrRIER oICXbAYPa/q001QozevSY7+dIU/W6zks8R8VgOXNF05j0KdZ45o2a59NxE8bsuOg5sMc 1Djjc7ubQOjOr/brlE05n7X9nYqWYGCVLOHi+81TB6yUte7CdGvbPjCs4rPAb4N8vWoy 94W+eIu8AFRpXWgWSvTaBn+lVcIPQle60ex26iTV2oDd44UlzWN1QjPQ6p1h9/mZ8hd1 0y/w== X-Gm-Message-State: AOAM531XYRXAuwExIOqLFUFhWdd5p+/UJMKS/xDptM8Zzr/4BBLFiC1M QSKyIWW6Qu1XZ5ayeTklpUUS183H X-Google-Smtp-Source: ABdhPJwC0rDnjPwf9POXLEsrB3lrfry/gH+rvZFVo3w7AmFqEOFB+eepLmHwyrTYGf4m/XFXlQoCDg== X-Received: by 2002:a02:10c1:: with SMTP id 184mr34211487jay.135.1595386994531; Tue, 21 Jul 2020 20:03:14 -0700 (PDT) Received: from [10.5.0.2] ([153.92.40.7]) by smtp.gmail.com with ESMTPSA id a13sm11376930ilk.19.2020.07.21.20.03.14 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 21 Jul 2020 20:03:14 -0700 (PDT) Subject: Re: regdomain.xml - Linux wireless-regdb To: freebsd-wireless References: <981a7753-1c85-7837-7aeb-15bf069fa6b8@gmail.com> From: Aaron Message-ID: <661a3753-43df-d06f-7b59-514766443bf6@gmail.com> Date: Tue, 21 Jul 2020 23:03:13 -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-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Rspamd-Queue-Id: 4BBKz76FFxz4ZJd X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=KM1N3uS8; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of notjanedeere@gmail.com designates 2607:f8b0:4864:20::d29 as permitted sender) smtp.mailfrom=notjanedeere@gmail.com X-Spamd-Result: default: False [-3.06 / 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.02)[-1.022]; FROM_HAS_DN(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-wireless@freebsd.org]; NEURAL_HAM_LONG(-0.98)[-0.981]; 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::d29:from]; NEURAL_HAM_SHORT(-0.05)[-0.052]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; 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] 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:03:17 -0000 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? From owner-freebsd-wireless@freebsd.org Wed Jul 22 03:12:01 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 68BAD36F6C6 for ; Wed, 22 Jul 2020 03:12:01 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-qt1-x82d.google.com (mail-qt1-x82d.google.com [IPv6:2607:f8b0:4864:20::82d]) (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 4BBL9C58bGz4Zk0 for ; Wed, 22 Jul 2020 03:11:59 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mail-qt1-x82d.google.com with SMTP id s16so841285qtn.7 for ; Tue, 21 Jul 2020 20:11:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=aKQSZeCbGFdPKF2muMR3o67lP6DxxZyQAKmXFHVuzPc=; b=l+BsTYR4eddWwTJSzWwXMeE70z0AF/dRTOYNsy2s10pZiCsML9KbyJHV2YUG6NdIXt U3FaM4athyCrLid6ehKTQ+6Xkjgp9z72ggTWzrg8r20lmTRFN0Cx+XYNXkWILhjS3Gui RSVU18aoYMt87oc37XMiXa0aWd0KWMEFWBt1Qed+EOecj//IMX6wun0BeGLz1a1fLbAM F1Y31C6MPm0jNcXfav654VjNLL8ZUmBG43yR5Uqk59fcYGHk/tO9ttz2N1W41XXNkcAk EDNthS2pb+dDgdrQoHGjibc5D6H8q19FGkFsGL7UnIyMuCHtv91WGpXXwI+QdLFKB+Fr Z/iw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=aKQSZeCbGFdPKF2muMR3o67lP6DxxZyQAKmXFHVuzPc=; b=Hv446Gfh3TEpAkuX8pm/OzH9Xdc1+Ed1jZtkIkwD7DU9Z7MflxROPnyeROmOXsq+VL Dy+wN7T8PPQFsgtOA/4XvLkpQH/0dIALaLpZEnIr2hQ72NIodIcg6NydTLm0LJNfaQwY civZMSsZLv76QZoK5Io4D9TsV6EznKgf8wmPgCe1zlR2FLXkDrcBcAo5lVVTl5OVCT2A xsu3+lMkO5Fg46LrcyBQ+1VHr4aPkTaFmf7JYsagUmD9Y4ELdCs3T4Awu5LFnME6clvp K/wpIyI+NlRZ3ORYpxwUqCd+8YH3DKWvrTU0hnxQ3NRxmQsaCkyhDLJxQthsYSpdFao8 1DuA== X-Gm-Message-State: AOAM533OvQ0Vxip6bTCaIDu7AkT598GyxjyzEfyjfdRq8wXVuxnDCSz0 Gb3LSj0jNJN0oFmtpVtg6B2aumYQgKew7G2XBvfudA== X-Google-Smtp-Source: ABdhPJz+2f6V9A2uqgohK700oaFd59qSfjoebbnU1eweQDPI/3/k5BJB9xzqWnY3qdsqtqHHIrPNgBPbapqH/ajPKEM= X-Received: by 2002:ac8:4b63:: with SMTP id g3mr31959645qts.229.1595387518447; Tue, 21 Jul 2020 20:11:58 -0700 (PDT) MIME-Version: 1.0 References: <981a7753-1c85-7837-7aeb-15bf069fa6b8@gmail.com> <661a3753-43df-d06f-7b59-514766443bf6@gmail.com> In-Reply-To: <661a3753-43df-d06f-7b59-514766443bf6@gmail.com> From: Adrian Chadd Date: Tue, 21 Jul 2020 20:11:46 -0700 Message-ID: Subject: Re: regdomain.xml - Linux wireless-regdb To: Aaron Cc: freebsd-wireless X-Rspamd-Queue-Id: 4BBL9C58bGz4Zk0 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=l+BsTYR4; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of adrianchadd@gmail.com designates 2607:f8b0:4864:20::82d as permitted sender) smtp.mailfrom=adrianchadd@gmail.com X-Spamd-Result: default: False [-3.53 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.04)[-1.037]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-wireless@freebsd.org]; NEURAL_HAM_LONG(-0.99)[-0.986]; NEURAL_HAM_SHORT(-0.50)[-0.504]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::82d:from]; FREEMAIL_TO(0.00)[gmail.com]; 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]; TAGGED_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] Content-Type: text/plain; charset="UTF-8" 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:12:01 -0000 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 > " > 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? From owner-freebsd-wireless@freebsd.org Wed Jul 22 03:39:43 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 0D13537021E for ; Wed, 22 Jul 2020 03:39:43 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-qk1-x72f.google.com (mail-qk1-x72f.google.com [IPv6:2607:f8b0:4864:20::72f]) (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 4BBLn90nmVz4bsZ for ; Wed, 22 Jul 2020 03:39:40 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mail-qk1-x72f.google.com with SMTP id l23so781020qkk.0 for ; Tue, 21 Jul 2020 20:39:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ctHYq9IbVO/LEY2Nm8t8NNLYyHRLu9SAkDeTDfjL3Wg=; b=jp+u7ytLe8Wyoslqk5j7VaRDqCgXdlOrMxA9vMIzjzQwqhDurLLHceotFvPWKY1xgS KWD8hWnX9CwdzLC1pzOC6Eb5sLN+AwYyOxFiGqrluNcUjHp+6+q6ZFkxt8uXbdyBwgon GPJnO2Tg0aa5BiufQ4w/j9ITfR3TcCvespTfQtz77EBLLeS19b+7tHFFx86ih2B7P2ap XBBqVJu9/SwfMfrC4zOA1JnwF/I+oVH94/wT3/QoUoKq2xk8406YjP86rXtIoeHbvjLY S0ZzZCNXr6U+7BIwtdpycQe9Uc9R+towIfsMEoQnG0O8UXcfCrEARW4AiwHC8e6FfQTC Q3Bg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ctHYq9IbVO/LEY2Nm8t8NNLYyHRLu9SAkDeTDfjL3Wg=; b=ZzdiVK0/oKxGBQuZdVOAiMMGAFvQRrnDX/PexV0kOL6dvnWh2Zam3Jvfhd8rRkvvOB i3ZqpNuV/otlrZIsaQvQgX5hHFqcbG8TVyLZhmxLXS76vK58zX7ub6Efi/eODJSipH34 46ZLdlf5FG8JJrtdiWXPFUfyVq5EB4tuXHF820fuxsWjIjrFkQdzyi92LHEYH9NOoGqD s9KPXKeSDsTqmm+SutD4ptbKvQSidWdo90WdKR7N8i9bjsreQQI8I/6AoQEraJ5oS+8T HS2rvhVTRnt2c5Scwbv+ESyZy6c62K53sjXcKuR8E1Q/uGm7FUvf616cD1N/XxQSJ9SF CQkg== X-Gm-Message-State: AOAM533iu6XhqhmB/oCaRPzr7R92eUfVHVPen4fQJFC3P3M1Gl5YMPb2 PDjv/KcPhAx2J51XjNfaiSPKKPjq34EbzOJiw4zA3A== X-Google-Smtp-Source: ABdhPJynQU8HirBd8j+8OHZ2qf66p8Z+1MnaBkOLTCyBzDriiIfr3lMdqloLAk/t+sYzZvSN7LEXKUe6Ydr1gUR+6hg= X-Received: by 2002:a37:2d07:: with SMTP id t7mr30457089qkh.51.1595389180338; Tue, 21 Jul 2020 20:39:40 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Adrian Chadd Date: Tue, 21 Jul 2020 20:39:28 -0700 Message-ID: Subject: Re: Re: regdomain.xml - Linux wireless-regdb To: Aaron Cc: freebsd-wireless X-Rspamd-Queue-Id: 4BBLn90nmVz4bsZ X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=jp+u7ytL; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of adrianchadd@gmail.com designates 2607:f8b0:4864:20::72f as permitted sender) smtp.mailfrom=adrianchadd@gmail.com X-Spamd-Result: default: False [-3.53 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.04)[-1.037]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-wireless@freebsd.org]; NEURAL_HAM_LONG(-0.99)[-0.986]; NEURAL_HAM_SHORT(-0.50)[-0.503]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::72f:from]; FREEMAIL_TO(0.00)[gmail.com]; 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]; TAGGED_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] Content-Type: text/plain; charset="UTF-8" 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:39:43 -0000 On Tue, 21 Jul 2020 at 20:36, Aaron wrote: > 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. > They're used for DFS modules which need to know which DFS regulatory domain one needs. :-) > * 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) > As you'll discover, the challenge is that there can be multiple ways to skin the regulatory power limits felines. For we should stick to what net80211 already does; which is just tx power in 1/2 dBm increments. * Flags. Once the data's parsed we can get a complete list of these. > Right. > > 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? > DFS is the main consumer for now. -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 > " > From owner-freebsd-wireless@freebsd.org Wed Jul 22 04:00:49 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 29E62370349 for ; Wed, 22 Jul 2020 04:00:49 +0000 (UTC) (envelope-from notjanedeere@gmail.com) Received: from mail-il1-x132.google.com (mail-il1-x132.google.com [IPv6:2607:f8b0:4864:20::132]) (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 4BBMFX1Vk5z4cjJ for ; Wed, 22 Jul 2020 04:00:48 +0000 (UTC) (envelope-from notjanedeere@gmail.com) Received: by mail-il1-x132.google.com with SMTP id h16so105066ilj.11 for ; Tue, 21 Jul 2020 21:00:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language; bh=9CaI7DO/0V3jSSeWfWpCOx6w39/ickgJJesfbuc5dbo=; b=HsqwOoFjDahJ2gupa1mh9dXPXAiHN08LUFIeawywWhs6aZ3aUVT3KV26wsgCRs2buQ 8HVtTnqbWiRKBUd3XF46XsWQWVRhY9oCddr+WFMT23ZQn8g4CWnLtBf5WBSDLad6swRx tBIQRpUs6NvI0aXbdFyjAPcLzqHRPUI9cYP5CXE+DjL+Kz7JDd1bSQkulBCDtHCVY2Ft 09uIjxoDLxGd5SA4ybTei5WB6w0uSAsd9DVNRyqlf8sl2PgKbeV29RINcTLhK7Mgekrq 4BMUFypNzxRjQEVIel5q3F6LVcZNMaMx74QJ3VzLK48mdcIf9SSd3FCE805qY0AMy717 GbHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=9CaI7DO/0V3jSSeWfWpCOx6w39/ickgJJesfbuc5dbo=; b=H0SddUMxgHqor5IGCHtqFSLT4Rg+SME5MF+hbqjek2SJWPNIMaywJzXxCx3uZyOnVc XmoCL0uoodDbxgovGNgyk0/qlnfS5su2NEnYQL99BjWr3z8xUN0xViW6EBhR/4z9s92v f21unsar0lWPR/uO4cJCYvzXP5QlPC6Ay9fiTjL2KoW0HxlSqe8EyjQeykUQhJXxF8xb bjvw00m1kONPAO7cS+068cxxA3NUNl6yMKajRTCMRPW+0Wj4QNQCETZ9yD0sZ2mTO5vN VgdoNm56N+C+rvGGbC2nwwR/fKM3bu/+cvgEfms/00VDexxIih1TRnsnSRcuC6Gan6C6 oxPQ== X-Gm-Message-State: AOAM5338LysfLq/6qt4qoLsOt2isxjExWJlKqoCX3x5wH/a22zbGTUow hHUFggCzTHPYzPYicyw9uH4qqLT8 X-Google-Smtp-Source: ABdhPJwpfhNiQJo1TOwlaZ6divcWxLRBsnq/cKMGKKs2cNpeMzqCgPfxIhniTAzgU5ddJaLV8USdWA== X-Received: by 2002:a92:d2c6:: with SMTP id w6mr29790112ilg.24.1595390446863; Tue, 21 Jul 2020 21:00:46 -0700 (PDT) Received: from [10.5.0.2] ([153.92.40.7]) by smtp.gmail.com with ESMTPSA id w10sm11534332ilo.10.2020.07.21.21.00.46 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 21 Jul 2020 21:00:46 -0700 (PDT) Subject: Re: regdomain.xml - Linux wireless-regdb To: Adrian Chadd Cc: freebsd-wireless References: From: Aaron Message-ID: Date: Wed, 22 Jul 2020 00:00:45 -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: 4BBMFX1Vk5z4cjJ X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=HsqwOoFj; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of notjanedeere@gmail.com designates 2607:f8b0:4864:20::132 as permitted sender) smtp.mailfrom=notjanedeere@gmail.com X-Spamd-Result: default: False [-3.60 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-0.59)[-0.589]; FREEMAIL_TO(0.00)[gmail.com]; 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]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.02)[-1.025]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-0.98)[-0.984]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-wireless@freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::132:from]; RCVD_TLS_ALL(0.00)[] 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 04:00:49 -0000 On 7/21/2020 11:39 PM, Adrian Chadd wrote: > On Tue, 21 Jul 2020 at 20:36, Aaron > wrote: > > 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. > > > They're used for DFS modules which need to know which DFS regulatory > domain one needs. :-) > >   * 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) > > > As you'll discover, the challenge is that there can be multiple ways > to skin the regulatory power limits felines. For we should stick to > what net80211 already does;  which is just tx power in 1/2 dBm increments. Not an issue, found the formula, apparently conversion between mW and db is dead simple.  Reference here: https://www.rapidtables.com/convert/power/mW_to_dBm.html Hypothetical case:  We have a 300mW transmit power limit, which converts to ~24.77db.  Since this is a regulatory restriction, do we round that down to 24.5 or up to 25?  What if it was 24.95, 24.5 or 25?  Since it's a maximum power restriction I'm guessing we always round down. >   * Flags.  Once the data's parsed we can get a complete list of > these. > > Right. > > 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? > > DFS is the main consumer for now. The wireless-regdb only has three domains listed.  The regdomain.xml seems to have more detail, although I'm not sure how much of that is Atheros leftovers.  Is there a list of country:domain with more detail? Here's the list I got out of regdomain.xml:      rd {'id': 'debug'}      rd {'id': 'fcc'}      rd {'id': 'fcc3'}      rd {'id': 'fcc4'}      rd {'id': 'japan'}      rd {'id': 'etsi'}      rd {'id': 'etsi2'}      rd {'id': 'etsi3'}      rd {'id': 'apac'}      rd {'id': 'apac2'}      rd {'id': 'apac3'}      rd {'id': 'korea'}      rd {'id': 'row'}      rd {'id': 'none'}      rd {'id': 'sr9'}      rd {'id': 'xr9'}      rd {'id': 'gz901'}      rd {'id': 'xc900m'} From owner-freebsd-wireless@freebsd.org Fri Jul 24 03:22:29 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 8AED736D8C0 for ; Fri, 24 Jul 2020 03:22:29 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 4BCZJP3Bz7z4YMm for ; Fri, 24 Jul 2020 03:22:29 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 6DCC036D8BF; Fri, 24 Jul 2020 03:22:29 +0000 (UTC) Delivered-To: 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 6D95D36D5F2 for ; Fri, 24 Jul 2020 03:22:29 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BCZJP2Kqjz4YPv for ; Fri, 24 Jul 2020 03:22:29 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 3369C23E86 for ; Fri, 24 Jul 2020 03:22:29 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 06O3MTAR005745 for ; Fri, 24 Jul 2020 03:22:29 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 06O3MTsZ005744 for wireless@FreeBSD.org; Fri, 24 Jul 2020 03:22:29 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: wireless@FreeBSD.org Subject: [Bug 248235] RTL8822CE 802.11ac PCIe Date: Fri, 24 Jul 2020 03:22:29 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: wireless X-Bugzilla-Version: 12.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: miguel@gocobachi.dev X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: wireless@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 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: Fri, 24 Jul 2020 03:22:29 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D248235 Bug ID: 248235 Summary: RTL8822CE 802.11ac PCIe Product: Base System Version: 12.1-STABLE Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: wireless Assignee: wireless@FreeBSD.org Reporter: miguel@gocobachi.dev Created attachment 216735 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D216735&action= =3Dedit hardware details for Xiaomi Redmibook 14 II hi guys, I wonder if there is some plan to add the drivers for this wifi ca= rd, or if I can help somehow I may need directions. I attached the hardware information using pciconf -lv. Thank you. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-wireless@freebsd.org Fri Jul 24 16:21:10 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 E38FF36B0EC for ; Fri, 24 Jul 2020 16:21:10 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 4BCvZt5JRqz3VPk for ; Fri, 24 Jul 2020 16:21:10 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id B5E8E36B305; Fri, 24 Jul 2020 16:21:10 +0000 (UTC) Delivered-To: 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 B5AED36ABF7 for ; Fri, 24 Jul 2020 16:21:10 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BCvZt3Thpz3V3x for ; Fri, 24 Jul 2020 16:21:10 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 5C8AACF52 for ; Fri, 24 Jul 2020 16:21:10 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 06OGLAhH071213 for ; Fri, 24 Jul 2020 16:21:10 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 06OGLAVR071197 for wireless@FreeBSD.org; Fri, 24 Jul 2020 16:21:10 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: wireless@FreeBSD.org Subject: [Bug 248235] RTL8822CE 802.11ac PCIe Date: Fri, 24 Jul 2020 16:21:10 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: wireless X-Bugzilla-Version: 12.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: bz@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: wireless@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 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: Fri, 24 Jul 2020 16:21:11 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D248235 Bjoern A. Zeeb changed: What |Removed |Added ---------------------------------------------------------------------------- Status|New |Open CC| |bz@FreeBSD.org --- Comment #1 from Bjoern A. Zeeb --- Hi, I have a part-done driver based on the Intel wireless work I am doing using= the linuxkpi framework. I would hope that once the Intel work is done most infrastructure is implemented and it'll be at most a few days to have rtw88 work well as well. Currently PCI attach and firmware loading works and then it panics due to s= ome unimplemented memory bit. I only spent less than a day on it so far to get= to this. So yes, there is a plan. It'll be a while however before anything real materialises. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-wireless@freebsd.org Sat Jul 25 15:12:35 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 C528636780F for ; Sat, 25 Jul 2020 15:12:35 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4BDV1H4tJQz4L4j for ; Sat, 25 Jul 2020 15:12:35 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id A56AB3677A7; Sat, 25 Jul 2020 15:12:35 +0000 (UTC) Delivered-To: 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 A53173677A4 for ; Sat, 25 Jul 2020 15:12:35 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BDV1H3vm0z4LCM for ; Sat, 25 Jul 2020 15:12:35 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 6AECD1D3F3 for ; Sat, 25 Jul 2020 15:12:35 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 06PFCZHl041766 for ; Sat, 25 Jul 2020 15:12:35 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 06PFCZis041765 for wireless@FreeBSD.org; Sat, 25 Jul 2020 15:12:35 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: wireless@FreeBSD.org Subject: [Bug 243992] iwm(4): iwm_pcie_load_section: Could not load the [0] uCode section (Intel Wireless-AC 9560) Date: Sat, 25 Jul 2020 15:12:35 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: wireless X-Bugzilla-Version: 12.1-STABLE X-Bugzilla-Keywords: IntelNetworking, needs-qa X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: driesm.michiels@gmail.com X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: wireless@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 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: Sat, 25 Jul 2020 15:12:35 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D243992 --- Comment #8 from Dries Michiels --- I also have the same problem. I'm not able to have any wifi with my AC9560 = on my laptop :-(. My wireless interface doesn't seem to pop-up but driver does attach. Iron, have you been able to get it to work? --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-wireless@freebsd.org Sat Jul 25 20:22:26 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 3728F36F210 for ; Sat, 25 Jul 2020 20:22:26 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 4BDctp0k9nz4cPX for ; Sat, 25 Jul 2020 20:22:26 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 18CBC36EDC7; Sat, 25 Jul 2020 20:22:26 +0000 (UTC) Delivered-To: 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 1899D36F20F for ; Sat, 25 Jul 2020 20:22:26 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BDctn6yngz4cSC for ; Sat, 25 Jul 2020 20:22:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id D4338214C2 for ; Sat, 25 Jul 2020 20:22:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 06PKMPd3089244 for ; Sat, 25 Jul 2020 20:22:25 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 06PKMPDV089243 for wireless@FreeBSD.org; Sat, 25 Jul 2020 20:22:25 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: wireless@FreeBSD.org Subject: [Bug 247528] RTL8192EU usb wifi dongle can't connect to AP Date: Sat, 25 Jul 2020 20:22:25 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: 12.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: danilo@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: usb@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 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: Sat, 25 Jul 2020 20:22:26 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D247528 Danilo Egea Gondolfo changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |danilo@FreeBSD.org --- Comment #3 from Danilo Egea Gondolfo --- Exactly same problem here. I have a tplink wn823n (RTL8192EU). The issue is easily reproducible. The device will get UP and things like scanning and adhoc mode will work fine. But if you "ifconfig down" the interface and "ifconfig up" it again it will stuck and the device will get disconnected from the USB bus. This will make wpa_supplicant try to connect using WPA but it will fail: ifconfig wlan0 create wlandev rtwn0 wpa_supplicant -i wlan0 -c... Note that the interface is still down before running wpa_supplicant. wpa_supplicant will put the interface UP and try to connect although it will fail with authentication timeout. If you put the interface UP yourself and then run wpa_supplicant it will fa= il and the device will be kicked out from the USB bus when it sends a second ioctl(... IFF_UP) to the interface. So, the problem is reproducible with: ifconfig wlan0 create wlandev rtwn0 up ifconfig wlan0 down ifconfig wlan0 up The last command will stuck here: 17899 101638 ifconfig - mi_switch+0xc1 _sleep+0x1cb taskqueue_drain+0xeb ieee80211_waitfor_parent+0x28 ieee80211_ioctl+0x44b ifhwioctl+0xbb2 ifioctl+0x419 kern_ioctl+0x25e sys_ioctl+0xfa amd64_syscall+0x119 fast_syscall_common+0x101=20 And this is what happens: ugen0.4: at usbus0 rtwn0 on uhub0 rtwn0: <802.11n NIC > on usbus0 rtwn0: MAC/BB RTL8192EU, RF 6052 2T2R wlan1: Ethernet address: d0:37:45:0a:a3:81 ugen0.4: at usbus0 (disconnected) rtwn0: at uhub0, port 1, addr 13 (disconnected) rtwn0: r92e_power_off: failed to block Tx queues rtwn0: detached usb_alloc_device: set address 4 failed (USB_ERR_IOERROR, ignored) usbd_setup_device_desc: getting device descriptor at addr 4 failed, USB_ERR_IOERROR usbd_req_re_enumerate: addr=3D4, set address failed! (USB_ERR_IOERROR, igno= red) usbd_setup_device_desc: getting device descriptor at addr 4 failed, USB_ERR_IOERROR usbd_req_re_enumerate: addr=3D4, set address failed! (USB_ERR_IOERROR, igno= red) usbd_setup_device_desc: getting device descriptor at addr 4 failed, USB_ERR_IOERROR usbd_req_re_enumerate: addr=3D4, set address failed! (USB_ERR_IOERROR, igno= red) usbd_setup_device_desc: getting device descriptor at addr 4 failed, USB_ERR_IOERROR usbd_req_re_enumerate: addr=3D4, set address failed! (USB_ERR_IOERROR, igno= red) usbd_setup_device_desc: getting device descriptor at addr 4 failed, USB_ERR_IOERROR ugen0.4: at usbus0 (disconnected) uhub_reattach_port: could not allocate new device --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-wireless@freebsd.org Sat Jul 25 22:32:20 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 34D6D372636 for ; Sat, 25 Jul 2020 22:32:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4BDgmh0jqgz3Vbm for ; Sat, 25 Jul 2020 22:32:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 189763725D2; Sat, 25 Jul 2020 22:32:20 +0000 (UTC) Delivered-To: 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 1863537278C for ; Sat, 25 Jul 2020 22:32:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BDgmg6z53z3VNZ for ; Sat, 25 Jul 2020 22:32:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id D2E3D22F92 for ; Sat, 25 Jul 2020 22:32:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 06PMWJL7027511 for ; Sat, 25 Jul 2020 22:32:19 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 06PMWJEs027510 for wireless@FreeBSD.org; Sat, 25 Jul 2020 22:32:19 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: wireless@FreeBSD.org Subject: [Bug 243992] iwm(4): iwm_pcie_load_section: Could not load the [0] uCode section (Intel Wireless-AC 9560) Date: Sat, 25 Jul 2020 22:32:19 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: wireless X-Bugzilla-Version: 12.1-STABLE X-Bugzilla-Keywords: IntelNetworking, needs-qa X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: iron.udjin@gmail.com X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: wireless@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 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: Sat, 25 Jul 2020 22:32:20 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D243992 --- Comment #9 from iron.udjin@gmail.com --- (In reply to Dries Michiels from comment #8) Unfortunately, it still doesn't work. No workaround or patch yet. (In reply to Dries Michiels from comment #8) I tested in the same way - no result. Even after power cycle. --=20 You are receiving this mail because: You are the assignee for the bug.=