linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* No beacons generated when you bring ath9k AP interface down and up.
@ 2011-01-14  7:13 Ben Greear
  2011-01-14  8:26 ` Johannes Berg
  2011-01-14  9:12 ` Jouni Malinen
  0 siblings, 2 replies; 6+ messages in thread
From: Ben Greear @ 2011-01-14  7:13 UTC (permalink / raw)
  To: linux-wireless@vger.kernel.org

Been a long day, but I think I finally see the problem.

If you have an ath9k AP interface running with hostapd, and you
run:  ip link set vap0 down; ip link set vap0 up;
then it will disable beaconing.

One reason is that the ieee80211_do_open calls the
  ieee80211_bss_info_change_notify before it sets the RUNNING
flag, so it would disable beaconing.  A second is that
it doesn't set the BEACON_CHANGED flag anyway, so even if you
hack things to set RUNNING first, it still doesn't work right.

I'm not sure where the problem actually lies:  Should ath9k
start beaconing automatically on VAP interface add?  Is
it up to hostapd to detect the ifdown/ifup and re-set everything
up properly?  Or maybe it's just a very bad idea to bounce
a VAP interface with 'ip link set'?

Thanks,
Ben

--
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc  http://www.candelatech.com

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-01-14 14:17 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-14  7:13 No beacons generated when you bring ath9k AP interface down and up Ben Greear
2011-01-14  8:26 ` Johannes Berg
2011-01-14  9:12 ` Jouni Malinen
2011-01-14 13:22   ` Ben Greear
2011-01-14 14:17     ` Brian Prodoehl
2011-01-14 13:49   ` Jorge Boncompte [DTI2]

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).