Sorry if this message is duplicate. I am confused which email address to send. linux-wireless@xxxxxxxxxxxxxxx or linux-wireless-owner@xxxxxxxxxxxxxxx -----Original Message----- From: Chaoxing Lin Sent: Wednesday, February 09, 2011 5:23 PM To: 'linux-wireless-owner@xxxxxxxxxxxxxxx' Subject: hostapd problem on reconfig (SIGHUP) Hello Experts, I see a problem while testing the latest hostapd/kernel/wpa_supplicant. I believe the problem in on hostapd side. It is easy to recreate the problem. So it can be an easy fix for hostapd maintainer. Thanks Problem: hostapd not working after SIGHUP signal Symptoms 1. If there's a client associated, a SIGHUP signal to hostapd can cause problem that no clients can associate (almost 100% reproducible)  2. "segmentation fault" happens a few times(not all the time) Âto hostapd by repeating SIGHUP and SIGUSR1 to hostapd. 3. Another minor thing. Actually a suggestion, hostapd does not need to re-config if configuration file is not changed. This is preferred because when hostapd controls multiple radios (e.g hostapd radio1.conf radio2.conf), itâs desirable that service on other radio is not disrupted when one of the conf is changed. Some facts:  a. The already associated client still thinks itself associated. This is verified by "iw wlan0 link" on client side. ããIt timed out later on and can no longer associate. ãã  b. driver (ath9k in kernel 2.6.38-rc4, operate over ar9380) says it has already deauthenticated the clients per  hostapd flush instruction. This is verified by "iw wlan0 station dump" on ap side.   I sniffed the air. Deauthentication packets (as broadcast) were sent out by driver. The associated client does not ããdeauthenticate and re-associate (bug in wpa_supplicant?).  c. hostapd still thinks the associated client is associated, which is wrong. This is verified by "killall -SIGUSR1 hostapd"   followed by "cat /tmp/hostapd.dump"  d. Tried to use new client to associate. No success.  Both old and clients stuck Workaround:  Do NOT use SIGHUP. User has to kill hostapd and restart hostapd. Software version info: 1. hostapd-0.7.3 and the latest unofficial snapshot release 0.8-snapshot 2. Tried both kernel 2.6.38-rc3 and 2.6.38-rc4. 3. ath9k operates over AR9380 chipset 4. wpa_supplicant-0.7.3 is used for client test. ÿô.nÇ·®+%˱é¥wÿº{.nÇ·¥{±ÿ«zW¬³ø¡Ü}©²ÆzÚj:+v¨þø®w¥þàÞ¨è&¢)ß«a¶Úÿûz¹ÞúÝjÿwèf