From: Jouni Malinen <j@w1.fi>
To: Chaoxing Lin <CLin@3eti.com>
Cc: linux-wireless@vger.kernel.org
Subject: Re: FW: hostapd problem on reconfig (SIGHUP)
Date: Thu, 10 Feb 2011 22:40:10 +0200 [thread overview]
Message-ID: <20110210204010.GA7571@jm.kir.nu> (raw)
In-Reply-To: <BD54DDEB2546894FAB0731EA7B0EDF8D0571DFA0@RockMX01.rock.corp>
On Thu, Feb 10, 2011 at 02:55:14PM +0000, Chaoxing Lin wrote:
> I see a problem while testing the latest hostapd/kernel/wpa_supplicant. I believe the problem in on hostapd side.
Could you please re-test with the current hostap.git snapshot?
> 1. If there's a client associated, a SIGHUP signal to hostapd can cause problem that no clients can associate (almost 100% reproducible)
I would assume the clients could still re-associate if you were to
manually request them to do so. They may not do this automatically until
the STA entry in hostapd times out (though, with the change I just added
to hostap.git, this happens immediately in case of SIGHUP).
> 2. "segmentation fault" happens a few times(not all the time) to hostapd by repeating SIGHUP and SIGUSR1 to hostapd.
Fixed.
> 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.
How frequently are you changing the configuration? Is this really a big
enough issue to justify extra complexity in figuring out whether the
configuration has changed? Anyway, an easier approach would be to add a
new control interface command RECONFIGURE (which is already available in
wpa_supplicant) which would allow the reconfiguration to be done
separately for a single radio.
> 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.
The client was probably in sleep state when the AP sent out the
broadcast Deauthentication frames or for some other reason missed it at
the time. It should be able to reassociate after the timeout, though.. I
did not see issues with this in my tests.
> 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?).
Please let me know if you can still reproduce this after having updated
hostapd to the current hostap.git snapshot.
> 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"
Fixed.
> d. Tried to use new client to associate. No success.
> Both old and clients stuck
Strange.. I have been unable to reproduce this. What kind of hostapd
configuration are you using?
--
Jouni Malinen PGP id EFC895FA
next prev parent reply other threads:[~2011-02-10 20:40 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-10 14:55 FW: hostapd problem on reconfig (SIGHUP) Chaoxing Lin
2011-02-10 18:37 ` Sedat Dilek
2011-02-10 20:25 ` Joerg
2011-02-10 20:40 ` Jouni Malinen [this message]
2011-02-10 22:07 ` Chaoxing Lin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110210204010.GA7571@jm.kir.nu \
--to=j@w1.fi \
--cc=CLin@3eti.com \
--cc=linux-wireless@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).