All of lore.kernel.org
 help / color / mirror / Atom feed
* mac80211 does not delete beacons properly
@ 2008-04-11  8:32 Bernhard Michael
  0 siblings, 0 replies; only message in thread
From: Bernhard Michael @ 2008-04-11  8:32 UTC (permalink / raw)
  To: linux-wireless

Hi

I'm playing around with hostapd and observed that deleting the beacon (when hostapd terminates) is not working.

Looking at the kernel code I see the reason:

In function ieee80211_del_beacon (cfg.c) the old beacon (stored in sdata->u.ap.beacon) is removed. After that ieee80211_if_config_beacon is called.

This function (ieee80211_if_config_beacon, main.c) first checks if the driver handles beacon generation itself and therefore needs to be informed. For my card (b43) this is the case. However ieee80211_beacon_get is now called which will fail because the beacon in mac80211 is already removed.

This results in a ENOMEM error message for the caller even though the beacon is 'half' removed.

I don't know how this problem could be handled properly, therefore I post just the problem description :-)

Cheers
Mike

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-04-11  9:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-11  8:32 mac80211 does not delete beacons properly Bernhard Michael

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.