QSDK: Enable wps cause procd locked?

Developing on qualcomm's QSDK, OpenWrt 19.07-SNAPSHOT.
uci set wireless.@wifi-iface[0].wps_pbc=1 && /etc/init.d/network restart

and there will be a hostapd_cli running in background like
17244 root 4656 S /usr/sbin/hostapd_cli -i ath0 -p /var/run/hostapd-wifi0 -P /var/run/hostapd_cli-ath0.pid -a /lib/wifi/wps

And I found ubus call uci commit '{"config":"network"}' is no response. If i kill 17244 then ubus call works again. I suspect it's something about lock so I check /proc/17244/fdinfo, there is a file 1000, it says

pos:    0
flags:  0400001
mnt_id: 18
lock:   1: FLOCK  ADVISORY  WRITE 2192 00:11:9210 0 EOF

I have tried kill the flock 1000 process in the background and ubus also works again but I think kill that process is not a good idea. Does this mean hostapd_cli locked some file and doesn't unlock it? And the fd 1000 affects procd? If so, how do I unlock it?

This is heavily modified and unsupported and proprietary vendor fork, so its really not appropriate to ask for support here, you should use standard support channels.


This is the most hilarious topic I've read in days.
Thank you.

1 Like