Daniel Schmitt wrote:
hostapd doesn't continue to work after controller is restarted. I also have the problem that the wlan0-interface shall not be upped with "ifconfig wlan0 0.0.0.0 up" before starting hostapd, otherwise no beacons will be send. The interface must be down before starting hostapd. If I terminate a not daemonized hostapd with CTRL+C and restart if without rmmod+modprobe b43legacy, no beacons are sent, too. And I cannot connect the AP. This happens with the bleeding-edge wireless drivers 2009-11-13.
I noticed the same on MN700 hardware running OpenWrt bleeding edge. The init scripts enable and disable wlan0 once before starting hostapd. Here, beacons are still being sent, but hostapd is unable to transmit any packet. When reloading b43legacy and starting hostapd manually it works, but only once.
The attached patch resolves the problem for me. Thanks, Jochen
--- compat-wireless-2010-01-11/drivers/net/wireless/b43legacy/main.c.orig 2010-01-14 12:14:39.000000000 +0100 +++ compat-wireless-2010-01-11/drivers/net/wireless/b43legacy/main.c 2010-01-14 12:14:52.000000000 +0100 @@ -2921,6 +2921,7 @@ goto out; } /* We are ready to run. */ + ieee80211_wake_queues(dev->wl->hw); b43legacy_set_status(dev, B43legacy_STAT_STARTED); /* Start data flow (TX/RX) */