From: Michael Bernhard Date: Sun, 13 Apr 2008 09:41:30 +0000 (+0300) Subject: driver_nl80211: Do not send nl80211 message if beacon is not set yet X-Git-Tag: hostap_0_6_4~85 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4c6122c397d5719f43f956af63c1c5b59169e298;p=thirdparty%2Fhostap.git driver_nl80211: Do not send nl80211 message if beacon is not set yet Signed-off-by: Michael Bernhard --- diff --git a/hostapd/driver_nl80211.c b/hostapd/driver_nl80211.c index cd2c66a17..829e23d04 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;