[Nix-dev] Wifi DFS configuration/reg database (was Re: Specifying particular firmware)
Matthew Robbetts
wingfeathera at gmail.com
Wed Jul 20 18:09:30 CEST 2016
Hi Vladimír,
> On Jul 18, 2016, at 1:40 PM, Vladimír Čunát <vcunat at gmail.com> wrote:
>
> On 07/18/2016 07:35 PM, Matthew Robbetts wrote:
>> I can’t figure out where firmware versions are specified/determined by nixos
>
> It's the option `config.hardware.enableAllFirmware` which pulls
> `pkgs.firmwareLinuxNonfree`. Surely you can follow to the source, etc.
That’s great, thanks! I’ve convinced my system to install the new firmware by forking the github firmware repo and adding an overrideDerivation to my configuration.nix to pull from that instead (is that the most idiomatic way to do this? Anyway, it worked, so, thanks for the pointer).
Unfortunately, it didn’t fix my problem. After some more digging, I think the problem is related to my wireless regulatory database — in that, I don’t think I have one.
I get:
# iw reg set US
# iw reg get
global
country 00: DFS-UNSET
(2402 - 2472 @ 40), (6, 20), (N/A)
(2457 - 2482 @ 40), (6, 20), (N/A), PASSIVE-SCAN
(2474 - 2494 @ 20), (6, 20), (N/A), NO-OFDM, PASSIVE-SCAN
(5170 - 5250 @ 160), (6, 20), (N/A), PASSIVE-SCAN
(5250 - 5330 @ 160), (6, 20), (0 ms), DFS, PASSIVE-SCAN
(5490 - 5730 @ 160), (6, 20), (0 ms), DFS, PASSIVE-SCAN
(5735 - 5835 @ 80), (6, 20), (N/A), PASSIVE-SCAN
(57240 - 63720 @ 2160), (N/A, 0), (N/A)
global
country 00: DFS-UNSET
(2402 - 2472 @ 40), (6, 20), (N/A)
(2457 - 2482 @ 40), (6, 20), (N/A), PASSIVE-SCAN
(2474 - 2494 @ 20), (6, 20), (N/A), NO-OFDM, PASSIVE-SCAN
(5170 - 5250 @ 160), (6, 20), (N/A), PASSIVE-SCAN
(5250 - 5330 @ 160), (6, 20), (0 ms), DFS, PASSIVE-SCAN
(5490 - 5730 @ 160), (6, 20), (0 ms), DFS, PASSIVE-SCAN
(5735 - 5835 @ 80), (6, 20), (N/A), PASSIVE-SCAN
(57240 - 63720 @ 2160), (N/A, 0), (N/A)
I get this result for any country code.
On my other wifi AP machine (which runs Gentoo, and is working correctly), I get:
# iw reg get
country US: DFS-FCC
(2402 - 2472 @ 40), (N/A, 30), (N/A)
(5170 - 5250 @ 80), (N/A, 23), (N/A)
(5250 - 5330 @ 80), (N/A, 23), (0 ms), DFS
(5490 - 5730 @ 160), (N/A, 23), (0 ms), DFS
(5735 - 5835 @ 80), (N/A, 30), (N/A)
(57240 - 63720 @ 2160), (N/A, 40), (N/A)
and can change it further:
# iw reg set DE
# iw reg get
country DE: DFS-ETSI
(2400 - 2483 @ 40), (N/A, 20), (N/A)
(5150 - 5250 @ 80), (N/A, 20), (N/A), NO-OUTDOOR
(5250 - 5350 @ 80), (N/A, 20), (0 ms), NO-OUTDOOR, DFS
(5470 - 5725 @ 160), (N/A, 26), (0 ms), DFS
(5725 - 5875 @ 80), (N/A, 13), (N/A)
(57000 - 66000 @ 2160), (N/A, 40), (N/A)
So, I think something is wrong with my regulatory database. Does anyone know how to dig into this further? Any help appreciated!
Thanks,
Matt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.science.uu.nl/pipermail/nix-dev/attachments/20160720/2d54c44e/attachment.html>
More information about the nix-dev
mailing list