Home | History | Annotate | Download | only in wpa_supplicant

Lines Matching refs:anqp

166 	return ie[2]; /* Number of ANQP OIs */
188 wpa_printf(MSG_DEBUG, "Interworking: ANQP Query Request to " MACSTR,
208 wpa_hexdump(MSG_DEBUG, "Interworking: ANQP Query info",
244 wpa_printf(MSG_DEBUG, "ANQP: Failed to send Query Request");
249 wpa_printf(MSG_DEBUG, "ANQP: Query started with dialog token "
440 static struct nai_realm * nai_realm_parse(struct wpabuf *anqp, u16 *count)
446 if (anqp == NULL || wpabuf_len(anqp) < 2)
449 pos = wpabuf_head_u8(anqp);
450 end = pos + wpabuf_len(anqp);
600 static int plmn_id_match(struct wpabuf *anqp, const char *imsi, int mnc_len)
626 if (anqp == NULL)
628 pos = wpabuf_head_u8(anqp);
629 end = pos + wpabuf_len(anqp);
776 if (bss->anqp == NULL || bss->anqp->anqp_3gpp == NULL)
884 * Number of ANQP OIs
892 pos++; /* skip Number of ANQP OIs */
913 static int roaming_consortium_anqp_match(const struct wpabuf *anqp,
919 if (anqp == NULL)
922 pos = wpabuf_head(anqp);
923 end = pos + wpabuf_len(anqp);
939 static int roaming_consortium_match(const u8 *ie, const struct wpabuf *anqp,
943 roaming_consortium_anqp_match(anqp, rc_id, rc_len);
974 (bss->anqp == NULL || bss->anqp->roaming_consortium == NULL))
985 bss->anqp ?
986 bss->anqp->roaming_consortium :
1224 realm = nai_realm_parse(bss->anqp ? bss->anqp->nai_realm : NULL,
1353 if (bss->anqp == NULL || bss->anqp->anqp_3gpp == NULL)
1402 ret = plmn_id_match(bss->anqp->anqp_3gpp, imsi, mnc_len);
1424 if (bss->anqp == NULL || bss->anqp->nai_realm == NULL)
1432 realm = nai_realm_parse(bss->anqp->nai_realm, &count);
1626 res = interworking_home_sp(wpa_s, bss->anqp ?
1627 bss->anqp->domain_name : NULL);
1675 "scanning after ANQP fetch");
1701 if (other->anqp == NULL)
1703 if (other->anqp->roaming_consortium == NULL &&
1704 other->anqp->nai_realm == NULL &&
1705 other->anqp->anqp_3gpp == NULL &&
1706 other->anqp->domain_name == NULL)
1716 wpa_printf(MSG_DEBUG, "Interworking: Share ANQP data with "
1719 other->anqp->users++;
1720 return other->anqp;
1744 if (bss->anqp == NULL) {
1745 bss->anqp = interworking_match_anqp_info(wpa_s,
1747 if (bss->anqp) {
1751 bss->anqp = wpa_bss_anqp_alloc();
1752 if (bss->anqp == NULL)
1757 wpa_msg(wpa_s, MSG_INFO, "Starting ANQP fetch for "
1765 wpa_msg(wpa_s, MSG_INFO, "ANQP fetch completed");
1826 wpa_printf(MSG_DEBUG, "ANQP: Query Request to " MACSTR " for %u id(s)",
1835 wpa_printf(MSG_DEBUG, "ANQP: Failed to send Query Request");
1838 wpa_printf(MSG_DEBUG, "ANQP: Query started with dialog token "
1852 struct wpa_bss_anqp *anqp = NULL;
1858 anqp = bss->anqp;
1862 wpa_msg(wpa_s, MSG_INFO, "RX-ANQP " MACSTR
1863 " ANQP Capability list", MAC2STR(sa));
1866 wpa_msg(wpa_s, MSG_INFO, "RX-ANQP " MACSTR
1868 wpa_hexdump_ascii(MSG_DEBUG, "ANQP: Venue Name", pos, slen);
1869 if (anqp) {
1870 wpabuf_free(anqp->venue_name);
1871 anqp->venue_name = wpabuf_alloc_copy(pos, slen);
1875 wpa_msg(wpa_s, MSG_INFO, "RX-ANQP " MACSTR
1878 wpa_hexdump_ascii(MSG_DEBUG, "ANQP: Network Authentication "
1880 if (anqp) {
1881 wpabuf_free(anqp->network_auth_type);
1882 anqp->network_auth_type = wpabuf_alloc_copy(pos, slen);
1886 wpa_msg(wpa_s, MSG_INFO, "RX-ANQP " MACSTR
1888 wpa_hexdump_ascii(MSG_DEBUG, "ANQP: Roaming Consortium",
1890 if (anqp) {
1891 wpabuf_free(anqp->roaming_consortium);
1892 anqp->roaming_consortium = wpabuf_alloc_copy(pos, slen);
1896 wpa_msg(wpa_s, MSG_INFO, "RX-ANQP " MACSTR
1899 wpa_hexdump(MSG_MSGDUMP, "ANQP: IP Address Availability",
1901 if (anqp) {
1902 wpabuf_free(anqp->ip_addr_type_availability);
1903 anqp->ip_addr_type_availability =
1908 wpa_msg(wpa_s, MSG_INFO, "RX-ANQP " MACSTR
1910 wpa_hexdump_ascii(MSG_DEBUG, "ANQP: NAI Realm", pos, slen);
1911 if (anqp) {
1912 wpabuf_free(anqp->nai_realm);
1913 anqp->nai_realm = wpabuf_alloc_copy(pos, slen);
1917 wpa_msg(wpa_s, MSG_INFO, "RX-ANQP " MACSTR
1919 wpa_hexdump_ascii(MSG_DEBUG, "ANQP: 3GPP Cellular Network",
1921 if (anqp) {
1922 wpabuf_free(anqp->anqp_3gpp);
1923 anqp->anqp_3gpp = wpabuf_alloc_copy(pos, slen);
1927 wpa_msg(wpa_s, MSG_INFO, "RX-ANQP " MACSTR
1929 wpa_hexdump_ascii(MSG_MSGDUMP, "ANQP: Domain Name", pos, slen);
1930 if (anqp) {
1931 wpabuf_free(anqp->domain_name);
1932 anqp->domain_name = wpabuf_alloc_copy(pos, slen);
1956 wpa_printf(MSG_DEBUG, "HS20: Unsupported ANQP "
1964 "vendor-specific ANQP OUI %06x",
1970 wpa_printf(MSG_DEBUG, "Interworking: Unsupported ANQP Info ID "
1995 wpa_printf(MSG_DEBUG, "ANQP: Unexpected Advertisement "
2020 wpa_printf(MSG_DEBUG, "ANQP: Invalid element");
2028 wpa_printf(MSG_DEBUG, "ANQP: Invalid element length "
2043 "ANQP fetch");