Where is /usr/sbin/wpa_supplicant called?

I would like to suppress syslog messages of the sort

daemon.notice wpa_supplicant[1258]: wlan0: WPA: Group rekeying complete

I have tried

uci set wireless.radio0.log_level="4"

(compare https://openwrt.org/docs/guide-user/network/wifi/basic), but this does not seem to have the desired effect.

I have found that /usr/sbin/wpa_supplicant can be called with -qq, but I fail to see where /usr/sbin/wpa_supplicant is called in the OpenWRT source code.

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=653515 suggests adding wpa-debug-level 3 to /etc/network/interfaces, but I cannot find the equivalent of this file on OpenWRT, either.

Edit: Alternatively, where is the equivalent of

in the OpenWRT code? I am compiling myself and might simply change MSG_INFO to MSG_DEBUG.

The answer and solution is

sed -i "s/wpa_supplicant -B/wpa_supplicant -q -B/" /lib/netifd/hostapd.sh

No need to recompile with this solution, just run once and it persists a reboot.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.