3 @@ -1100,13 +1100,8 @@ int hostapd_setup_interface_complete(str
8 - wpa_printf(MSG_ERROR, "Interface initialization failed");
9 - hostapd_set_state(iface, HAPD_IFACE_DISABLED);
10 - if (iface->interfaces && iface->interfaces->terminate_on_error)
17 wpa_printf(MSG_DEBUG, "Completing interface initialization");
18 if (iface->conf->channel) {
19 @@ -1137,7 +1132,7 @@ int hostapd_setup_interface_complete(str
20 hapd->iconf->vht_oper_centr_freq_seg1_idx)) {
21 wpa_printf(MSG_ERROR, "Could not set channel for "
28 @@ -1148,7 +1143,7 @@ int hostapd_setup_interface_complete(str
29 hostapd_logger(hapd, NULL, HOSTAPD_MODULE_IEEE80211,
30 HOSTAPD_LEVEL_WARNING,
31 "Failed to prepare rates table.");
37 @@ -1156,14 +1151,14 @@ int hostapd_setup_interface_complete(str
38 hostapd_set_rts(hapd, hapd->iconf->rts_threshold)) {
39 wpa_printf(MSG_ERROR, "Could not set RTS threshold for "
45 if (hapd->iconf->fragm_threshold > -1 &&
46 hostapd_set_frag(hapd, hapd->iconf->fragm_threshold)) {
47 wpa_printf(MSG_ERROR, "Could not set fragmentation threshold "
53 prev_addr = hapd->own_addr;
54 @@ -1173,7 +1168,7 @@ int hostapd_setup_interface_complete(str
56 os_memcpy(hapd->own_addr, prev_addr, ETH_ALEN);
57 if (hostapd_setup_bss(hapd, j == 0))
60 if (hostapd_mac_comp_empty(hapd->conf->bssid) == 0)
61 prev_addr = hapd->own_addr;
63 @@ -1188,7 +1183,7 @@ int hostapd_setup_interface_complete(str
64 if (hostapd_driver_commit(hapd) < 0) {
65 wpa_printf(MSG_ERROR, "%s: Failed to commit driver "
66 "configuration", __func__);
72 @@ -1213,6 +1208,13 @@ int hostapd_setup_interface_complete(str
73 iface->interfaces->terminate_on_error--;
78 + wpa_printf(MSG_ERROR, "Interface initialization failed");
79 + hostapd_set_state(iface, HAPD_IFACE_DISABLED);
80 + if (iface->interfaces && iface->interfaces->terminate_on_error)