Parcourir la 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 il y a 17 ans
Parent
commit
4c6122c397
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  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;