nl80211: Stop driver init sooner if the interface does not exist
This commit is contained in:
parent
2397086869
commit
2136f48020
1 changed files with 2 additions and 1 deletions
|
@ -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 "
|
||||
|
|
Loading…
Reference in a new issue