Lines Matching refs:bss

133 	struct wpa_bss *bss = NULL;  in wpa_supplicant_get_new_bss()  local
137 bss = wpa_bss_get(wpa_s, bssid, ssid->ssid, ssid->ssid_len); in wpa_supplicant_get_new_bss()
138 if (!bss) in wpa_supplicant_get_new_bss()
139 bss = wpa_bss_get_bssid(wpa_s, bssid); in wpa_supplicant_get_new_bss()
141 return bss; in wpa_supplicant_get_new_bss()
147 struct wpa_bss *bss = wpa_supplicant_get_new_bss(wpa_s, wpa_s->bssid); in wpa_supplicant_update_current_bss() local
149 if (!bss) { in wpa_supplicant_update_current_bss()
153 bss = wpa_supplicant_get_new_bss(wpa_s, wpa_s->bssid); in wpa_supplicant_update_current_bss()
156 if (bss) in wpa_supplicant_update_current_bss()
157 wpa_s->current_bss = bss; in wpa_supplicant_update_current_bss()
464 static int wpa_supplicant_match_privacy(struct wpa_bss *bss, in wpa_supplicant_match_privacy() argument
493 if (bss->caps & IEEE80211_CAP_PRIVACY) in wpa_supplicant_match_privacy()
501 struct wpa_bss *bss) in wpa_supplicant_ssid_bss_match() argument
509 ret = wpas_wps_ssid_bss_match(wpa_s, ssid, bss); in wpa_supplicant_ssid_bss_match()
519 rsn_ie = wpa_bss_get_ie(bss, WLAN_EID_RSN); in wpa_supplicant_ssid_bss_match()
579 wpas_mbo_get_bss_attr(bss, MBO_ATTR_ID_AP_CAPA_IND) && in wpa_supplicant_ssid_bss_match()
592 wpa_ie = wpa_bss_get_vendor_ie(bss, WPA_IE_VENDOR_TYPE); in wpa_supplicant_ssid_bss_match()
651 wpa_bss_get_vendor_ie(bss, OSEN_IE_VENDOR_TYPE)) { in wpa_supplicant_ssid_bss_match()
682 static int rate_match(struct wpa_supplicant *wpa_s, struct wpa_bss *bss) in rate_match() argument
689 if (bss->freq == 0) in rate_match()
705 if (freq == bss->freq) { in rate_match()
720 rate_ie = wpa_bss_get_ie(bss, scan_ie[i]); in rate_match()
776 bss->freq, mode->mode, mode->num_rates); in rate_match()
790 static int bss_is_ess(struct wpa_bss *bss) in bss_is_ess() argument
792 if (bss_is_dmg(bss)) { in bss_is_ess()
793 return (bss->caps & IEEE80211_CAP_DMG_MASK) == in bss_is_ess()
797 return ((bss->caps & (IEEE80211_CAP_ESS | IEEE80211_CAP_IBSS)) == in bss_is_ess()
830 int i, struct wpa_bss *bss, in wpa_scan_res_match() argument
844 ie = wpa_bss_get_vendor_ie(bss, WPA_IE_VENDOR_TYPE); in wpa_scan_res_match()
847 ie = wpa_bss_get_ie(bss, WLAN_EID_RSN); in wpa_scan_res_match()
850 ie = wpa_bss_get_vendor_ie(bss, OSEN_IE_VENDOR_TYPE); in wpa_scan_res_match()
855 i, MAC2STR(bss->bssid), wpa_ssid_txt(bss->ssid, bss->ssid_len), in wpa_scan_res_match()
856 wpa_ie_len, rsn_ie_len, bss->caps, bss->level, bss->freq, in wpa_scan_res_match()
857 wpa_bss_get_vendor_ie(bss, WPS_IE_VENDOR_TYPE) ? " wps" : "", in wpa_scan_res_match()
858 (wpa_bss_get_vendor_ie(bss, P2P_IE_VENDOR_TYPE) || in wpa_scan_res_match()
859 wpa_bss_get_vendor_ie_beacon(bss, P2P_IE_VENDOR_TYPE)) ? in wpa_scan_res_match()
863 e = wpa_blacklist_get(wpa_s, bss->bssid); in wpa_scan_res_match()
884 if (bss->ssid_len == 0) { in wpa_scan_res_match()
889 if (disallowed_bssid(wpa_s, bss->bssid)) { in wpa_scan_res_match()
894 if (disallowed_ssid(wpa_s, bss->ssid, bss->ssid_len)) { in wpa_scan_res_match()
925 wpas_wps_ssid_wildcard_ok(wpa_s, ssid, bss)) in wpa_scan_res_match()
934 wpas_wps_ssid_wildcard_ok(wpa_s, ssid, bss)) in wpa_scan_res_match()
940 os_memcmp(bss->bssid, ssid->bssid, ETH_ALEN) == 0) in wpa_scan_res_match()
944 (bss->ssid_len != ssid->ssid_len || in wpa_scan_res_match()
945 os_memcmp(bss->ssid, ssid->ssid, bss->ssid_len) != 0)) { in wpa_scan_res_match()
951 os_memcmp(bss->bssid, ssid->bssid, ETH_ALEN) != 0) { in wpa_scan_res_match()
958 addr_in_list(bss->bssid, ssid->bssid_blacklist, in wpa_scan_res_match()
967 !addr_in_list(bss->bssid, ssid->bssid_whitelist, in wpa_scan_res_match()
974 if (!wpa_supplicant_ssid_bss_match(wpa_s, ssid, bss)) in wpa_scan_res_match()
998 if (!wpa_supplicant_match_privacy(bss, ssid)) { in wpa_scan_res_match()
1004 if (!bss_is_ess(bss) && !bss_is_pbss(bss)) { in wpa_scan_res_match()
1009 if (ssid->pbss != bss_is_pbss(bss)) { in wpa_scan_res_match()
1011 ssid->pbss, bss_is_pbss(bss)); in wpa_scan_res_match()
1015 if (!freq_allowed(ssid->freq_list, bss->freq)) { in wpa_scan_res_match()
1021 if (!rate_match(wpa_s, bss)) { in wpa_scan_res_match()
1029 !wpa_bss_get_vendor_ie(bss, P2P_IE_VENDOR_TYPE) && in wpa_scan_res_match()
1030 !wpa_bss_get_vendor_ie_beacon(bss, P2P_IE_VENDOR_TYPE)) { in wpa_scan_res_match()
1039 ie = wpa_bss_get_vendor_ie(bss, P2P_IE_VENDOR_TYPE); in wpa_scan_res_match()
1045 bss, P2P_IE_VENDOR_TYPE); in wpa_scan_res_match()
1068 if (os_reltime_before(&bss->last_update, &wpa_s->scan_min_time)) in wpa_scan_res_match()
1073 &bss->last_update, &diff); in wpa_scan_res_match()
1082 bss, MBO_ATTR_ID_ASSOC_DISALLOW); in wpa_scan_res_match()
1090 if (wpa_is_bss_tmp_disallowed(wpa_s, bss->bssid)) { in wpa_scan_res_match()
1122 struct wpa_bss *bss = wpa_s->last_scan_res[i]; in wpa_supplicant_select_bss() local
1123 *selected_ssid = wpa_scan_res_match(wpa_s, i, bss, group, in wpa_supplicant_select_bss()
1129 MAC2STR(bss->bssid), in wpa_supplicant_select_bss()
1130 wpa_ssid_txt(bss->ssid, bss->ssid_len)); in wpa_supplicant_select_bss()
1131 return bss; in wpa_supplicant_select_bss()
1320 struct wpa_bss *bss; in wpa_supplicant_rsn_preauth_scan_results() local
1325 dl_list_for_each(bss, &wpa_s->bss, struct wpa_bss, list) { in wpa_supplicant_rsn_preauth_scan_results()
1328 ssid = wpa_bss_get_ie(bss, WLAN_EID_SSID); in wpa_supplicant_rsn_preauth_scan_results()
1332 rsn = wpa_bss_get_ie(bss, WLAN_EID_RSN); in wpa_supplicant_rsn_preauth_scan_results()
1336 rsn_preauth_scan_result(wpa_s->wpa, bss->bssid, ssid, rsn); in wpa_supplicant_rsn_preauth_scan_results()
2175 struct wpa_bss *bss = wpa_s->current_bss; in wpas_fst_update_mb_assoc() local
2195 if (!bss) in wpas_fst_update_mb_assoc()
2198 ieprb = (const u8 *) (bss + 1); in wpas_fst_update_mb_assoc()
2199 iebcn = ieprb + bss->ie_len; in wpas_fst_update_mb_assoc()
2201 if (!wpas_fst_update_mbie(wpa_s, ieprb, bss->ie_len)) in wpas_fst_update_mb_assoc()
2203 else if (!wpas_fst_update_mbie(wpa_s, iebcn, bss->beacon_ie_len)) in wpas_fst_update_mb_assoc()
2220 hostapd_notif_assoc(wpa_s->ap_iface->bss[0],
2953 struct wpa_bss *bss; local
2954 bss = wpa_bss_get_bssid(wpa_s, target_ap_addr);
2955 if (bss)
2956 wpa_s->sme.freq = bss->freq;
2998 hostapd_notif_disassoc(wpa_s->ap_iface->bss[0], addr);
3066 hostapd_notif_disassoc(wpa_s->ap_iface->bss[0], info->addr);
3782 hostapd_probe_req_rx(wpa_s->ap_iface->bss[0],
3942 hostapd_event_sta_low_ack(wpa_s->ap_iface->bss[0],
4000 wpa_s->ap_iface->bss[0],
4026 hostapd_acs_channel_selected(wpa_s->ap_iface->bss[0],