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.
This commit is contained in:
Jouni Malinen 2010-10-26 16:30:28 +03:00 committed by Jouni Malinen
parent 4e0c025d13
commit e11f5a2cbc
1 changed files with 3 additions and 0 deletions

View File

@ -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;
}