[PATCH v6 0/4] wifi: ath12k: store and send country code to firmware after recovery

Mihai Moldovan ionic at ionic.de
Wed Dec 11 08:22:03 PST 2024


* On 12/11/24 05:32, Kang Yang wrote:
> root at NUC8:/home/yk/Desktop/sigma-script# wls1: interface state
> UNINITIALIZED->COUNTRY_UPDATE
> Frequency 5500 (primary) not allowed for AP mode, flags: 0x100959 RADAR
> Primary frequency not allowed
> wls1: IEEE 802.11 Configured channel (100) or frequency (5500)
> (secondary_channel=0) not found from the channel list of the current
> mode (2) IEEE 802.11a
> 
> Don't know how you test with channel 100, it's a DFS channel.
> Can you show me your whole hostapd.conf?

Sure. DFS must be enabled of course - both in the kernel and in hostapd.

Complete hostapd.conf I'm testing with (80 MHz operation on channels 100+):

interface=wifibe
#bridge=brvswitch # Enabling that will likely fail for you out of the box.
driver=nl80211
logger_syslog=-1
logger_syslog_level=0
logger_stdout=-1
logger_stdout_level=2
ctrl_interface=/run/hostapd
ctrl_interface_group=0
ssid=WRTKA04
utf8_ssid=1
country_code=DE
country3=0x49
ieee80211d=1
ieee80211h=1
hw_mode=a
channel=100
acs_num_scans=100
acs_exclude_dfs=0
enable_background_radar=1
min_tx_power=0
beacon_int=100
dtim_period=2
max_num_sta=255
rts_threshold=65535
fragm_threshold=-1
preamble=1
macaddr_acl=1
accept_mac_file=/etc/hostapd/hostapd.accept
deny_mac_file=/etc/hostapd/hostapd.deny
auth_algs=1
ignore_broadcast_ssid=0
wmm_enabled=1
wmm_ac_bk_cwmin=4
wmm_ac_bk_cwmax=10
wmm_ac_bk_aifs=7
wmm_ac_bk_txop_limit=0
wmm_ac_bk_acm=0
wmm_ac_be_aifs=3
wmm_ac_be_cwmin=4
wmm_ac_be_cwmax=10
wmm_ac_be_txop_limit=0
wmm_ac_be_acm=0
wmm_ac_vi_aifs=2
wmm_ac_vi_cwmin=3
wmm_ac_vi_cwmax=4
wmm_ac_vi_txop_limit=94
wmm_ac_vi_acm=0
wmm_ac_vo_aifs=2
wmm_ac_vo_cwmin=2
wmm_ac_vo_cwmax=3
wmm_ac_vo_txop_limit=47
wmm_ac_vo_acm=0
ap_max_inactivity=7200
bss_max_idle=1
disassoc_low_ack=0
start_disabled=0
ieee80211n=1
disable_11n=0
ht_capab=[HT20][HT40+][HT40-][SHORT-GI-20][SHORT-GI-40][TX-STBC][RX-STBC1][LDCP][DSSS_CCK-40][MAX-AMSDU-7935]
require_ht=0
obss_interval=30
ht_vht_twt_responder=1
ieee80211ac=1
disable_11ac=0
vht_capab=[MAX-MPDU-11454][RXLDPC][SHORT-GI-80][TX-STBC-2BY1][RX-STBC-1][SU-BEAMFORMER][SU-BEAMFORMEE][MAX-A-MPDU-LEN-EXP3][RX-ANTENNA-PATTERN][TX-ANTENNA-PATTERN]
require_vht=0
vht_oper_chwidth=1
vht_oper_centr_freq_seg0_idx=106
vht_oper_centr_freq_seg1_idx=0
ieee80211ax=1
require_he=0
disable_11ax=0
he_su_beamformer=1
he_su_beamformee=1
he_mu_beamformer=1
he_bss_color=39
he_twt_required=0
he_twt_responder=1
he_er_su_disable=0
he_oper_chwidth=1
he_oper_centr_freq_seg0_idx=106
he_oper_centr_freq_seg1_idx=0
he_6ghz_max_mpdu=2
he_6ghz_max_ampdu_len_exp=7
he_6ghz_rx_ant_pat=1
he_6ghz_tx_ant_pat=1
he_6ghz_reg_pwr_type=4
reg_def_cli_eirp_psd=0
reg_sub_cli_eirp_psd=1
unsol_bcast_probe_resp_interval=0
channel_usage=1
peer_to_peer_twt=1
ieee80211be=1
disable_11be=0
eht_su_beamformer=1
eht_su_beamformee=1
eht_mu_beamformer=0
eht_oper_chwidth=1
eht_oper_centr_freq_seg0_idx=106
eht_default_pe_duration=0
eht_bw320_offset=0
punct_bitmap=0
punct_acs_threshold=0
mld_ap=0
eapol_key_index_workaround=0
own_ip_addr=127.0.0.1
wpa=2
extended_key_id=0
wpa_passphrase=BREAKMEnottheactualpassphraseofc
wpa_key_mgmt=WPA-PSK WPA-PSK-SHA256 SAE
wpa_pairwise=CCMP CCMP-256 GCMP GCMP-256
rsn_pairwise=CCMP CCMP-256 GCMP GCMP-256
ieee80211w=1
group_mgmt_cipher=AES-128-CMAC
beacon_prot=1
ocv=1
sae_require_mfp=1
fils_discovery_min_interval=20
fils_discovery_max_interval=8000
ssid_protection=1
ap_table_max_size=255
ap_table_expiration_time=3600
wps_cred_add_sae=1
multi_ap_profile=2
multi_ap_client_disallow=0
friendly_name=WPS 802.11be Access Point
manufacturer_url=http://www.ionic.de/
model_description=Wireless 802.11be Access Point
wps_rf_bands=a
tdls_prohibit=1
tdls_prohibit_chan_switch=1
mbo=0
mbo_cell_data_conn_pref=1
rssi_ignore_probe_request=0


> my steps:
> rmmod ath12k
> insmod ath12k
> iw reg set CN
> hostapd...

Yep, that should do the trick.



Mihai
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <http://lists.infradead.org/pipermail/ath12k/attachments/20241211/d9675c1e/attachment-0001.sig>


More information about the ath12k mailing list