Lines Matching refs:bss
406 struct wpa_bss_tmp_disallowed *bss, *prev; in free_bss_tmp_disallowed() local
408 dl_list_for_each_safe(bss, prev, &wpa_s->bss_tmp_disallowed, in free_bss_tmp_disallowed()
410 dl_list_del(&bss->list); in free_bss_tmp_disallowed()
411 os_free(bss); in free_bss_tmp_disallowed()
1065 struct wpa_bss *bss, struct wpa_ssid *ssid, in wpa_supplicant_set_suites() argument
1072 if (bss) { in wpa_supplicant_set_suites()
1073 bss_wpa = wpa_bss_get_vendor_ie(bss, WPA_IE_VENDOR_TYPE); in wpa_supplicant_set_suites()
1074 bss_rsn = wpa_bss_get_ie(bss, WLAN_EID_RSN); in wpa_supplicant_set_suites()
1075 bss_osen = wpa_bss_get_vendor_ie(bss, OSEN_IE_VENDOR_TYPE); in wpa_supplicant_set_suites()
1103 } else if (bss) { in wpa_supplicant_set_suites()
1110 MAC2STR(bss->bssid), in wpa_supplicant_set_suites()
1111 wpa_ssid_txt(bss->ssid, bss->ssid_len), in wpa_supplicant_set_suites()
1178 if (bss || !wpa_s->ap_ies_from_associnfo) { in wpa_supplicant_set_suites()
1325 if (bss && ssid->bssid_set && ssid->ssid_len == 0 && in wpa_supplicant_set_suites()
1328 pbkdf2_sha1(ssid->passphrase, bss->ssid, bss->ssid_len, in wpa_supplicant_set_suites()
1362 if (wpabuf_len(pw) >= 8 && wpabuf_len(pw) < 64 && bss) in wpa_supplicant_set_suites()
1364 pbkdf2_sha1(pw_str, bss->ssid, bss->ssid_len, in wpa_supplicant_set_suites()
1496 struct wpa_bss *bss; in wpas_valid_bss() local
1498 dl_list_for_each(bss, &wpa_s->bss, struct wpa_bss, list) { in wpas_valid_bss()
1499 if (bss == test_bss) in wpas_valid_bss()
1628 struct wpa_bss *bss, struct wpa_ssid *ssid) in wpa_supplicant_associate() argument
1654 if (wpa_s->current_bss && wpa_s->current_bss == bss) { in wpa_supplicant_associate()
1697 wpa_s->current_bss = bss; in wpa_supplicant_associate()
1712 if (bss) in wpa_supplicant_associate()
1713 ssid->frequency = bss->freq; in wpa_supplicant_associate()
1718 wpa_s->current_bss = bss; in wpa_supplicant_associate()
1730 if (bss) in wpa_supplicant_associate()
1731 wpa_tdls_ap_ies(wpa_s->wpa, (const u8 *) (bss + 1), in wpa_supplicant_associate()
1732 bss->ie_len); in wpa_supplicant_associate()
1737 sme_authenticate(wpa_s, bss, ssid); in wpa_supplicant_associate()
1757 cwork->bss = bss; in wpa_supplicant_associate()
1760 if (radio_add_work(wpa_s, bss ? bss->freq : 0, "connect", 1, in wpa_supplicant_associate()
1767 static int bss_is_ibss(struct wpa_bss *bss) in bss_is_ibss() argument
1769 return (bss->caps & (IEEE80211_CAP_ESS | IEEE80211_CAP_IBSS)) == in bss_is_ibss()
1824 struct wpa_bss *bss = wpa_s->last_scan_res[j]; in ibss_mesh_setup_freq() local
1833 if (!bss_is_ibss(bss)) in ibss_mesh_setup_freq()
1836 if (ssid->ssid_len == bss->ssid_len && in ibss_mesh_setup_freq()
1837 os_memcmp(ssid->ssid, bss->ssid, bss->ssid_len) == 0) { in ibss_mesh_setup_freq()
1840 bss->freq); in ibss_mesh_setup_freq()
1841 freq->freq = bss->freq; in ibss_mesh_setup_freq()
2056 struct wpa_bss *bss = cwork->bss; in wpas_start_assoc_cb() local
2095 if (cwork->bss_removed || !wpas_valid_bss_ssid(wpa_s, bss, ssid) || in wpas_start_assoc_cb()
2106 if (bss && in wpas_start_assoc_cb()
2112 " (SSID='%s' freq=%d MHz)", MAC2STR(bss->bssid), in wpas_start_assoc_cb()
2113 wpa_ssid_txt(bss->ssid, bss->ssid_len), bss->freq); in wpas_start_assoc_cb()
2116 os_memcpy(wpa_s->pending_bssid, bss->bssid, ETH_ALEN); in wpas_start_assoc_cb()
2120 ie = wpa_bss_get_ie(bss, WLAN_EID_MOBILITY_DOMAIN); in wpas_start_assoc_cb()
2172 if (bss && (wpa_bss_get_vendor_ie(bss, WPA_IE_VENDOR_TYPE) || in wpas_start_assoc_cb()
2173 wpa_bss_get_ie(bss, WLAN_EID_RSN)) && in wpas_start_assoc_cb()
2180 if (pmksa_cache_set_current(wpa_s->wpa, NULL, bss->bssid, in wpas_start_assoc_cb()
2184 if (wpa_supplicant_set_suites(wpa_s, bss, ssid, in wpas_start_assoc_cb()
2191 } else if ((ssid->key_mgmt & WPA_KEY_MGMT_IEEE8021X_NO_WPA) && bss && in wpas_start_assoc_cb()
2222 if (!bss || (bss->caps & IEEE80211_CAP_PRIVACY)) in wpas_start_assoc_cb()
2241 res = wpas_p2p_assoc_req_ie(wpa_s, bss, pos, len, in wpas_start_assoc_cb()
2248 if (bss) { in wpas_start_assoc_cb()
2250 p2p = wpa_bss_get_vendor_ie_multi(bss, P2P_IE_VENDOR_TYPE); in wpas_start_assoc_cb()
2266 if (bss) { in wpas_start_assoc_cb()
2267 mbo = wpa_bss_get_vendor_ie(bss, MBO_IE_VENDOR_TYPE); in wpas_start_assoc_cb()
2271 len = wpas_mbo_supp_op_class_ie(wpa_s, bss->freq, in wpas_start_assoc_cb()
2289 if (!bss || wpa_bss_get_ie(bss, WLAN_EID_EXT_CAPAB)) { in wpas_start_assoc_cb()
2306 if (is_hs20_network(wpa_s, ssid, bss)) { in wpas_start_assoc_cb()
2361 wpa_clear_keys(wpa_s, bss ? bss->bssid : NULL); in wpas_start_assoc_cb()
2399 if (bss) { in wpas_start_assoc_cb()
2400 params.ssid = bss->ssid; in wpas_start_assoc_cb()
2401 params.ssid_len = bss->ssid_len; in wpas_start_assoc_cb()
2406 MAC2STR(bss->bssid), bss->freq, in wpas_start_assoc_cb()
2408 params.bssid = bss->bssid; in wpas_start_assoc_cb()
2409 params.freq.freq = bss->freq; in wpas_start_assoc_cb()
2411 params.bssid_hint = bss->bssid; in wpas_start_assoc_cb()
2412 params.freq_hint = bss->freq; in wpas_start_assoc_cb()
2413 params.pbss = bss_is_pbss(bss); in wpas_start_assoc_cb()
2485 if (params.mgmt_frame_protection != NO_MGMT_FRAME_PROTECTION && bss) { in wpas_start_assoc_cb()
2486 const u8 *rsn = wpa_bss_get_ie(bss, WLAN_EID_RSN); in wpas_start_assoc_cb()
2615 wpa_s->current_bss = bss; in wpas_start_assoc_cb()
5521 struct wpa_bss *bss, *cbss; in get_bss_freqs_in_ess() local
5532 dl_list_for_each(bss, &wpa_s->bss, struct wpa_bss, list) { in get_bss_freqs_in_ess()
5533 if (bss == cbss) in get_bss_freqs_in_ess()
5535 if (bss->ssid_len == cbss->ssid_len && in get_bss_freqs_in_ess()
5536 os_memcmp(bss->ssid, cbss->ssid, bss->ssid_len) == 0 && in get_bss_freqs_in_ess()
5537 wpa_blacklist_get(wpa_s, bss->bssid) == NULL) { in get_bss_freqs_in_ess()
5538 add_freq(freqs, &num_freqs, bss->freq); in get_bss_freqs_in_ess()
6436 struct wpa_bss_tmp_disallowed *bss; in wpas_get_disallowed_bss() local
6438 dl_list_for_each(bss, &wpa_s->bss_tmp_disallowed, in wpas_get_disallowed_bss()
6440 if (os_memcmp(bssid, bss->bssid, ETH_ALEN) == 0) in wpas_get_disallowed_bss()
6441 return bss; in wpas_get_disallowed_bss()
6451 struct wpa_bss_tmp_disallowed *bss; in wpa_bss_tmp_disallow() local
6457 bss = wpas_get_disallowed_bss(wpa_s, bssid); in wpa_bss_tmp_disallow()
6458 if (bss) { in wpa_bss_tmp_disallow()
6459 bss->disallowed_until = until; in wpa_bss_tmp_disallow()
6463 bss = os_malloc(sizeof(*bss)); in wpa_bss_tmp_disallow()
6464 if (!bss) { in wpa_bss_tmp_disallow()
6470 bss->disallowed_until = until; in wpa_bss_tmp_disallow()
6471 os_memcpy(bss->bssid, bssid, ETH_ALEN); in wpa_bss_tmp_disallow()
6472 dl_list_add(&wpa_s->bss_tmp_disallowed, &bss->list); in wpa_bss_tmp_disallow()
6478 struct wpa_bss_tmp_disallowed *bss = NULL, *tmp, *prev; in wpa_is_bss_tmp_disallowed() local
6492 bss = tmp; in wpa_is_bss_tmp_disallowed()
6496 if (!bss) in wpa_is_bss_tmp_disallowed()
6499 os_reltime_sub(&bss->disallowed_until, &now, &age); in wpa_is_bss_tmp_disallowed()
6502 MAC2STR(bss->bssid), age.sec, age.usec); in wpa_is_bss_tmp_disallowed()