Lines Matching refs:bssid
90 const u8 *bssid = wpa_s->bssid; in wpas_wps_eapol_cb() local
91 if (is_zero_ether_addr(bssid)) in wpas_wps_eapol_cb()
92 bssid = wpa_s->pending_bssid; in wpas_wps_eapol_cb()
96 "suitable AP", MAC2STR(bssid)); in wpas_wps_eapol_cb()
97 wpa_blacklist_add(wpa_s, bssid); in wpas_wps_eapol_cb()
207 bss = wpa_bss_get(wpa_s, wpa_s->bssid, in wpas_wps_security_workaround()
283 if (os_memcmp(ssid->bssid, new_ssid->bssid, ETH_ALEN) != in wpas_wps_remove_dup_network()
730 wpas_p2p_wps_success(wpa_s, wpa_s->bssid, 0); in wpa_supplicant_wps_event_success()
1005 const u8 *bssid) in wpas_wps_add_network() argument
1030 if (bssid) { in wpas_wps_add_network()
1036 os_memcpy(ssid->bssid, bssid, ETH_ALEN); in wpas_wps_add_network()
1046 if (os_memcmp(bssid, bss->bssid, ETH_ALEN) != 0) in wpas_wps_add_network()
1111 struct wpa_ssid *selected, const u8 *bssid, in wpas_wps_reassoc() argument
1124 } else if (bssid) { in wpas_wps_reassoc()
1125 bss = wpa_bss_get_bssid_latest(wpa_s, bssid); in wpas_wps_reassoc()
1146 int wpas_wps_start_pbc(struct wpa_supplicant *wpa_s, const u8 *bssid, in wpas_wps_start_pbc() argument
1160 ssid = wpas_wps_add_network(wpa_s, 0, NULL, bssid); in wpas_wps_start_pbc()
1199 wpas_wps_reassoc(wpa_s, ssid, bssid, 0); in wpas_wps_start_pbc()
1205 const u8 *dev_addr, const u8 *bssid, in wpas_wps_start_dev_pw() argument
1223 if (bssid && is_zero_ether_addr(bssid)) in wpas_wps_start_dev_pw()
1224 bssid = NULL; in wpas_wps_start_dev_pw()
1225 ssid = wpas_wps_add_network(wpa_s, 0, dev_addr, bssid); in wpas_wps_start_dev_pw()
1294 wpas_wps_reassoc(wpa_s, ssid, bssid, freq); in wpas_wps_start_dev_pw()
1299 int wpas_wps_start_pin(struct wpa_supplicant *wpa_s, const u8 *bssid, in wpas_wps_start_pin() argument
1303 return wpas_wps_start_dev_pw(wpa_s, NULL, bssid, pin, p2p_group, in wpas_wps_start_pin()
1360 int wpas_wps_start_reg(struct wpa_supplicant *wpa_s, const u8 *bssid, in wpas_wps_start_reg() argument
1378 ssid = wpas_wps_add_network(wpa_s, 1, NULL, bssid); in wpas_wps_start_reg()
1406 wpas_wps_reassoc(wpa_s, ssid, bssid, 0); in wpas_wps_start_reg()
1772 os_memcmp(ssid->bssid, bss->bssid, ETH_ALEN) == 0) { in wpas_wps_ssid_wildcard_ok()
1780 0, bss->bssid) < 0) in wpas_wps_ssid_wildcard_ok()
1818 MAC2STR(selected->bssid)); in wpas_wps_scan_pbc_overlap()
1836 os_memcmp(selected->bssid, ap->bssid, ETH_ALEN) == 0) in wpas_wps_scan_pbc_overlap()
1840 MACSTR, MAC2STR(ap->bssid)); in wpas_wps_scan_pbc_overlap()
1848 MAC2STR(selected->bssid), in wpas_wps_scan_pbc_overlap()
1849 MAC2STR(ap->bssid)); in wpas_wps_scan_pbc_overlap()
2311 const u8 *bssid, in wpas_wps_start_nfc() argument
2366 return wpas_wps_start_dev_pw(wpa_s, go_dev_addr, bssid, in wpas_wps_start_nfc()
2602 const u8 *bssid = NULL; in wpas_wps_nfc_rx_handover_sel() local
2660 bssid = attr.mac_addr; in wpas_wps_nfc_rx_handover_sel()
2662 MAC2STR(bssid)); in wpas_wps_nfc_rx_handover_sel()
2709 ret = wpas_wps_start_nfc(wpa_s, NULL, bssid, NULL, dev_pw_id, 0, in wpas_wps_nfc_rx_handover_sel()
2841 struct wpa_blacklist *e = wpa_blacklist_get(wpa_s, ap->bssid); in wpas_wps_dump_ap_info()
2845 (int) i, MAC2STR(ap->bssid), ap->type, ap->tries, in wpas_wps_dump_ap_info()
2854 const u8 *bssid) in wpas_wps_get_ap_info() argument
2863 if (os_memcmp(ap->bssid, bssid, ETH_ALEN) == 0) in wpas_wps_get_ap_info()
2898 ap = wpas_wps_get_ap_info(wpa_s, res->bssid); in wpas_wps_update_ap_info_bss()
2903 MAC2STR(res->bssid), ap->type, type); in wpas_wps_update_ap_info_bss()
2906 wpa_blacklist_del(wpa_s, ap->bssid); in wpas_wps_update_ap_info_bss()
2924 os_memcpy(ap->bssid, res->bssid, ETH_ALEN); in wpas_wps_update_ap_info_bss()
2930 MAC2STR(ap->bssid), ap->type); in wpas_wps_update_ap_info_bss()
2949 void wpas_wps_notify_assoc(struct wpa_supplicant *wpa_s, const u8 *bssid) in wpas_wps_notify_assoc() argument
2957 ap = wpas_wps_get_ap_info(wpa_s, bssid); in wpas_wps_notify_assoc()