We are encountering a very strange issue. We have and Apalis im8 configured as a Wi-Fi Access Point. We have a verdin imx8mm configuration as a Station. The hostapd configuration is as follows:
interface=uap0
ssid=FlexNX
country_code=US
hw_mode=a
channel=0
ieee80211ac=1
ieee80211d=1
ieee80211h=1
own_ip_addr=192.168.8.1
wpa=2
wpa_pairwise=CCMP
rsn_pairwise=CCMP
wmm_enabled=1
wpa_passphrase=******
ctrl_interface=/var/run/hostapd
ctrl_interface_group=0
Normally, everything is fine. Every once in a while the AP’s Automatic Channel selection selects channel 34 (freq = 5170), which is an invalid channel. I was able to capture this event and tried to manaully change the hostapd configuration and restart.
channel=44
The Hostapd status indicates it is transmitting on channel 44 freq=5220:
hostapd_cli status
Selected interface ‘uap0’
state=ENABLED
phy=phy0
freq=5220
num_sta_non_erp=0
num_sta_no_short_slot_time=0
num_sta_no_short_preamble=0
olbc=0
num_sta_ht_no_gf=0
num_sta_no_ht=0
num_sta_ht_20_mhz=0
num_sta_ht40_intolerant=0
olbc_ht=0
ht_op_mode=0x0
cac_time_seconds=0
cac_time_left_seconds=N/A
channel=44
edmg_enable=0
edmg_channel=0
secondary_channel=0
ieee80211n=0
ieee80211ac=1
ieee80211ax=0
beacon_int=100
dtim_period=2
vht_oper_chwidth=0
vht_oper_centr_freq_seg0_idx=0
vht_oper_centr_freq_seg1_idx=0
vht_caps_info=00000000
rx_vht_mcs_map=fffa
tx_vht_mcs_map=fffa
supported_rates=0c 12 18 24 30 48 60 6c
max_txpower=23
bss[0]=uap0
bssid[0]=34:6f:24:4f:74:ab
ssid[0]=FlexNX_00101
num_sta[0]=1
However the STA reports a different story, this is output from wpa_cli:
<3>CTRL-EVENT-DISCONNECTED bssid=34:6f:24:4f:74:ab reason=0
<3>CTRL-EVENT-SCAN-STARTED
<3>CTRL-EVENT-SCAN-RESULTS
<3>WPS-AP-AVAILABLE
<3>Trying to associate with 34:6f:24:4f:74:ab (SSID=‘FlexNX_00101’ freq=5240 MHz)
<3>Associated with 34:6f:24:4f:74:ab
<3>CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
<3>CTRL-EVENT-DISCONNECTED bssid=34:6f:24:4f:74:ab reason=0
<3>CTRL-EVENT-SCAN-STARTED
<3>CTRL-EVENT-SCAN-RESULTS
<3>WPS-AP-AVAILABLE
<3>Trying to associate with 34:6f:24:4f:74:ab (SSID=‘FlexNX_00101’ freq=5170 MHz)
<3>Associated with 34:6f:24:4f:74:ab
<3>CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
<3>WPA: Key negotiation completed with 34:6f:24:4f:74:ab [PTK=CCMP GTK=CCMP]
<3>CTRL-EVENT-CONNECTED - Connection to 34:6f:24:4f:74:ab completed [id=0 id_str=]
status
bssid=34:6f:24:4f:74:ab
freq=5170
ssid=FlexNX_00101
id=0
mode=station
pairwise_cipher=CCMP
group_cipher=CCMP
key_mgmt=WPA2-PSK
wpa_state=COMPLETED
ip_address=192.168.8.163
address=ec:2e:98:86:f9:6d
uuid=2687faab-195c-5a57-9407-be0ad9dc7d1e
It still indicates channel 34 frequency 5170!!! It looks like the AP started at channel 44, but then switched back to channel 34.
This problem has been very elusive as our verdin based stations remain connected while PC’s and phones cannot see this AP. I haven’t seen anyone else with this issue so we are getting desperate.
Our OS is based from the Toradex yocto BSP reference image 6.9.0 (kirkstone).
Any help or information you can provide would be greatly appreciated.
Thank you,
Jeff