Configuration reload not working
leo at naio-technologies.com
Tue Oct 24 02:48:41 PDT 2017
Is there a documentation about the commands you just sent?
I have a lot of different documentations about hostapd(_cli) and none
tells about that features.
Le 21/10/2017 à 10:32, Jouni Malinen a écrit :
> On Thu, Oct 19, 2017 at 10:27:01AM +0200, Léo Serre wrote:
>> I'm trying to change the configuration dynamically (without reboot).
>> I'm running hostapd v2.6 built using Buildroot on my device.
>> Hostapd is started from the `/etc/network/interfaces` using that rule:
>> `post-up /usr/sbin/hostapd -B /etc/hostapd.conf -P /var/run/hostapd.pid`
>> Once started, I just change the ssid in the configuration file, and launched
>> `kill -s SIGHUP 270` where 270 is my PID number.
>> I waited more than 5 minutes without viewing any changes on the SSID.
> SIGHUP to change SSID works for me, but maybe there are some drivers
> that do not allow that type of changes to be performed without fully
> disabling and re-enabling the BSS. You could try to enabling debugging
> to a file in hostapd ("-d -f /tmp/hostapd.log" added to the command line
> and CONFIG_DEBUG_FILE=y in hostapd/.config build configuration) to see
> what is happening when the SIGHUP is received.
> That said, the most robust way of changing configuration would be over
> the control interface and with full DISABLE/ENABLE cycle around the
> hostapd_cli DISABLE
> hostapd_cli SET ssid new-ssid
> hostapd_cli ENABLE
More information about the Hostap