summaryrefslogtreecommitdiff
path: root/src/common/wpa_helpers.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/wpa_helpers.c')
-rw-r--r--src/common/wpa_helpers.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/wpa_helpers.c b/src/common/wpa_helpers.c
index f1594213f97f5..8e1c09ec5929e 100644
--- a/src/common/wpa_helpers.c
+++ b/src/common/wpa_helpers.c
@@ -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)