Lines Matching defs:bss
35 #include "bss.h"
139 struct wpa_bss *bss;
150 bss = wpa_bss_get_bssid(wpa_s, target_ap);
151 if (bss)
152 mdie = wpa_bss_get_ie(bss, WLAN_EID_MOBILITY_DOMAIN);
802 const struct wpa_bss *bss)
806 wps_ie = wpa_bss_get_vendor_ie_multi(bss, WPS_IE_VENDOR_TYPE);
816 const struct wpa_bss *bss, char *buf, size_t buflen)
826 MAC2STR(bss->bssid), bss->freq, bss->level);
830 ie = wpa_bss_get_vendor_ie(bss, WPA_IE_VENDOR_TYPE);
833 ie2 = wpa_bss_get_ie(bss, WLAN_EID_RSN);
836 pos = wpa_supplicant_wps_ie_txt(pos, end, bss);
837 if (!ie && !ie2 && bss->caps & IEEE80211_CAP_PRIVACY) {
843 if (bss->caps & IEEE80211_CAP_IBSS) {
849 if (bss->caps & IEEE80211_CAP_ESS) {
857 wpa_ssid_txt(bss->ssid, bss->ssid_len));
875 struct wpa_bss *bss;
886 dl_list_for_each(bss, &wpa_s->bss_id, struct wpa_bss, list_id) {
887 ret = wpa_supplicant_ctrl_iface_scan_result(bss, pos,
1491 struct wpa_bss *bss;
1497 bss = dl_list_first(&wpa_s->bss, struct wpa_bss, list);
1500 bss = wpa_bss_get_id(wpa_s, i);
1503 bss = wpa_bss_get_id(wpa_s, i);
1504 if (bss) {
1505 struct dl_list *next = bss->list_id.next;
1507 bss = NULL;
1509 bss = dl_list_entry(next, struct wpa_bss,
1513 bss = wpa_bss_get_bssid(wpa_s, bssid);
1517 bss = NULL;
1521 bss = tmp;
1527 if (bss == NULL)
1543 bss->id,
1544 MAC2STR(bss->bssid), bss->freq, bss->beacon_int,
1545 bss->caps, bss->qual, bss->noise, bss->level,
1546 (unsigned long long) bss->tsf);
1551 ie = (const u8 *) (bss + 1);
1552 for (i = 0; i < bss->ie_len; i++) {
1569 ie = wpa_bss_get_vendor_ie(bss, WPA_IE_VENDOR_TYPE);
1572 ie2 = wpa_bss_get_ie(bss, WLAN_EID_RSN);
1575 pos = wpa_supplicant_wps_ie_txt(pos, end, bss);
1576 if (!ie && !ie2 && bss->caps & IEEE80211_CAP_PRIVACY) {
1582 if (bss->caps & IEEE80211_CAP_IBSS) {
1588 if (bss->caps & IEEE80211_CAP_ESS) {
1601 wpa_ssid_txt(bss->ssid, bss->ssid_len));
1607 ie = (const u8 *) (bss + 1);
1608 ret = wpas_wps_scan_result_text(ie, bss->ie_len, pos, end);
1655 struct wpa_bss *bss;
1666 bss = wpa_bss_get_bssid(wpa_s, bssid);
1667 if (!bss) {
1685 wpa_supplicant_connect(wpa_s, bss, ssid);