Lines Matching refs:bss
358 struct wpa_bss *bss; in wpa_supplicant_ctrl_iface_ft_ds() local
369 bss = wpa_bss_get_bssid(wpa_s, target_ap); in wpa_supplicant_ctrl_iface_ft_ds()
370 if (bss) in wpa_supplicant_ctrl_iface_ft_ds()
371 mdie = wpa_bss_get_ie(bss, WLAN_EID_MOBILITY_DOMAIN); in wpa_supplicant_ctrl_iface_ft_ds()
1444 const struct wpa_bss *bss) in wpa_supplicant_wps_ie_txt() argument
1448 wps_ie = wpa_bss_get_vendor_ie_multi(bss, WPS_IE_VENDOR_TYPE); in wpa_supplicant_wps_ie_txt()
1459 const struct wpa_bss *bss, char *buf, size_t buflen) in wpa_supplicant_ctrl_iface_scan_result() argument
1465 p2p = wpa_bss_get_vendor_ie(bss, P2P_IE_VENDOR_TYPE); in wpa_supplicant_ctrl_iface_scan_result()
1466 if (p2p && bss->ssid_len == P2P_WILDCARD_SSID_LEN && in wpa_supplicant_ctrl_iface_scan_result()
1467 os_memcmp(bss->ssid, P2P_WILDCARD_SSID, P2P_WILDCARD_SSID_LEN) == in wpa_supplicant_ctrl_iface_scan_result()
1475 MAC2STR(bss->bssid), bss->freq, bss->level); in wpa_supplicant_ctrl_iface_scan_result()
1479 ie = wpa_bss_get_vendor_ie(bss, WPA_IE_VENDOR_TYPE); in wpa_supplicant_ctrl_iface_scan_result()
1482 ie2 = wpa_bss_get_ie(bss, WLAN_EID_RSN); in wpa_supplicant_ctrl_iface_scan_result()
1485 pos = wpa_supplicant_wps_ie_txt(wpa_s, pos, end, bss); in wpa_supplicant_ctrl_iface_scan_result()
1486 if (!ie && !ie2 && bss->caps & IEEE80211_CAP_PRIVACY) { in wpa_supplicant_ctrl_iface_scan_result()
1492 if (bss->caps & IEEE80211_CAP_IBSS) { in wpa_supplicant_ctrl_iface_scan_result()
1498 if (bss->caps & IEEE80211_CAP_ESS) { in wpa_supplicant_ctrl_iface_scan_result()
1512 wpa_ssid_txt(bss->ssid, bss->ssid_len)); in wpa_supplicant_ctrl_iface_scan_result()
1530 struct wpa_bss *bss; in wpa_supplicant_ctrl_iface_scan_results() local
1541 dl_list_for_each(bss, &wpa_s->bss_id, struct wpa_bss, list_id) { in wpa_supplicant_ctrl_iface_scan_results()
1542 ret = wpa_supplicant_ctrl_iface_scan_result(wpa_s, bss, pos, in wpa_supplicant_ctrl_iface_scan_results()
2202 static int print_bss_info(struct wpa_supplicant *wpa_s, struct wpa_bss *bss, in print_bss_info() argument
2216 ret = os_snprintf(pos, end - pos, "id=%u\n", bss->id); in print_bss_info()
2224 MAC2STR(bss->bssid)); in print_bss_info()
2231 ret = os_snprintf(pos, end - pos, "freq=%d\n", bss->freq); in print_bss_info()
2239 bss->beacon_int); in print_bss_info()
2247 bss->caps); in print_bss_info()
2254 ret = os_snprintf(pos, end - pos, "qual=%d\n", bss->qual); in print_bss_info()
2261 ret = os_snprintf(pos, end - pos, "noise=%d\n", bss->noise); in print_bss_info()
2268 ret = os_snprintf(pos, end - pos, "level=%d\n", bss->level); in print_bss_info()
2276 (unsigned long long) bss->tsf); in print_bss_info()
2284 (int) (now.sec - bss->last_update.sec)); in print_bss_info()
2296 ie = (const u8 *) (bss + 1); in print_bss_info()
2297 for (i = 0; i < bss->ie_len; i++) { in print_bss_info()
2316 ie = wpa_bss_get_vendor_ie(bss, WPA_IE_VENDOR_TYPE); in print_bss_info()
2320 ie2 = wpa_bss_get_ie(bss, WLAN_EID_RSN); in print_bss_info()
2324 pos = wpa_supplicant_wps_ie_txt(wpa_s, pos, end, bss); in print_bss_info()
2325 if (!ie && !ie2 && bss->caps & IEEE80211_CAP_PRIVACY) { in print_bss_info()
2331 if (bss->caps & IEEE80211_CAP_IBSS) { in print_bss_info()
2337 if (bss->caps & IEEE80211_CAP_ESS) { in print_bss_info()
2343 if (wpa_bss_get_vendor_ie(bss, P2P_IE_VENDOR_TYPE)) { in print_bss_info()
2358 wpa_ssid_txt(bss->ssid, bss->ssid_len)); in print_bss_info()
2366 ie = (const u8 *) (bss + 1); in print_bss_info()
2367 ret = wpas_wps_scan_result_text(ie, bss->ie_len, pos, end); in print_bss_info()
2376 ie = (const u8 *) (bss + 1); in print_bss_info()
2377 ret = wpas_p2p_scan_result_text(ie, bss->ie_len, pos, end); in print_bss_info()
2387 bss->anqp_venue_name); in print_bss_info()
2389 bss->anqp_network_auth_type); in print_bss_info()
2391 bss->anqp_roaming_consortium); in print_bss_info()
2393 bss->anqp_ip_addr_type_availability); in print_bss_info()
2395 bss->anqp_nai_realm); in print_bss_info()
2396 pos = anqp_add_hex(pos, end, "anqp_3gpp", bss->anqp_3gpp); in print_bss_info()
2398 bss->anqp_domain_name); in print_bss_info()
2411 struct wpa_bss *bss = NULL; in wpa_supplicant_ctrl_iface_bss() local
2421 bss = dl_list_first(&wpa_s->bss_id, struct wpa_bss, in wpa_supplicant_ctrl_iface_bss()
2429 bss = wpa_bss_get_id(wpa_s, id1); in wpa_supplicant_ctrl_iface_bss()
2448 bss = dl_list_first(&wpa_s->bss, struct wpa_bss, list); in wpa_supplicant_ctrl_iface_bss()
2451 bss = wpa_bss_get_id(wpa_s, i); in wpa_supplicant_ctrl_iface_bss()
2454 bss = wpa_bss_get_id(wpa_s, i); in wpa_supplicant_ctrl_iface_bss()
2455 if (bss) { in wpa_supplicant_ctrl_iface_bss()
2456 next = bss->list_id.next; in wpa_supplicant_ctrl_iface_bss()
2458 bss = NULL; in wpa_supplicant_ctrl_iface_bss()
2460 bss = dl_list_entry(next, struct wpa_bss, in wpa_supplicant_ctrl_iface_bss()
2466 bss = wpa_bss_get_p2p_dev_addr(wpa_s, bssid); in wpa_supplicant_ctrl_iface_bss()
2468 bss = NULL; in wpa_supplicant_ctrl_iface_bss()
2471 bss = wpa_bss_get_bssid(wpa_s, bssid); in wpa_supplicant_ctrl_iface_bss()
2475 bss = NULL; in wpa_supplicant_ctrl_iface_bss()
2479 bss = tmp; in wpa_supplicant_ctrl_iface_bss()
2485 if (bss == NULL) in wpa_supplicant_ctrl_iface_bss()
2489 bsslast = bss; in wpa_supplicant_ctrl_iface_bss()
2491 len = print_bss_info(wpa_s, bss, mask, buf, buflen); in wpa_supplicant_ctrl_iface_bss()
2495 if (bss == bsslast) in wpa_supplicant_ctrl_iface_bss()
2497 next = bss->list_id.next; in wpa_supplicant_ctrl_iface_bss()
2500 bss = dl_list_entry(next, struct wpa_bss, list_id); in wpa_supplicant_ctrl_iface_bss()
2501 } while (bss && len); in wpa_supplicant_ctrl_iface_bss()
2572 struct wpa_bss *bss; in wpa_supplicant_ctrl_iface_roam()
2583 bss = wpa_bss_get_bssid(wpa_s, bssid); in wpa_supplicant_ctrl_iface_roam()
2584 if (!bss) { in wpa_supplicant_ctrl_iface_roam()
2602 wpa_supplicant_connect(wpa_s, bss, ssid); in wpa_supplicant_ctrl_iface_roam()
3454 struct wpa_bss *bss; in ctrl_interworking_connect() local
3461 bss = wpa_bss_get_bssid(wpa_s, bssid); in ctrl_interworking_connect()
3462 if (bss == NULL) { in ctrl_interworking_connect()
3468 return interworking_connect(wpa_s, bss); in ctrl_interworking_connect()