Home
last modified time | relevance | path

Searched refs:bss (Results 1 – 25 of 168) sorted by relevance

1234567

/freebsd-13.1/contrib/wpa/wpa_supplicant/
H A Dbss.c114 if (bss->anqp && bss->anqp->users > 1) { in wpa_bss_anqp_unshare_alloc()
232 " SSID '%s' due to %s", bss->id, MAC2STR(bss->bssid), in wpa_bss_remove()
233 wpa_ssid_txt(bss->ssid, bss->ssid_len), reason); in wpa_bss_remove()
234 wpas_notify_bss_removed(wpa_s, bss->bssid, bss->id); in wpa_bss_remove()
466 dl_list_add_tail(&wpa_s->bss, &bss->list); in wpa_bss_add()
478 wpas_notify_bss_added(wpa_s, bss->bssid, bss->id); in wpa_bss_add()
658 MAC2STR(bss->bssid), bss->freq, res->freq); in wpa_bss_update()
680 if (bss->ie_len + bss->beacon_ie_len >= in wpa_bss_update()
712 dl_list_add_tail(&wpa_s->bss, &bss->list); in wpa_bss_update()
1111 if (bss->id >= idf && bss->id <= idl) in wpa_bss_get_id_range()
[all …]
H A Dbgscan_learn.c48 os_free(bss); in bss_free()
75 if (bssid_in_array(bss->neigh, bss->num_neigh, bssid)) in bgscan_learn_add_neighbor()
95 return bss; in bgscan_learn_get_bss()
127 bss = os_zalloc(sizeof(*bss)); in bgscan_learn_load()
128 if (!bss) in bgscan_learn_load()
135 dl_list_add(&data->bss, &bss->list); in bgscan_learn_load()
138 MAC2STR(bss->bssid), bss->freq); in bgscan_learn_load()
179 MAC2STR(bss->bssid), bss->freq); in bgscan_learn_save()
518 if (bss && bss->freq != res->freq) { in bgscan_learn_notify_scan()
526 bss = os_zalloc(sizeof(*bss)); in bgscan_learn_notify_scan()
[all …]
H A Dap.c444 struct hostapd_bss_config *bss = conf->bss[0]; in wpa_supplicant_conf_ap() local
448 os_strlcpy(bss->iface, wpa_s->ifname, sizeof(bss->iface)); in wpa_supplicant_conf_ap()
551 bin_clear_free(bss->ssid.wpa_psk, sizeof(*bss->ssid.wpa_psk)); in wpa_supplicant_conf_ap()
656 if ((bss->wpa & 2) && bss->rsn_pairwise == 0) in wpa_supplicant_conf_ap()
657 bss->rsn_pairwise = bss->wpa_pairwise; in wpa_supplicant_conf_ap()
658 bss->wpa_group = wpa_select_ap_group_cipher(bss->wpa, bss->wpa_pairwise, in wpa_supplicant_conf_ap()
661 if (bss->wpa && bss->ieee802_1x) { in wpa_supplicant_conf_ap()
669 bss->ssid.wep.default_len = bss->default_wep_key_len; in wpa_supplicant_conf_ap()
692 if (bss->wpa_group_rekey < 86400 && (bss->wpa & 2) && in wpa_supplicant_conf_ap()
727 bss->eap_server = 1; in wpa_supplicant_conf_ap()
[all …]
H A Dbss.h130 return bss->ies; in wpa_bss_ie_ptr()
134 const struct wpa_bss *bss);
158 const u8 * wpa_bss_get_ie(const struct wpa_bss *bss, u8 ie);
167 int wpa_bss_get_max_rate(const struct wpa_bss *bss);
170 int wpa_bss_anqp_unshare_alloc(struct wpa_bss *bss);
171 const u8 * wpa_bss_get_fils_cache_id(const struct wpa_bss *bss);
174 static inline int bss_is_dmg(const struct wpa_bss *bss) in bss_is_dmg() argument
176 return bss->freq > 45000; in bss_is_dmg()
184 static inline int bss_is_pbss(struct wpa_bss *bss) in bss_is_pbss() argument
186 return bss_is_dmg(bss) && in bss_is_pbss()
[all …]
H A Dinterworking.c984 if (bss->anqp == NULL || bss->anqp->anqp_3gpp == NULL) in interworking_connect_3gpp()
1010 os_memcpy(ssid->ssid, bss->ssid, bss->ssid_len); in interworking_connect_3gpp()
1618 os_memcpy(ssid->ssid, bss->ssid, bss->ssid_len); in interworking_connect_roaming_consortium()
1685 disallowed_ssid(wpa_s, bss->ssid, bss->ssid_len)) { in interworking_connect()
1838 os_memcpy(ssid->ssid, bss->ssid, bss->ssid_len); in interworking_connect()
1968 bss->anqp, bss->anqp ? bss->anqp->anqp_3gpp : NULL); in interworking_credentials_available_3gpp()
2089 if (bss->anqp == NULL || bss->anqp->nai_realm == NULL) in interworking_credentials_available_realm()
2702 MAC2STR(bss->bssid), MAC2STR(bss->hessid)); in interworking_next_anqp_fetch()
2789 if (bss) in anqp_send_req()
2924 if (bss) in interworking_parse_rx_anqp_resp()
[all …]
H A Dmesh.c175 struct hostapd_data *bss = ifmsh->bss[0]; in wpas_mesh_init_rsn() local
324 bss = ifmsh->bss[0]; in wpa_supplicant_mesh_enable_iface_cb()
325 bss->msg_ctx = wpa_s; in wpa_supplicant_mesh_enable_iface_cb()
329 bss->iface = ifmsh; in wpa_supplicant_mesh_enable_iface_cb()
411 if (!ifmsh->bss) in wpa_supplicant_mesh_init()
414 ifmsh->bss[0] = bss = hostapd_alloc_bss_data(NULL, NULL, NULL); in wpa_supplicant_mesh_init()
415 if (!bss) in wpa_supplicant_mesh_init()
422 bss->iface = ifmsh; in wpa_supplicant_mesh_init()
472 bss->conf = *conf->bss; in wpa_supplicant_mesh_init()
488 bss->iconf = conf; in wpa_supplicant_mesh_init()
[all …]
H A Devents.c144 if (!bss) in wpa_supplicant_get_new_bss()
147 return bss; in wpa_supplicant_get_new_bss()
155 if (!bss) { in wpa_supplicant_update_current_bss()
162 if (bss) in wpa_supplicant_update_current_bss()
1498 wpa_ssid_txt(bss->ssid, bss->ssid_len), in wpa_scan_res_match()
1499 wpa_ie_len, rsn_ie_len, bss->caps, bss->level, in wpa_scan_res_match()
1594 i, MAC2STR(bss->bssid), bss->freq, bss->level, in wpa_supplicant_select_bss()
1595 bss->snr, bss->est_throughput); in wpa_supplicant_select_bss()
1619 wpa_ssid_txt(bss->ssid, bss->ssid_len)); in wpa_supplicant_select_bss()
1859 size_t ie_len = bss->ie_len ? bss->ie_len : bss->beacon_ie_len; in wpas_get_est_throughput_from_bss_snr()
[all …]
H A Dwnm_sta.c537 if (bss) { in wnm_nei_get_chan()
730 if (!bss) in compare_scan_neighbor_results()
772 os_memcmp(bss->ssid, target->ssid, bss->ssid_len) != 0) { in compare_scan_neighbor_results()
1116 bss->bssid); in wnm_bss_tm_connect()
1119 if (bss == wpa_s->current_bss) { in wnm_bss_tm_connect()
1144 struct wpa_bss *bss; in wnm_scan_process() local
1171 if (!bss) { in wnm_scan_process()
1322 struct wpa_bss *bss; in wnm_fetch_scan_results() local
1355 bss = wpa_s->current_bss; in wnm_fetch_scan_results()
1360 bss->ssid_len) != 0)) in wnm_fetch_scan_results()
[all …]
H A Dhs20_supplicant.c75 if (!bss || !is_hs20_network(wpa_s, wpa_s->current_ssid, bss)) { in hs20_configure_frame_filters()
150 if (!bss) in get_hs20_version()
162 struct wpa_bss *bss) in is_hs20_network() argument
170 if (bss && !wpa_bss_get_vendor_ie(bss, HS20_IE_VENDOR_TYPE)) in is_hs20_network()
269 struct wpa_bss *bss; in hs20_anqp_send_req() local
274 if (!bss) { in hs20_anqp_send_req()
282 freq = bss->freq; in hs20_anqp_send_req()
602 if (bss) in hs20_parse_rx_hs20_anqp_resp()
603 anqp = bss->anqp; in hs20_parse_rx_hs20_anqp_resp()
1072 struct wpa_bss *bss; in hs20_osu_icon_fetch() local
[all …]
H A Dsme.c93 struct wpa_bss *bss; in sme_auth_build_sae_commit() local
140 if (!bss) { in sme_auth_build_sae_commit()
146 if (bss) { in sme_auth_build_sae_commit()
267 struct wpa_bss *bss) in sme_auth_handle_rrm() argument
347 if (bss == NULL) { in sme_send_authentication()
626 wpa_s, ssid, bss, in sme_send_authentication()
761 bss->bssid, 0, in sme_send_authentication()
1021 cwork->bss = bss; in sme_authenticate()
2432 dl_list_for_each(bss, &wpa_s->bss, struct wpa_bss, list) { in sme_proc_obss_scan()
2444 MAC2STR(bss->bssid), bss->freq, channel, ht_cap); in sme_proc_obss_scan()
[all …]
H A Dmesh_mpm.c214 struct hostapd_data *bss = ifmsh->bss[0]; in mesh_mpm_send_plink_action() local
254 if (is_6ghz_op_class(bss->iconf->op_class)) in mesh_mpm_send_plink_action()
287 pos = hostapd_eid_ext_supp_rates(bss, pos); in mesh_mpm_send_plink_action()
306 info = (bss->num_plinks > 63 ? 63 : bss->num_plinks) << 1; in mesh_mpm_send_plink_action()
363 pos = hostapd_eid_ht_operation(bss, pos); in mesh_mpm_send_plink_action()
371 pos = hostapd_eid_vht_operation(bss, pos); in mesh_mpm_send_plink_action()
386 pos = hostapd_eid_he_capab(bss, he_capa_oper, in mesh_mpm_send_plink_action()
388 pos = hostapd_eid_he_operation(bss, pos); in mesh_mpm_send_plink_action()
568 hapd = wpa_s->ifmsh->bss[0]; in mesh_mpm_close_peer()
607 hapd = wpa_s->ifmsh->bss[0]; in mesh_mpm_connect_peer()
[all …]
/freebsd-13.1/contrib/wpa/src/ap/
H A Dap_config.c204 bss = os_zalloc(sizeof(*bss)); in hostapd_config_defaults()
218 conf->bss[0] = bss; in hostapd_config_defaults()
220 bss->radius = os_zalloc(sizeof(*bss->radius)); in hostapd_config_defaults()
1266 if (conf->bss[i] != bss && in hostapd_config_check_bss()
1272 conf->bss[i]->iface, bss->iface); in hostapd_config_check_bss()
1368 bss->ssid.wep.keys_set && bss->wpa == 0) { in hostapd_config_check_bss()
1375 if (full_config && bss->wps_state && bss->wpa && in hostapd_config_check_bss()
1523 if ((bss->wpa & 2) && bss->rsn_pairwise == 0) in hostapd_set_security_params()
1524 bss->rsn_pairwise = bss->wpa_pairwise; in hostapd_set_security_params()
1526 bss->wpa_group = bss->group_cipher; in hostapd_set_security_params()
[all …]
H A Dairtime_policy.c136 struct hostapd_data *bss; in update_airtime_weights() local
147 bss = iface->bss[i]; in update_airtime_weights()
148 if (!bss->started || !bss->conf->airtime_weight) in update_airtime_weights()
166 bss = iface->bss[i]; in update_airtime_weights()
167 if (!bss->started || !bss->conf->airtime_weight) in update_airtime_weights()
193 bss = iface->bss[i]; in update_airtime_weights()
194 if (!bss->started || !bss->conf->airtime_weight) in update_airtime_weights()
208 bss->airtime_weight = wt; in update_airtime_weights()
216 bss = iface->bss[i]; in update_airtime_weights()
217 if (!bss->started || !bss->conf->airtime_weight) in update_airtime_weights()
[all …]
H A Dhostapd.c1891 struct hostapd_data *bss = iface->bss[i]; in hostapd_owe_iface_iter() local
1904 if (!bss->conf->ssid.ssid_set || !bss->conf->ssid.ssid_len || in hostapd_owe_iface_iter()
1911 bss->conf->ssid.ssid, bss->conf->ssid.ssid_len); in hostapd_owe_iface_iter()
1944 struct hostapd_data *bss = iface->bss[i]; in hostapd_owe_iface_iter2() local
1992 if (iface->num_bss < 1 || !iface->bss || !iface->bss[0]) in hostapd_interface_setup_failure_handler()
2374 hapd->conf = bss; in hostapd_alloc_bss_data()
2626 bss = iface->conf->bss[iface->conf->num_bss] = conf->bss[0]; in hostapd_interface_init_bss()
2896 bss = conf->last_bss = conf->bss[0]; in hostapd_config_alloc()
2898 os_strlcpy(bss->iface, ifname, sizeof(bss->iface)); in hostapd_config_alloc()
3139 iface->bss[i] = iface->bss[i + 1]; in hostapd_remove_bss()
[all …]
/freebsd-13.1/contrib/wpa/hostapd/
H A Dconfig_file.c929 bss = os_zalloc(sizeof(*bss)); in hostapd_config_bss()
932 bss->radius = os_zalloc(sizeof(*bss->radius)); in hostapd_config_bss()
940 conf->bss[conf->num_bss++] = bss; in hostapd_config_bss()
944 os_strlcpy(bss->iface, ifname, sizeof(bss->iface)); in hostapd_config_bss()
945 os_memcpy(bss->ssid.vlan, bss->iface, IFNAMSIZ + 1); in hostapd_config_bss()
1369 url = &bss->venue_url[bss->venue_url_count++]; in parse_venue_url()
1501 realm = &bss->nai_realm_data[bss->nai_realm_count]; in parse_nai_realm()
1814 icon = &bss->hs20_icons[bss->hs20_icons_count]; in hs20_parse_icon()
1889 bss->last_osu = &bss->hs20_osu_providers[bss->hs20_osu_providers_count]; in hs20_parse_osu_server_uri()
3474 if (bss->ocv && !bss->ieee80211w) in hostapd_config_fill()
[all …]
/freebsd-13.1/contrib/wpa/src/drivers/
H A Ddriver_nl80211.c249 for (bss = drv->first_bss; bss; bss = bss->next) { in get_bss_ifindex()
1343 for (bss = drv->first_bss; bss; bss = bss->next) { in wpa_driver_nl80211_event_rtm_newlink()
2546 if (nl80211_register_frame(bss, bss->nl_mgmt, in nl80211_mgmt_subscribe_mesh()
2653 if (nl80211_register_frame(bss, bss->nl_mgmt, in nl80211_mgmt_subscribe_ap()
4845 bss->ifname, bss->bandwidth, in wpa_driver_nl80211_set_ap()
6667 bss->ifname, bss->brname); in wpa_driver_nl80211_set_mode_impl()
6669 bss->brname, bss->ifname) < 0) in wpa_driver_nl80211_set_mode_impl()
6672 bss->ifname, bss->brname, in wpa_driver_nl80211_set_mode_impl()
6759 bss->ifname, bss->brname); in nl80211_restore_ap_mode()
7281 bss->ifname, if_nametoindex(bss->ifname), in i802_set_sta_vlan()
[all …]
H A Ddriver_nl80211_scan.c499 struct i802_bss *bss = priv; in wpa_driver_nl80211_sched_scan() local
648 struct i802_bss *bss = priv; in wpa_driver_nl80211_stop_sched_scan() local
655 return android_pno_stop(bss); in wpa_driver_nl80211_stop_sched_scan()
754 if (bss[NL80211_BSS_BSSID]) in nl80211_parse_bss_info()
757 if (bss[NL80211_BSS_FREQUENCY]) in nl80211_parse_bss_info()
773 if (bss[NL80211_BSS_TSF]) in nl80211_parse_bss_info()
809 if (bss[NL80211_BSS_STATUS]) { in nl80211_parse_bss_info()
821 if (bss[NL80211_BSS_PARENT_TSF] && bss[NL80211_BSS_PARENT_BSSID]) { in nl80211_parse_bss_info()
989 struct i802_bss *bss = priv; in wpa_driver_nl80211_get_scan_results() local
1039 struct i802_bss *bss = priv; in wpa_driver_nl80211_abort_scan() local
[all …]
H A Ddriver_nl80211_android.c42 static int android_priv_cmd(struct i802_bss *bss, const char *cmd) in android_priv_cmd() argument
44 struct wpa_driver_nl80211_data *drv = bss->drv; in android_priv_cmd()
52 os_strlcpy(ifr.ifr_name, bss->ifname, IFNAMSIZ); in android_priv_cmd()
75 int android_pno_start(struct i802_bss *bss, in android_pno_start() argument
78 struct wpa_driver_nl80211_data *drv = bss->drv; in android_pno_start()
125 os_strlcpy(ifr.ifr_name, bss->ifname, IFNAMSIZ); in android_pno_start()
143 return android_priv_cmd(bss, "PNOFORCE 1"); in android_pno_start()
147 int android_pno_stop(struct i802_bss *bss) in android_pno_stop() argument
149 return android_priv_cmd(bss, "PNOFORCE 0"); in android_pno_stop()
H A Ddriver_nl80211.h243 struct nl_msg * nl80211_cmd_msg(struct i802_bss *bss, int flags, uint8_t cmd);
246 struct nl_msg * nl80211_bss_msg(struct i802_bss *bss, int flags, uint8_t cmd);
252 struct nl_sock * get_connect_handle(struct i802_bss *bss);
272 int nl80211_get_wiphy_index(struct i802_bss *bss);
273 int wpa_driver_nl80211_set_mode(struct i802_bss *bss,
278 struct i802_bss *bss);
296 void nl80211_restore_ap_mode(struct i802_bss *bss);
300 int android_pno_start(struct i802_bss *bss,
302 int android_pno_stop(struct i802_bss *bss);
324 int wpa_driver_nl80211_scan(struct i802_bss *bss,
[all …]
/freebsd-13.1/contrib/wpa/src/common/
H A Dhw_features_common.c186 ieee802_11_parse_elems((u8 *) (bss + 1), bss->ie_len, &elems, 0); in get_pri_sec_chan()
222 if (bss->freq == pri_chan->freq) in check_40mhz_5g()
257 MAC2STR(bss->bssid)); in check_40mhz_5g()
273 if (bss->freq < start || bss->freq > end || bss->freq == pri_freq) in check_20mhz_bss()
276 ieee802_11_parse_elems((u8 *) (bss + 1), bss->ie_len, &elems, 0); in check_20mhz_bss()
279 MACSTR " freq=%d", MAC2STR(bss->bssid), bss->freq); in check_20mhz_bss()
289 MACSTR " freq=%d", MAC2STR(bss->bssid), bss->freq); in check_20mhz_bss()
317 int pri = bss->freq; in check_40mhz_2g4()
344 MAC2STR(bss->bssid), bss->freq, pri_chan, sec_chan); in check_40mhz_2g4()
352 MAC2STR(bss->bssid), in check_40mhz_2g4()
[all …]
/freebsd-13.1/sys/contrib/dev/iwi/
H A DMakefile4 ALL= ipw2200-bss.fw.uu ipw2200-ibss.fw.uu ipw2200-sniffer.fw.uu
8 ipw2200-bss.fw.uu: ipw2200-bss.fw LICENSE
11 uuencode ipw2200-bss.fw ipw2200-bss.fw) > ${.TARGET}
/freebsd-13.1/contrib/wpa/wpa_supplicant/examples/
H A Dwpas-dbus-new.py40 def showBss(bss): argument
41 net_obj = bus.get_object(WPAS_DBUS_SERVICE, bss)
89 def bssAdded(bss, properties): argument
90 print("BSS added: %s" % (bss))
91 showBss(bss)
93 def bssRemoved(bss): argument
94 print("BSS removed: %s" % (bss))
H A Dwpas-dbus-new-signals.py47 def showBss(bss): argument
48 net_obj = bus.get_object(WPAS_DBUS_SERVICE, bss)
92 def bssAdded(bss, properties): argument
93 print("BSS added: %s" % (bss))
94 showBss(bss)
96 def bssRemoved(bss): argument
97 print("BSS removed: %s" % (bss))
/freebsd-13.1/sys/conf/
H A Dldscript.i38640 .rel.bss : { *(.rel.bss .rel.bss.* .rel.gnu.linkonce.b.*) }
41 .rela.bss : { *(.rela.bss .rela.bss.* .rela.gnu.linkonce.b.*) }
148 .bss :
152 *(.bss .bss.* .gnu.linkonce.b.*)
154 /* Align here to ensure that the .bss section occupies space up to
155 _end. Align after .bss to ensure correct alignment even if the
156 .bss section disappears because there are no input sections.
157 FIXME: Why do we need it? When there is no .bss section, we don't
H A Dldscript.arm57 .rel.bss : { *(.rel.bss) }
58 .rela.bss : { *(.rela.bss) }
109 .bss :
112 *(.bss)
117 kernel file, however unlike normal .bss entries should not be zeroed
118 out as we use it before the .bss section is cleared. */

1234567