Re: Configuration reload not working

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Jouni,

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.

Thanks,

Léo

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
operations:

hostapd_cli DISABLE
hostapd_cli SET ssid new-ssid
hostapd_cli ENABLE


_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap




[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux