aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/ctrl_iface.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2017-03-10 15:02:22 (GMT)
committerJouni Malinen <j@w1.fi>2017-03-10 15:02:22 (GMT)
commit8ecf2231fd5ddb396b8c4d94fb396e3c0ff785ac (patch)
tree2a43da42df32255e3835ff1aa9dabc1d8d844141 /wpa_supplicant/ctrl_iface.c
parenta9be28bf6b98bece3068db581b44ae1e5b0b65eb (diff)
downloadhostap-8ecf2231fd5ddb396b8c4d94fb396e3c0ff785ac.zip
hostap-8ecf2231fd5ddb396b8c4d94fb396e3c0ff785ac.tar.gz
hostap-8ecf2231fd5ddb396b8c4d94fb396e3c0ff785ac.tar.bz2
ANQP: Extend ANQP_GET command to request without IEEE 802.11 elements
Previously, ANQP_GET required at least one IEEE 802.11 ANQP-element to be requested. This is not really necessary, so allow a case where num_ids == 0 as long as the request includes at least one Hotspot 2.0 or MBO ANQP-element. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'wpa_supplicant/ctrl_iface.c')
-rw-r--r--wpa_supplicant/ctrl_iface.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wpa_supplicant/ctrl_iface.c b/wpa_supplicant/ctrl_iface.c
index 5aa3542..08348d2 100644
--- a/wpa_supplicant/ctrl_iface.c
+++ b/wpa_supplicant/ctrl_iface.c
@@ -6751,7 +6751,7 @@ static int get_anqp(struct wpa_supplicant *wpa_s, char *dst)
pos++;
}
- if (num_id == 0)
+ if (num_id == 0 && !subtypes && !mbo_subtypes)
return -1;
return anqp_send_req(wpa_s, dst_addr, id, num_id, subtypes,