!tCyGickeVqkHsYjWnh:nixos.org

NixOS Networking

865 Members
Declaratively manage your switching, routing, wireless, tunneling and more. | Don't rely on `networking.*` use systemd-networkd and NetworkManager instead. | Set `SYSTEMD_LOG_LEVEL=debug` to debug networking issues with networkd | No bad nft puns, please. | Room recommendations: #sysops:nixos.org248 Servers

Load older messages


SenderMessageTime
28 Oct 2025
@kraynyan:tchncs.de@kraynyan:tchncs.de left the room.23:56:27
29 Oct 2025
@danishsouls:matrix.orgdanishsouls joined the room.15:51:50
@crushing-smite:matrix.orgcrushing-smite

Wireless chip is MT7922. And here's my wireless.nix:

{
  config,
  lib,
  pkgs,
  ...
}: {
    boot.extraModprobeConfig = ''
        options cfg80211 ieee80211_regdom="DE"
    '';

    hardware.wirelessRegulatoryDatabase = true;

    services.hostapd = {
        enable = true;

        radios."wlp5s0" = {
            settings.ieee80211h = lib.mkForce false;

            wifi5 = {
                enable = true;
                operatingChannelWidth = "20or40";
                require = true;
            };

            countryCode = "DE";
            channel = 36;
            band = "5g";

            networks.wlp5s0 = {
                logLevel = 1;
                ssid = "SsidName";
                authentication = {
                    mode = "wpa3-sae";
                    saePasswords = [
                        { password = "Password"; }
                    ];
                    enableRecommendedPairwiseCiphers = true;
                };
                settings = {
                    bridge = "br0";
                    beacon_int = 50;
                };
            };
        };
    };
}

Issues:

  1. Only Linux and MacOS clients can connect to this network. iOS 18 and Windows 11, both obviously supporting Wifi5, cannot connect to it - it is visible in the list of networks, but both fail upon connection try.
  2. On Linux and MacOS, it takes some time for network to become visible in the list. On Linux via nmcli dev wifi list it may take even a minute or two for it to show up. This is not a recurring issue, but it happens about 1/3 of all the times.
  3. I could not switch operatingChannelWidth = "20or40"; to 80 - I can apply the option, the system rebuilds and boots fine, network is visible and allows to connect to, there is WAN, but network itself is still 20 MHz (not even 40), as confirmed by both cat /run/hostapd/wlp5s0.hostapd.conf on router (output below) and wavemon on Linux client (reports width: 20 MHz). Please also mind ht_capab and vht_capab (looks suspisious to me).
[root@nixos:~]# cat /run/hostapd/wlp5s0.hostapd.conf
# Radio base configuration: wlp5s0
################################

channel=36
country_code=DE
driver=nl80211
ht_capab=[HT40][SHORT-GI-20][SHORT-GI-40]
hw_mode=a
ieee80211ac=1
ieee80211d=1
ieee80211h=0
ieee80211n=1
noscan=0
require_ht=0
require_vht=1
vht_capab=
vht_oper_chwidth=0


# BSS 0: wlp5s0
################################

interface=wlp5s0
ap_isolate=0
auth_algs=1
beacon_int=50
bridge=br0
ctrl_interface=/run/hostapd
ctrl_interface_group=wheel
ieee80211w=1
ignore_broadcast_ssid=0
logger_stdout=-1
logger_stdout_level=1
logger_syslog=-1
logger_syslog_level=1
macaddr_acl=0
rsn_pairwise=CCMP GCMP GCMP-256
sae_pwe=2
sae_require_mfp=1
ssid=SsidName
transition_disable=0x01
utf8_ssid=1
wmm_enabled=1
wpa=2
wpa_key_mgmt=SAE
wpa_pairwise=CCMP GCMP GCMP-256
sae_password=password
21:09:23
@crushing-smite:matrix.orgcrushing-smiteNow, how to troubleshoot/which other info do you need?21:09:39
@k900:0upti.meK900Check hostapd logs for when your clients fail to associate21:13:50
@crushing-smite:matrix.orgcrushing-smitebrb21:13:57
@k900:0upti.meK900Also depending on the hardware Windows especially can be iffy about WPA3-only APs21:14:23
@crushing-smite:matrix.orgcrushing-smiteNothin in there21:15:01
@crushing-smite:matrix.orgcrushing-smite Tried from WIn 11, which says "Can't connect to this network", but nothing new via journalctl -u hostapd --follow 21:15:27
@k900:0upti.meK900You probably want to set the log level to 021:15:44
@crushing-smite:matrix.orgcrushing-smiteremind me how to please21:16:02
@crushing-smite:matrix.orgcrushing-smiteand would ir trequire a rebuild/reboot21:16:07
@k900:0upti.meK900Rebuild and hostapd restart21:16:17
@k900:0upti.meK900There's an option21:16:19
@k900:0upti.meK900I forgot what it is exactly21:16:24
@k900:0upti.meK900Also, wlp5s0 looks like running an AP off a desktop/laptop? Which means it's very possible your wireless chip just doesn't support AP operation at higher rates21:17:08
@k900:0upti.meK900That is fairly normal21:17:38
@k900:0upti.meK900Especially for not-latest hardware21:17:45
@k900:0upti.meK900Intel chips are also very picky about how they'll operate in AP mode on top of normal regulatory restrictions for whatever reason21:18:31
@crushing-smite:matrix.orgcrushing-smite What do you mean a running of laptop/desktop? It is MT7922 which was suggested by you 2 or so years ago specifically for AP purposes, and it is inside a standalone router (NUC-like). It supports Wifi6/7 too. 21:20:37
@k900:0upti.meK900I mean not an actual AP designed to operate as an AP21:21:07
@k900:0upti.meK900But yes MT7922 should be able to run at those rates21:21:18
@crushing-smite:matrix.orgcrushing-smite nixos-rebuid boot + systemctl restart hostapd, or nixos-rebuild switch (latter would require a reboot)? 21:21:27
@crushing-smite:matrix.orgcrushing-smiteelaborate please21:21:36
@k900:0upti.meK900 nixos-rebuild switch 21:21:48
@k900:0upti.meK900Why would that require a reboot?21:21:48
@k900:0upti.meK900Most actual access points, as in hardware that is explicitly sold as an access point (home router, whatever) are purpose built to run as access points21:22:21
@k900:0upti.meK900Which in most cases means a small ARM SoC with a big wireless frontend attached21:22:35
@crushing-smite:matrix.orgcrushing-smite probably nixos issues itself, cause it caused a chat between emily and ElvishJerricco yesterday in main NixOS channel (gets stuck at reloading + requires a dbus reload) 21:22:46
@k900:0upti.meK900That sounds very wrong21:23:01

Show newer messages


Back to Room ListRoom Version: 6