Wifi scanning while wpa_supplicant runs as Mesh node

Peter Åstrand astrand at lysator.liu.se
Sun Apr 2 06:59:14 PDT 2023

Hi, we are using wpa_supplicant for Mesh with TI WL1807MOD (driver wl18xx) 
on kernel 5.4.70. AP/hostapd is also running on the same module. As soon 
as we start wpa_supplicant, it is no longer possible to scan wifi networks 
with "iw dev wlan0_mesh scan". It returns:

command failed: Device or resource busy (-16)

I have identified that the reason for this is that wl18xx does not allow 
any scanning if it is in Remain On Channel:


The reason why it is in ROC is due to this code:


But is it really to be expected that ROC is active "forever" in a Mesh+AP 
setup, rather than just for a brief moment? 

We are currently using wpa_supplicant revision 

Peter Åstrand

More information about the Hostap mailing list