Bug 293645 - iwlwifi doesn't connect using VHT80 (anymore) if base channel is 64 but works on 36.
Summary: iwlwifi doesn't connect using VHT80 (anymore) if base channel is 64 but works...
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: wireless (show other bugs)
Version: 14.4-STABLE
Hardware: Any Any
: --- Affects Only Me
Assignee: Bjoern A. Zeeb
URL: https://reviews.freebsd.org/D55717
Keywords: regression
Depends on:
Blocks: iwlwifi
  Show dependency tree / graph
 
Reported: 2026-03-07 12:45 UTC by Anton Saietskii
Modified: 2026-04-01 04:36 UTC (History)
1 user (show)

See Also:
bz: mfc-stable15+
bz: mfc-stable14+


Attachments
ifconfig -v wlan0 list scan (2.78 KB, text/plain)
2026-03-07 13:51 UTC, Anton Saietskii
no flags Details
verbose dmesg.boot (xz-compressed) (12.76 KB, application/x-compressed)
2026-03-07 13:52 UTC, Anton Saietskii
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Anton Saietskii 2026-03-07 12:45:45 UTC
(Setting Version to 14.4-S, but actual affected version is 14.4-R which isn't available in the list yet.)

After upgrading to 14.4-RELEASE, I'm getting only up to VHT40/ac/400Mbps:
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=0
        ether c2:c0:e9:21:94:d7
        inet 10.0.55.66 netmask 0xffffffc0 broadcast 10.0.55.127
        groups: wlan
        ssid "<REDACTED>" channel 64 (5320 MHz 11a vht/40-) bssid 02:16:6f:40:8a:d0
        regdomain ETSI country UA authmode WPA2/802.11i privacy ON
        deftxkey UNDEF AES-CCM 2:128-bit AES-CCM ucast:128-bit txpower 20
        bmiss 7 mcastrate 6 mgmtrate 6 scanvalid 60 -ampdutx ampdurx
        ampdulimit 64k -amsdutx amsdurx shortgi -ldpctx ldpcrx -uapsd vht
        vht40 vht80 vht160 -vht80p80 wme roaming MANUAL
        parent interface: iwlwifi0
        media: IEEE 802.11 Wireless Ethernet autoselect mode 11ac
        status: associated
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>

Rebooting into 14.3-RELEASE immediately brings me back to VHT80/ac/867Mbps:
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=0
        ether c2:c0:e9:21:94:d7
        inet 10.0.55.66 netmask 0xffffffc0 broadcast 10.0.55.127
        groups: wlan
        ssid "<REDACTED>" channel 64 (5320 MHz 11a vht/80-) bssid 02:16:6f:40:8a:d0
        regdomain ETSI country UA authmode WPA2/802.11i privacy ON
        deftxkey UNDEF AES-CCM 2:128-bit txpower 20 bmiss 7 mcastrate 6
        mgmtrate 6 scanvalid 60 -ampdutx ampdurx ampdulimit 64k
        -amsdutx amsdurx shortgi -ldpctx ldpcrx -uapsd vht vht40 vht80 vht160
        -vht80p80 wme roaming MANUAL
        parent interface: iwlwifi0
        media: IEEE 802.11 Wireless Ethernet autoselect mode 11ac
        status: associated
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>

pciconf:
iwlwifi0@pci0:3:0:0:    class=0x028000 rev=0x1a hdr=0x00 vendor=0x8086 device=0x2725 subvendor=0x8086 subdevice=0x0024
    vendor     = 'Intel Corporation'
    device     = 'Wi-Fi 6E(802.11ax) AX210/AX1675* 2x2 [Typhoon Peak]'
    class      = network
    cap 01[c8] = powerspec 3  supports D0 D3  current D0
    cap 05[d0] = MSI supports 1 message, 64 bit
    cap 10[40] = PCI-Express 2 endpoint max data 128(128) FLR RO NS
                 max read 128
                 link x1(x1) speed 5.0(5.0) ASPM L1(L1) ClockPM enabled
    cap 11[80] = MSI-X supports 16 messages, enabled
                 Table in map 0x10[0x2000], PBA in map 0x10[0x3000]
    ecap 0001[100] = AER 1 0 fatal 0 non-fatal 1 corrected
    ecap 0018[14c] = LTR 1
    ecap 001e[154] = L1 PM Substates 1

kernel detection messages:
Mar  7 13:41:00 jnb kernel: [7] iwlwifi0: <iwlwifi> mem 0xed200000-0xed203fff at device 0.0 on pci3
Mar  7 13:41:00 jnb kernel: [7] iwlwifi0: Detected crf-id 0x400410, cnv-id 0x400410 wfpm id 0x80000000
Mar  7 13:41:00 jnb kernel: [7] iwlwifi0: PCI dev 2725/0024, rev=0x420, rfid=0x10d000
Mar  7 13:41:00 jnb kernel: [7] iwlwifi0: Detected Intel(R) Wi-Fi 6 AX210 160MHz
Mar  7 13:41:00 jnb kernel: [7] iwlwifi0: successfully loaded firmware image 'iwlwifi-ty-a0-gf-a0-89.ucode'
Mar  7 13:41:00 jnb kernel: [7] iwlwifi0: capa flags index 4 larger than supported by driver
Mar  7 13:41:00 jnb kernel: [7] iwlwifi0: TLV_FW_FSEQ_VERSION: FSEQ Version: 0.0.2.42
Mar  7 13:41:00 jnb kernel: [7] iwl-debug-yoyo.bin: could not load binary firmware /boot/firmware/iwl-debug-yoyo.bin either
Mar  7 13:41:00 jnb kernel: [7] iwl-debug-yoyo.bin: could not load binary firmware /boot/firmware/iwl-debug-yoyo.bin either
Mar  7 13:41:00 jnb kernel: [7] iwl-debug-yoyo_bin: could not load binary firmware /boot/firmware/iwl-debug-yoyo_bin either
Mar  7 13:41:00 jnb kernel: [7] iwl_debug_yoyo_bin: could not load binary firmware /boot/firmware/iwl_debug_yoyo_bin either
Mar  7 13:41:00 jnb kernel: [7] iwlwifi0: loaded firmware version 89.7207fc64.0 ty-a0-gf-a0-89.ucode op_mode iwlmvm
Mar  7 13:41:00 jnb kernel: [7] iwlwifi0: WFPM_UMAC_PD_NOTIFICATION: 0x20
Mar  7 13:41:00 jnb kernel: [7] iwlwifi0: WFPM_LMAC2_PD_NOTIFICATION: 0x1f
Mar  7 13:41:00 jnb kernel: [7] iwlwifi0: WFPM_AUTH_KEY_0: 0x90
Mar  7 13:41:00 jnb kernel: [7] iwlwifi0: CNVI_SCU_SEQ_DATA_DW9: 0x0
Mar  7 13:41:00 jnb kernel: [7] iwlwifi0: successfully loaded firmware image 'iwlwifi-ty-a0-gf-a0.pnvm'
Mar  7 13:41:00 jnb kernel: [7] iwlwifi0: loaded PNVM version 285b3568
Mar  7 13:41:00 jnb kernel: [7] iwlwifi0: Detected RF GF, rfid=0x10d000
Mar  7 13:41:00 jnb kernel: [7] iwlwifi0: base HW address: 42:f2:aa:e9:c9:ac
Mar  7 13:41:00 jnb kernel: [8] iwlwifi0: WFPM_UMAC_PD_NOTIFICATION: 0x20
Mar  7 13:41:00 jnb kernel: [8] iwlwifi0: WFPM_LMAC2_PD_NOTIFICATION: 0x1f
Mar  7 13:41:00 jnb kernel: [8] iwlwifi0: WFPM_AUTH_KEY_0: 0x90
Mar  7 13:41:00 jnb kernel: [8] iwlwifi0: CNVI_SCU_SEQ_DATA_DW9: 0x0

AP is MikroTik wAPG-5HaxD2HaxD which supports and currently operating up to VHT160 both in ac/ax:
[dsjk283@Mikrotik] > /interface/wifi/radio/print proplist=hw-type,bands where .id=*3
Columns: HW-TYPE, BANDS
# HW-TYPE  BANDS
2 QCN6122  5ghz-a:20mhz
           5ghz-n:20mhz,20/40mhz
           5ghz-ac:20mhz,20/40mhz,20/40/80mhz,20/40/80/160mhz
           5ghz-ax:20mhz,20/40mhz,20/40/80mhz,20/40/80/160mhz
[dsjk283@Mikrotik] > /interface/wifi/monitor 0 once proplist=channel
  channel: 5320/ax/eeeeeeeC/D
[dsjk283@Mikrotik] >
Comment 1 Bjoern A. Zeeb freebsd_committer freebsd_triage 2026-03-07 13:12:44 UTC
I assume you do not have a specific regdomain.xml ?

In that case can you share an

ifconfig -v wlan0 list scan | grep 02:16:6f:40:8a:d0

The -v is important!  Shouldn't matter if this is 14.3 or 14.4.


Also for 14.4 can you do a bootverbose from loader and then share the full dmesg from the boot?


Lastly can you share the output from 14.4 when you are associated of
sysctl compat.linuxkpi.80211.wlan0



stable/14 has seen little changes in the last half year and the only change from last year Jun/Jul that comes to my mind would then be a problem for 15 and main as well.
Comment 2 Anton Saietskii 2026-03-07 13:51:58 UTC
Created attachment 268600 [details]
ifconfig -v wlan0 list scan

(In reply to Bjoern A. Zeeb from comment #1)

> I assume you do not have a specific regdomain.xml ?
Just the one coming with distribution, no edits made.

> ifconfig -v wlan0 list scan | grep 02:16:6f:40:8a:d0
Interestingly, it differs! No changes at AP have been made during reboot.

sysctl:
compat.linuxkpi.80211.wlan0.dump_stas:
lsta 0xfffff80005909000 sta 0xfffff800059091c0 added_to_drv 1
 nl80211_sta_info (valid fields) 0x0000450b<BEACON_RX,BEACON_SIGNAL_AVG,CHAIN_SIGNAL,SIGNAL_AVG,RX_BITRATE,TX_BITRATE>
 connected_time 0 inactive_time 0
 rx_bytes 0 rx_packets 0 rx_dropped_misc 0
 rx_duration 0 rx_beacon 9421 rx_beacon_signal_avg -30
 tx_bytes 0 tx_packets 0 tx_failed 0
 tx_duration 0 tx_retries 0
 signal 0 signal_avg -35 ack_signal 0 avg_ack_signal 0
 generation 0 assoc_req_ies_len 0 chains 0x03
  chain[0] signal -33 signal_avg 0
  chain[1] signal -40 signal_avg 0
 rxrate: flags 6<VHT_MCS,SGI> bw 3(40) legacy 0 kbit/s mcs 6 nss 2
         he_dcm 0 he_gi 0 he_ru_alloc 0 eht_gi 0
 txrate: flags 6<VHT_MCS,SGI> bw 3(40) legacy 0 kbit/s mcs 9 nss 2
         he_dcm 0 he_gi 0 he_ru_alloc 0 eht_gi 0
Comment 3 Anton Saietskii 2026-03-07 13:52:37 UTC
Created attachment 268601 [details]
verbose dmesg.boot (xz-compressed)
Comment 4 Anton Saietskii 2026-03-07 14:03:37 UTC
As a side note, I did not ever see VHT160 on 14.3-R and of course can't see it on 14.4-R. Android phone connects with 160 width fine.
Not sure though if it's expected.
Comment 5 Bjoern A. Zeeb freebsd_committer freebsd_triage 2026-03-08 00:14:20 UTC
I can confirm that with an AP on 11ac/11ax and a 160hz channel width AND the base channel set to 64 I also get VHT40-.

If I set the base channel to 36 I do get VHT160.

If I put the channel with to 80Mhz and a base channel of 64 I do get VHT80.


The same applies to main (and with that likely stable/15).

I'll go and see after some sleep.


------

Just to also reply to comment #c2

>> ifconfig -v wlan0 list scan | grep 02:16:6f:40:8a:d0
>Interestingly, it differs! No changes at AP have been made during reboot.

They do because we are decoding some more HE (11ax) information elements (and TIM):
-TIM<050400020000>
-UNKNOWN_ELEMID_255<ff02->
-UNKNOWN_ELEMID_255<ff07->
-UNKNOWN_ELEMID_255<ff0e->
-UNKNOWN_ELEMID_255<ff21->
+ELEMID_EXT_39<ff022703>
+HECAP<mac_cap 0x0d 0x01 0x08 0x1a 0x40 0x10 phy_cap 0x0c 0x60 0x08 0x88 0xfd 0x49 0x81 0x8c 0x11 0x08 0000 rx/tx_he_mcs map: loweq80 0xfffa/0xfffa 160 0xfffa/0xfffa 80+80 0x1c79/0x71c7>
+HEOPER<params 0x003ff4 bss_col 0x21 mcs_nss 0xfffc>
+MU_EDCA_PARAM_SET<qosinfo 0x0 BE[aifsn 3 ecwmin 4 ecwmax 10 timer 255] BK[aifsn 39 ecwmin 4 ecwmax 10 timer 255] VO[aifsn 66 ecwmin 3 ecwmax 4 timer 255] VI[aifsn 98 ecwmin 2 ecwmax 3 timer 255]>
Comment 6 Bjoern A. Zeeb freebsd_committer freebsd_triage 2026-03-08 01:06:41 UTC
Patch is up for review.
Pointy hat to: bz

Thanks a lot for reporting!

If you want to possibly use VHT80 or VHT160 with 14.4-R you should set your base channel to 36-48.
Comment 7 Anton Saietskii 2026-03-08 13:00:39 UTC
(In reply to Bjoern A. Zeeb from comment #6)

Thank you for investigation and ideas.

While I was away from the system, it got disconnected pretty similar to bug #291012 (last line of log snippet shows a moment of restarting netif):
Mar  8 14:02:54 jnb kernel: [81005] iwlwifi0: Scan failed! ret -5
Mar  8 14:02:54 jnb kernel: [81005] iwlwifi0: ERROR: lkpi_ic_scan_start: hw_scan returned -5
Mar  8 14:02:59 jnb kernel: [81010] iwlwifi0: Scan failed! ret -5
Mar  8 14:02:59 jnb kernel: [81010] iwlwifi0: ERROR: lkpi_ic_scan_start: hw_scan returned -5
Mar  8 14:03:02 jnb kernel: [81013] lo0: link state changed to DOWN
Mar  8 14:03:02 jnb kernel: [81013] iwlwifi0: Failed to synchronize multicast groups update

After that, it got connected using VHT160:
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=0
        ether c2:c0:e9:21:94:d7
        inet 10.0.55.66 netmask 0xffffffc0 broadcast 10.0.55.127
        groups: wlan
        ssid "<REDACTED>" channel 100 (5500 MHz 11a vht/160) bssid 02:16:6f:40:8a:d0
        regdomain ETSI country UA authmode WPA2/802.11i privacy ON
        deftxkey UNDEF AES-CCM 3:128-bit AES-CCM ucast:128-bit txpower 26
        bmiss 7 mcastrate 6 mgmtrate 6 scanvalid 60 -ampdutx ampdurx
        ampdulimit 64k -amsdutx amsdurx shortgi -ldpctx ldpcrx -uapsd vht
        vht40 vht80 vht160 -vht80p80 wme roaming MANUAL
        parent interface: iwlwifi0
        media: IEEE 802.11 Wireless Ethernet autoselect mode 11ac
        status: associated
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>

Few notes:
1. I have this one 160 MHz network, another 80 MHz, and a few visible neighbors.
2. Out of 3 160 MHz allowed ranges, 2 require DFS:
> /interface/wifi/radio/reg-info country=Ukraine number=2
  ranges: 2402-2482/20dBm/40MHz
          5170-5250/23dBm/160MHz
          5250-5330/23dBm/160MHz/dfs
          5490-5710/24dBm/160MHz/dfs
          5735-5835/24dBm/80MHz
3. I also suppose a government entity operating somewhere in 5 GHz.
Considering above, I'd like to avoid setting fixed frequencies and let DFS do its job (or at least try :-) )

I've also applied patch from review D55717 and monitoring how it's going. Not sure if it's worth doing MFS, but could at least MFC to stable/14 be expected? I'm trying to minimize custom patches usage, and would prefer cherry-pick with proper reference.
Comment 8 Bjoern A. Zeeb freebsd_committer freebsd_triage 2026-03-08 13:07:21 UTC
(In reply to Anton Saietskii from comment #7)

I think I have already set the MFC15/14 flags on this PR last night.

I assume the change will go into main today and MFCed during next week then to be in stable/15 and stable/14.

I don't think getting an EN into 14.4 for this is feasible; seems this was the first report in a year so not too many users being impacted by this.  If we were to get more reports I'll be happy to reconsider this for 14.4 (15.0 will soon be 15.1 anyway).
Comment 9 commit-hook freebsd_committer freebsd_triage 2026-03-08 17:08:00 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=6cfd2b93e68061c7831016b91c2e308d01658764

commit 6cfd2b93e68061c7831016b91c2e308d01658764
Author:     Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2026-03-08 00:57:33 +0000
Commit:     Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2026-03-08 13:50:02 +0000

    net80211: fix VHT160/80P80/80 chanwidth selection in the "40-" case

    Depending on the base channel ni_vht_chan2 - ni_vht_chan1 can be
    negative.  Apply abs() as indicated in the comments right above
            | CCFS1 - CCFS0 | = 8  or > 16
    in order to fix the channel width selection.

    Sponsored by:   The FreeBSD Foundation
    PR:             293645
    Fixes:          4bf049bfeefd9
    MFC after:      3 days
    Reviewed by:    adrian
    Differential Revision: https://reviews.freebsd.org/D55717

 sys/net80211/ieee80211_ht.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
Comment 10 commit-hook freebsd_committer freebsd_triage 2026-03-11 16:54:31 UTC
A commit in branch stable/15 references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=68fcf0b94c5167f89481052f358064c9b6732553

commit 68fcf0b94c5167f89481052f358064c9b6732553
Author:     Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2026-03-08 00:57:33 +0000
Commit:     Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2026-03-11 16:53:24 +0000

    net80211: fix VHT160/80P80/80 chanwidth selection in the "40-" case

    Depending on the base channel ni_vht_chan2 - ni_vht_chan1 can be
    negative.  Apply abs() as indicated in the comments right above
            | CCFS1 - CCFS0 | = 8  or > 16
    in order to fix the channel width selection.

    Sponsored by:   The FreeBSD Foundation
    PR:             293645
    Fixes:          4bf049bfeefd9
    Reviewed by:    adrian
    Differential Revision: https://reviews.freebsd.org/D55717

    (cherry picked from commit 6cfd2b93e68061c7831016b91c2e308d01658764)

 sys/net80211/ieee80211_ht.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
Comment 11 Anton Saietskii 2026-03-14 18:06:31 UTC
(In reply to commit-hook from comment #9)

I can confirm that my system correctly selects VHT80/160 with this cherry-picked into releng/14.4.
Comment 12 commit-hook freebsd_committer freebsd_triage 2026-04-01 04:35:11 UTC
A commit in branch stable/14 references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=f4e018e9a49b7bf4ddced51ad1ffc4415182cb45

commit f4e018e9a49b7bf4ddced51ad1ffc4415182cb45
Author:     Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2026-03-08 00:57:33 +0000
Commit:     Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2026-04-01 04:33:47 +0000

    net80211: fix VHT160/80P80/80 chanwidth selection in the "40-" case

    Depending on the base channel ni_vht_chan2 - ni_vht_chan1 can be
    negative.  Apply abs() as indicated in the comments right above
            | CCFS1 - CCFS0 | = 8  or > 16
    in order to fix the channel width selection.

    Sponsored by:   The FreeBSD Foundation
    PR:             293645
    Fixes:          4bf049bfeefd9
    Reviewed by:    adrian
    Differential Revision: https://reviews.freebsd.org/D55717

    (cherry picked from commit 6cfd2b93e68061c7831016b91c2e308d01658764)
    (cherry picked from commit 68fcf0b94c5167f89481052f358064c9b6732553)

 sys/net80211/ieee80211_ht.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
Comment 13 Bjoern A. Zeeb freebsd_committer freebsd_triage 2026-04-01 04:36:33 UTC
Fixed in main, stable/15 and stable/14.
Thanks a lot for bringing this to my attention and for testing!