Lines Matching defs:bss

24 #include "bss.h"
164 static int additional_roaming_consortiums(struct wpa_bss *bss)
167 ie = wpa_bss_get_ie(bss, WLAN_EID_ROAMING_CONSORTIUM);
182 struct wpa_bss *bss)
193 MAC2STR(bss->bssid));
201 additional_roaming_consortiums(bss)))
215 if (wpa_bss_get_vendor_ie(bss, HS20_IE_VENDOR_TYPE)) {
244 res = gas_query_req(wpa_s->gas, bss->bssid, bss->freq, buf,
751 struct wpa_bss *bss)
761 if (bss->anqp == NULL || bss->anqp->anqp_3gpp == NULL)
792 if (plmn_id_match(bss->anqp->anqp_3gpp, imsi, mnc_len))
798 ie = wpa_bss_get_ie(bss, WLAN_EID_SSID);
802 MAC2STR(bss->bssid));
966 static int cred_excluded_ssid(struct wpa_cred *cred, struct wpa_bss *bss)
975 if (bss->ssid_len == e->ssid_len &&
976 os_memcmp(bss->ssid, e->ssid, e->ssid_len) == 0)
985 struct wpa_supplicant *wpa_s, struct wpa_bss *bss)
990 ie = wpa_bss_get_ie(bss, WLAN_EID_ROAMING_CONSORTIUM);
993 (bss->anqp == NULL || bss->anqp->roaming_consortium == NULL))
1004 bss->anqp ?
1005 bss->anqp->roaming_consortium :
1011 if (cred_excluded_ssid(cred, bss))
1128 struct wpa_bss *bss, const u8 *ssid_ie)
1133 "roaming consortium match", MAC2STR(bss->bssid));
1176 int interworking_connect(struct wpa_supplicant *wpa_s, struct wpa_bss *bss)
1186 if (wpa_s->conf->cred == NULL || bss == NULL)
1188 ie = wpa_bss_get_ie(bss, WLAN_EID_SSID);
1191 MACSTR, MAC2STR(bss->bssid));
1195 if (!wpa_bss_get_ie(bss, WLAN_EID_RSN)) {
1206 bss);
1209 bss, ie);
1211 realm = nai_realm_parse(bss->anqp ? bss->anqp->nai_realm : NULL,
1215 "Realm list from " MACSTR, MAC2STR(bss->bssid));
1232 if (interworking_connect_3gpp(wpa_s, bss) == 0) {
1240 MAC2STR(bss->bssid));
1246 MAC2STR(bss->bssid));
1343 struct wpa_supplicant *wpa_s, struct wpa_bss *bss)
1349 if (bss->anqp == NULL || bss->anqp->anqp_3gpp == NULL)
1381 MACSTR, MAC2STR(bss->bssid));
1382 ret = plmn_id_match(bss->anqp->anqp_3gpp, imsi, mnc_len);
1385 if (cred_excluded_ssid(cred, bss))
1398 struct wpa_supplicant *wpa_s, struct wpa_bss *bss)
1404 if (bss->anqp == NULL || bss->anqp->nai_realm == NULL)
1411 MACSTR, MAC2STR(bss->bssid));
1412 realm = nai_realm_parse(bss->anqp->nai_realm, &count);
1415 "Realm list from " MACSTR, MAC2STR(bss->bssid));
1427 if (cred_excluded_ssid(cred, bss))
1444 struct wpa_supplicant *wpa_s, struct wpa_bss *bss)
1448 cred = interworking_credentials_available_realm(wpa_s, bss);
1449 cred2 = interworking_credentials_available_3gpp(wpa_s, bss);
1456 bss);
1556 struct wpa_bss *bss;
1559 dl_list_for_each(bss, &wpa_s->bss, struct wpa_bss, list) {
1564 if (ssid->ssid_len != bss->ssid_len ||
1565 os_memcmp(ssid->ssid, bss->ssid, ssid->ssid_len) !=
1582 struct wpa_bss *bss, *selected = NULL, *selected_home = NULL;
1591 dl_list_for_each(bss, &wpa_s->bss, struct wpa_bss, list) {
1592 cred = interworking_credentials_available(wpa_s, bss);
1595 if (!wpa_bss_get_ie(bss, WLAN_EID_RSN)) {
1602 "RSN", MAC2STR(bss->bssid));
1606 res = interworking_home_sp(wpa_s, bss->anqp ?
1607 bss->anqp->domain_name : NULL);
1615 MAC2STR(bss->bssid), type);
1621 selected = bss;
1627 selected_home = bss;
1671 interworking_match_anqp_info(struct wpa_supplicant *wpa_s, struct wpa_bss *bss)
1675 if (is_zero_ether_addr(bss->hessid))
1678 dl_list_for_each(other, &wpa_s->bss, struct wpa_bss, list) {
1679 if (other == bss)
1690 if (os_memcmp(bss->hessid, other->hessid, ETH_ALEN) != 0)
1692 if (bss->ssid_len != other->ssid_len ||
1693 os_memcmp(bss->ssid, other->ssid, bss->ssid_len) != 0)
1698 MAC2STR(other->bssid), MAC2STR(bss->bssid));
1709 struct wpa_bss *bss;
1716 dl_list_for_each(bss, &wpa_s->bss, struct wpa_bss, list) {
1717 if (!(bss->caps & IEEE80211_CAP_ESS))
1719 ie = wpa_bss_get_ie(bss, WLAN_EID_EXT_CAPAB);
1723 if (!(bss->flags & WPA_BSS_ANQP_FETCH_TRIED)) {
1724 if (bss->anqp == NULL) {
1725 bss->anqp = interworking_match_anqp_info(wpa_s,
1726 bss);
1727 if (bss->anqp) {
1731 bss->anqp = wpa_bss_anqp_alloc();
1732 if (bss->anqp == NULL)
1736 bss->flags |= WPA_BSS_ANQP_FETCH_TRIED;
1738 MACSTR, MAC2STR(bss->bssid));
1739 interworking_anqp_send_req(wpa_s, bss);
1755 struct wpa_bss *bss;
1757 dl_list_for_each(bss, &wpa_s->bss, struct wpa_bss, list)
1758 bss->flags &= ~WPA_BSS_ANQP_FETCH_TRIED;
1794 struct wpa_bss *bss;
1798 bss = wpa_bss_get_bssid(wpa_s, dst);
1799 if (bss) {
1800 wpa_bss_anqp_unshare_alloc(bss);
1801 freq = bss->freq;
1831 struct wpa_bss *bss = wpa_bss_get_bssid(wpa_s, sa);
1837 if (bss)
1838 anqp = bss->anqp;
2059 struct wpa_bss *bss;
2065 bss = wpa_bss_get_bssid(wpa_s, dst);
2066 if (bss)
2067 freq = bss->freq;