nl80211: Stop driver init sooner if the interface does not exist

This commit is contained in:
Masashi Honma 2010-12-17 13:55:13 +02:00 committed by Jouni Malinen
parent 2397086869
commit 2136f48020

View file

@ -1927,7 +1927,8 @@ wpa_driver_nl80211_finish_drv_init(struct wpa_driver_nl80211_data *drv)
1, IF_OPER_DORMANT);
#endif /* HOSTAPD */
linux_get_ifhwaddr(drv->ioctl_sock, bss->ifname, drv->addr);
if (linux_get_ifhwaddr(drv->ioctl_sock, bss->ifname, drv->addr))
return -1;
if (nl80211_register_action_frames(drv) < 0) {
wpa_printf(MSG_DEBUG, "nl80211: Failed to register Action "