Skip to content

MT7916/mt7915e : AP is not beaconing in 6Ghz channel frequency 5975 when country code set to 'US' #988

@Anand-Sunkad

Description

@Anand-Sunkad

When I try to bring up AP with channel 5(5975 frequency) in 6Ghz band in US country code it says channel is set to 5 but not seeing beaconing in channel 5 and also observed below error message

From the error logs it seems mt7915e driver is not able to set indoor channels 6ghz channels when country code is US
could some one help me how to resolve this issue? are there any patches available for it?

logs/configuration details are as below

Chipset: MT7916
driver: mt7915e (driver loaded with enable_6ghz=y argument)
openwrt: openwrt-24.10
wireless-config:
config wifi-device 'radio1'
option type 'mac80211'
option path 'pci0000:00/0000:00:1c.1/0000:02:00.0+1'
option band '6g'
option htmode 'HE20'
option channel '5'
option country 'US'
option cell_density '0'
option disabled '0'

config wifi-iface 'wifi1'
option device 'radio0'
option mode 'ap'
option ssid 'AP6GAP-ATX'
option encryption 'sae'
option key '12345678'
option ocv '0'

root@OpenWrt:~# iwinfo
phy1-ap0 ESSID: "AP6GAP-ATX"
Access Point: 00:0A:52:09:61:5B
Mode: Master Channel: 5 (5.975 GHz) HT Mode: NOHT
Center Channel 1: unknown 2: unknown
Tx-Power: 12 dBm Link Quality: unknown/70
Signal: unknown Noise: -91 dBm
Bit Rate: unknown
Encryption: WPA3 SAE (CCMP)
Type: nl80211 HW Mode(s): 802.11ax
Hardware: 14C3:7906 14C3:7906 [MediaTek MT7916AN]
TX power offset: none
Frequency offset: none
Supports VAPs: yes PHY name: phy1

root@OpenWrt:~# iw reg get
global
country US: DFS-FCC
(902 - 904 @ 2), (N/A, 30), (N/A)
(904 - 920 @ 16), (N/A, 30), (N/A)
(920 - 928 @ 8), (N/A, 30), (N/A)
(2400 - 2472 @ 40), (N/A, 30), (N/A)
(5150 - 5250 @ 80), (N/A, 23), (N/A), AUTO-BW
(5250 - 5350 @ 80), (N/A, 24), (0 ms), DFS, AUTO-BW
(5470 - 5730 @ 160), (N/A, 24), (0 ms), DFS
(5730 - 5850 @ 80), (N/A, 30), (N/A), AUTO-BW
(5850 - 5895 @ 40), (N/A, 27), (N/A), NO-OUTDOOR, AUTO-BW, PASSIVE-SCAN
(5925 - 7125 @ 320), (N/A, 12), (N/A), NO-OUTDOOR, PASSIVE-SCAN
(57240 - 71000 @ 2160), (N/A, 40), (N/A)

Logs:
Thu Jun 19 14:47:12 2025 daemon.notice hostapd: Set new config for phy phy1:
Thu Jun 19 14:47:12 2025 daemon.notice wpa_supplicant[1956]: Set new config for phy phy1
Thu Jun 19 14:47:12 2025 daemon.notice wpa_supplicant[1956]: Set new config for phy phy1
Thu Jun 19 14:47:12 2025 daemon.notice hostapd: Set new config for phy phy1: /var/run/hostapd-phy1.conf
Thu Jun 19 14:47:12 2025 daemon.notice hostapd: Restart interface for phy phy1
Thu Jun 19 14:47:12 2025 daemon.notice hostapd: Configuration file: data: driver=nl80211 logger_syslog=127 logger_syslog_level=2 logger_stdout=127 logger_std
out_level=2 country_code=US ieee80211d=1 ieee80211h=1 hw_mode=a beacon_int=100 he_6ghz_reg_pwr_type=0 stationary_ap=1 chanlist=5 #num_global_macaddr=1 #macad
dr_base= op_class=131 ieee80211ax=1 he_oper_chwidth=0 he_oper_centr_freq_seg0_idx= he_su_beamformer=1 he_su_beamformee=1 he_mu_beamformer=1 he_bss_color=128
he_spr_sr_control=3 he_default_pe_duration=4 he_rts_threshold=1023 he_mu_edca_qos_info_param_count=0 he_mu_edca_qos_info_q_ack=0 he_mu_edca_qos_info_queue_re
quest=0 he_mu_edca_qos_info_txop_request=0 he_mu_edca_ac_be_aifsn=8 he_mu_edca_ac_be_aci=0 he_mu_edca_ac_be_ecwmin=9 he_mu_edca_ac_be_ecwmax=10 he_mu_edca_ac
be_timer=255 he_mu_edca_ac_bk_aifsn=15 he_mu_edca_ac_bk_aci=1 he_mu_edca_ac_bk_ecwmin=9 he_mu_edca_ac_bk_ecwmax=10 he_mu_edca_ac_bk_timer=255 he_mu_edca_ac
vi_ecwmin=5 he_mu_edca_ac_vi_ecwmax=7 he_mu_edca_ac_vi_aifsn=5 he_mu_edca_ac_vi_aci=2 he_mu_edca_ac_
Thu Jun 19 14:47:12 2025 daemon.notice hostapd: phy1-ap0: interface state UNINITIALIZED->COUNTRY_UPDATE
Thu Jun 19 14:47:12 2025 daemon.notice hostapd: Frequency 5975 (primary) not allowed for AP mode, flags: 0x13803 NO-IR
Thu Jun 19 14:47:12 2025 daemon.err hostapd: Primary frequency not allowed
Thu Jun 19 14:47:12 2025 daemon.warn hostapd: phy1-ap0: IEEE 802.11 Configured channel (5) or frequency (5975) (secondary_channel=0) not found from the chann
el list of the current mode (2) IEEE 802.11a

Thu Jun 19 14:47:12 2025 daemon.warn hostapd: phy1-ap0: IEEE 802.11 Hardware does not support configured channel
Thu Jun 19 14:47:12 2025 daemon.err hostapd: Could not select hw_mode and channel. (-3)
Thu Jun 19 14:47:12 2025 daemon.notice hostapd: phy1-ap0: interface state COUNTRY_UPDATE->NO_IR
Thu Jun 19 14:47:12 2025 daemon.notice hostapd: phy1-ap0: AP-NO_IR
Thu Jun 19 14:47:12 2025 daemon.notice netifd: Wireless device 'radio3' is now up

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions