|
@@ -222,7 +222,8 @@ int wait_ip_addr(const char *ifname, int timeout)
|
|
|
if (get_wpa_status(ifname, "ip_address", ip, sizeof(ip)) == 0
|
|
|
&& strlen(ip) > 0) {
|
|
|
printf("IP address found: '%s'\n", ip);
|
|
|
- return 0;
|
|
|
+ if (strncmp(ip, "169.254.", 8) != 0)
|
|
|
+ return 0;
|
|
|
}
|
|
|
ctrl = wpa_open_ctrl(ifname);
|
|
|
if (ctrl == NULL)
|