Browse Source

driver_nl80211: Do not send nl80211 message if beacon is not set yet

Signed-off-by: Michael Bernhard <michael.bernhard at bfh.ch>
Michael Bernhard 17 years ago
parent
commit
4c6122c397
1 changed files with 3 additions and 0 deletions
  1. 3 0
      hostapd/driver_nl80211.c

+ 3 - 0
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;