Lines Matching refs:bss

430 	struct wpa_bss *bss = wpa_s->current_bss;  in wnm_nei_get_chan()  local
434 if (bss) { in wnm_nei_get_chan()
435 const u8 *elem = wpa_bss_get_ie(bss, WLAN_EID_COUNTRY); in wnm_nei_get_chan()
506 struct wpa_bss *bss = wpa_s->current_bss; in compare_scan_neighbor_results() local
509 if (!bss) in compare_scan_neighbor_results()
513 MAC2STR(wpa_s->bssid), bss->level); in compare_scan_neighbor_results()
535 if (bss->ssid_len != target->ssid_len || in compare_scan_neighbor_results()
536 os_memcmp(bss->ssid, target->ssid, bss->ssid_len) != 0) { in compare_scan_neighbor_results()
568 if (target->level < bss->level && target->level < -80) { in compare_scan_neighbor_results()
606 static u32 wnm_get_bss_info(struct wpa_supplicant *wpa_s, struct wpa_bss *bss) in wnm_get_bss_info() argument
617 if (bss->caps & WLAN_CAPABILITY_SPECTRUM_MGMT) in wnm_get_bss_info()
619 if (bss->caps & WLAN_CAPABILITY_QOS) in wnm_get_bss_info()
621 if (bss->caps & WLAN_CAPABILITY_APSD) in wnm_get_bss_info()
623 if (bss->caps & WLAN_CAPABILITY_RADIO_MEASUREMENT) in wnm_get_bss_info()
625 if (bss->caps & WLAN_CAPABILITY_DELAYED_BLOCK_ACK) in wnm_get_bss_info()
627 if (bss->caps & WLAN_CAPABILITY_IMM_BLOCK_ACK) in wnm_get_bss_info()
629 if (wpa_bss_ies_eq(bss, wpa_s->current_bss, WLAN_EID_MOBILITY_DOMAIN)) in wnm_get_bss_info()
631 if (wpa_bss_ies_eq(bss, wpa_s->current_bss, WLAN_EID_HT_CAP)) in wnm_get_bss_info()
667 struct wpa_bss *bss, u8 *buf, size_t len, in wnm_nei_rep_add_bss() argument
678 ie = wpa_bss_get_ie(bss, WLAN_EID_HT_OPERATION); in wnm_nei_rep_add_bss()
689 ie = wpa_bss_get_ie(bss, WLAN_EID_VHT_OPERATION); in wnm_nei_rep_add_bss()
699 if (ieee80211_freq_to_channel_ext(bss->freq, sec_chan, vht, &op_class, in wnm_nei_rep_add_bss()
706 phy_type = ieee80211_get_phy_type(bss->freq, (ht_oper != NULL), in wnm_nei_rep_add_bss()
714 info = wnm_get_bss_info(wpa_s, bss); in wnm_nei_rep_add_bss()
716 return wnm_add_nei_rep(buf, len, bss->bssid, info, op_class, chan, in wnm_nei_rep_add_bss()
742 struct wpa_bss *bss = wpa_s->last_scan_res[i]; in wnm_add_cand_list() local
745 if (wpa_scan_res_match(wpa_s, i, bss, ssid, 1)) { in wnm_add_cand_list()
746 res = wnm_nei_rep_add_bss(wpa_s, bss, pos, len, pref--); in wnm_add_cand_list()
837 struct wpa_bss *bss; in wnm_scan_process() local
859 bss = compare_scan_neighbor_results(wpa_s); in wnm_scan_process()
860 if (!bss) { in wnm_scan_process()
873 0, bss->bssid); in wnm_scan_process()
876 if (bss == wpa_s->current_bss) { in wnm_scan_process()
884 wpa_supplicant_connect(wpa_s, bss, ssid); in wnm_scan_process()