Home | History | Annotate | Download | only in wpa_supplicant

Lines Matching refs:bss

725  * @bss: Scan results for the selected BSS, or %NULL if not available
733 * based on the network configuration and scan result for the selected BSS (if
737 struct wpa_scan_res *bss,
745 if (bss) {
746 bss_wpa = wpa_scan_get_vendor_ie(bss, WPA_IE_VENDOR_TYPE);
747 bss_rsn = wpa_scan_get_ie(bss, WLAN_EID_RSN);
765 } else if (bss) {
803 if (bss || !wpa_s->ap_ies_from_associnfo) {
920 * @bss: Scan results for the selected BSS, or %NULL if not available
923 * This function is used to request %wpa_supplicant to associate with a BSS.
926 struct wpa_scan_res *bss, struct wpa_ssid *ssid)
939 if (bss) {
943 const u8 *ie = wpa_scan_get_ie(bss, WLAN_EID_SSID);
945 " (SSID='%s' freq=%d MHz)", MAC2STR(bss->bssid),
946 ie ? wpa_ssid_txt(ie + 2, ie[1]) : "", bss->freq);
948 os_memcpy(wpa_s->pending_bssid, bss->bssid, ETH_ALEN);
949 wpa_s->link_speed = wpa_scan_get_max_rate(bss) * 500000;
950 wpa_s->rssi = bss->level;
952 ie = wpa_scan_get_ie(bss, WLAN_EID_MOBILITY_DOMAIN);
1012 if (bss && (wpa_scan_get_vendor_ie(bss, WPA_IE_VENDOR_TYPE) ||
1013 wpa_scan_get_ie(bss, WLAN_EID_RSN)) &&
1022 if (pmksa_cache_set_current(wpa_s->wpa, NULL, bss->bssid,
1027 if (wpa_supplicant_set_suites(wpa_s, bss, ssid,
1063 wpa_clear_keys(wpa_s, bss ? bss->bssid : NULL);
1103 if (bss) {
1104 const u8 *ie = wpa_scan_get_ie(bss, WLAN_EID_SSID);
1105 params.bssid = bss->bssid;
1108 params.freq = bss->freq;
1149 if (ssid->ieee80211w != NO_IEEE80211W && bss) {
1150 const u8 *rsn = wpa_scan_get_ie(bss, WLAN_EID_RSN);
1315 struct wpa_scan_result *bss = &results[i];
1320 ie_len = 2 + bss->ssid_len + bss->rsn_ie_len + bss->wpa_ie_len;
1321 if (bss->maxrate)
1323 if (bss->mdie_present)
1330 os_memcpy(r->bssid, bss->bssid, ETH_ALEN);
1331 r->freq = bss->freq;
1332 r->caps = bss->caps;
1333 r->qual = bss->qual;
1334 r->noise = bss->noise;
1335 r->level = bss->level;
1336 r->tsf = bss->tsf;
1343 *pos++ = bss->ssid_len;
1344 os_memcpy(pos, bss->ssid, bss->ssid_len);
1345 pos += bss->ssid_len;
1347 if (bss->maxrate) {
1351 *pos++ = bss->maxrate;
1354 if (bss->rsn_ie_len) {
1355 os_memcpy(pos, bss->rsn_ie, bss->rsn_ie_len);
1356 pos += bss->rsn_ie_len;
1359 if (bss->mdie_present) {
1360 os_memcpy(pos, bss->mdie, 5);
1364 if (bss->wpa_ie_len) {
1365 os_memcpy(pos, bss->wpa_ie, bss->wpa_ie_len);
1366 pos += bss->wpa_ie_len;