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:

https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/drivers/net/wireless/ti/wlcore/main.c?h=linux-5.4.y#n3700

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

https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/drivers/net/wireless/ti/wlcore/main.c?h=linux-5.4.y#n5136

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 
f725254cc1297532a553de9fa5af8484ec95cda4. 


Br,
Peter Åstrand


More information about the Hostap mailing list