wpa_helpers: Ignore link-local IPv4 address while waiting for DHCP
Do not accept a link-local IPv4 address when waiting for a valid DHCP address. This helps with hs20-osu-client use cases where DHCP response has not yet been received. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
e2f00bb5ff
commit
a5269dc209
1 changed files with 2 additions and 1 deletions
|
@ -222,6 +222,7 @@ 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);
|
||||
if (strncmp(ip, "169.254.", 8) != 0)
|
||||
return 0;
|
||||
}
|
||||
ctrl = wpa_open_ctrl(ifname);
|
||||
|
|
Loading…
Reference in a new issue