Parcourir la source

hostapd: Set operstate UP when initializing AP mode

This is needed to avoid problems with other applications setting and
leaving the interface to IF_OPER_DORMANT state. In AP mode, the interface
is ready immediately after the keys are set, so we better make sure the
DORMANT state does not prevent normal operations after that.
Jouni Malinen il y a 14 ans
Parent
commit
e11f5a2cbc
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  1. 3 0
      src/ap/hostapd.c

+ 3 - 0
src/ap/hostapd.c

@@ -619,6 +619,9 @@ static int hostapd_setup_bss(struct hostapd_data *hapd, int first)
 
 	ieee802_11_set_beacon(hapd);
 
+	if (hapd->driver && hapd->driver->set_operstate)
+		hapd->driver->set_operstate(hapd->drv_priv, 1);
+
 	return 0;
 }