[PATH 6/6] driver_nl80211.c: Do not send nl80211 message if beacon is not set yet

Bernhard Michael michael.bernhard at bfh.ch
Sat Apr 12 09:10:53 EDT 2008


Signed-off-by: Michael Bernhard <michael.bernhard at bfh.ch>
---
hostapd/driver_nl80211.c |    3 +++
1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/hostapd/driver_nl80211.c b/hostapd/driver_nl80211.c
index cd2c66a..829e23d 100644
--- a/hostapd/driver_nl80211.c
+++ b/hostapd/driver_nl80211.c
@@ -1152,6 +1152,9 @@ static int i802_set_beacon_int(void *priv, int value)

    drv->beacon_int = value;

+    if (!drv->beacon_set)
+        return 0;
+
    msg = nlmsg_alloc();
    if (!msg)
        goto out;



More information about the HostAP mailing list