Enable debug logging

I'm trying to enable debug logging for the WiFi access points without any success.

I've tried setting log_level for the access points in /etc/config/wireless without any change.

I've passed the -d -t parameters to hostapd in /etc/init.d/wpad without success.

procd_set_param command /usr/sbin/hostapd -d -t -s -g /var/run/hostapd/global

Can you please tell me what I'm doing wrong? I only see info level messages in /tmp/system.log.

Please let me know what the router model and firmware version

@bruce its a GL Technologies, Inc. AXT1800 running v4.6.11. Thanks.

Hello,

Please update these files:
4.6.11_hostapd_debug.zip (882.8 KB)

  1. Unzip and upload 3 .ipk files to /root/ by WinSCP

  2. SSH to the router, and execute the commands to install:

opkg install wpa-cli_2021-02-20-59e9794c-6_arm_cortex-a7.ipk && opkg remove wpad-openssl && opkg install wpad-openssl_2021-02-20-59e9794c-6_arm_cortex-a7.ipk && opkg install hostapd-common_2021-02-20-59e9794c-6_arm_cortex-a7.ipk --force-reinstall && /etc/init.d/repeater restart
  1. Follow you mentioned method, add parameters -d -t, and restart wpad: /etc/init.d/wpad restart

  2. Check the debug log: logread -f&

Thanks @bruce . It works well.

1 Like