| /NextBSD/contrib/wpa/wpa_supplicant/ |
| HD | bss.c | 33 static void wpa_bss_set_hessid(struct wpa_bss *bss) in wpa_bss_set_hessid() argument 36 const u8 *ie = wpa_bss_get_ie(bss, WLAN_EID_INTERWORKING); in wpa_bss_set_hessid() 38 os_memset(bss->hessid, 0, ETH_ALEN); in wpa_bss_set_hessid() 42 os_memcpy(bss->hessid, ie + 3, ETH_ALEN); in wpa_bss_set_hessid() 44 os_memcpy(bss->hessid, ie + 5, ETH_ALEN); in wpa_bss_set_hessid() 114 int wpa_bss_anqp_unshare_alloc(struct wpa_bss *bss) in wpa_bss_anqp_unshare_alloc() argument 118 if (bss->anqp && bss->anqp->users > 1) { in wpa_bss_anqp_unshare_alloc() 120 anqp = wpa_bss_anqp_clone(bss->anqp); in wpa_bss_anqp_unshare_alloc() 124 bss->anqp->users--; in wpa_bss_anqp_unshare_alloc() 125 bss->anqp = anqp; in wpa_bss_anqp_unshare_alloc() [all …]
|
| HD | ap.c | 176 struct hostapd_bss_config *bss = conf->bss[0]; in wpa_supplicant_conf_ap() local 180 os_strlcpy(bss->iface, wpa_s->ifname, sizeof(bss->iface)); in wpa_supplicant_conf_ap() 228 bss->isolate = !wpa_s->conf->p2p_intra_bss; in wpa_supplicant_conf_ap() 229 bss->force_per_enrollee_psk = wpa_s->global->p2p_per_sta_psk; in wpa_supplicant_conf_ap() 232 os_memcpy(bss->ip_addr_go, wpa_s->parent->conf->ip_addr_go, 4); in wpa_supplicant_conf_ap() 233 os_memcpy(bss->ip_addr_mask, wpa_s->parent->conf->ip_addr_mask, in wpa_supplicant_conf_ap() 235 os_memcpy(bss->ip_addr_start, in wpa_supplicant_conf_ap() 237 os_memcpy(bss->ip_addr_end, wpa_s->parent->conf->ip_addr_end, in wpa_supplicant_conf_ap() 246 os_memcpy(bss->ssid.ssid, ssid->ssid, ssid->ssid_len); in wpa_supplicant_conf_ap() 247 bss->ssid.ssid_len = ssid->ssid_len; in wpa_supplicant_conf_ap() [all …]
|
| HD | bgscan_learn.c | 39 struct dl_list bss; member 45 static void bss_free(struct bgscan_learn_bss *bss) in bss_free() argument 47 os_free(bss->neigh); in bss_free() 48 os_free(bss); in bss_free() 68 static void bgscan_learn_add_neighbor(struct bgscan_learn_bss *bss, in bgscan_learn_add_neighbor() argument 73 if (os_memcmp(bss->bssid, bssid, ETH_ALEN) == 0) in bgscan_learn_add_neighbor() 75 if (bssid_in_array(bss->neigh, bss->num_neigh, bssid)) in bgscan_learn_add_neighbor() 78 n = os_realloc_array(bss->neigh, bss->num_neigh + 1, ETH_ALEN); in bgscan_learn_add_neighbor() 82 os_memcpy(n + bss->num_neigh * ETH_ALEN, bssid, ETH_ALEN); in bgscan_learn_add_neighbor() 83 bss->neigh = n; in bgscan_learn_add_neighbor() [all …]
|
| HD | interworking.c | 50 struct wpa_supplicant *wpa_s, struct wpa_bss *bss, int ignore_bw, 53 struct wpa_supplicant *wpa_s, struct wpa_bss *bss, int ignore_bw, 226 static int additional_roaming_consortiums(struct wpa_bss *bss) in additional_roaming_consortiums() argument 229 ie = wpa_bss_get_ie(bss, WLAN_EID_ROAMING_CONSORTIUM); in additional_roaming_consortiums() 244 struct wpa_bss *bss) in interworking_anqp_send_req() argument 255 MAC2STR(bss->bssid)); in interworking_anqp_send_req() 256 wpa_s->interworking_gas_bss = bss; in interworking_anqp_send_req() 264 additional_roaming_consortiums(bss))) in interworking_anqp_send_req() 280 if (wpa_bss_get_vendor_ie(bss, HS20_IE_VENDOR_TYPE)) { in interworking_anqp_send_req() 313 res = gas_query_req(wpa_s->gas, bss->bssid, bss->freq, buf, in interworking_anqp_send_req() [all …]
|
| HD | bss.h | 126 const u8 * wpa_bss_get_ie(const struct wpa_bss *bss, u8 ie); 127 const u8 * wpa_bss_get_vendor_ie(const struct wpa_bss *bss, u32 vendor_type); 128 const u8 * wpa_bss_get_vendor_ie_beacon(const struct wpa_bss *bss, 130 struct wpabuf * wpa_bss_get_vendor_ie_multi(const struct wpa_bss *bss, 132 struct wpabuf * wpa_bss_get_vendor_ie_multi_beacon(const struct wpa_bss *bss, 134 int wpa_bss_get_max_rate(const struct wpa_bss *bss); 135 int wpa_bss_get_bit_rates(const struct wpa_bss *bss, u8 **rates); 137 int wpa_bss_anqp_unshare_alloc(struct wpa_bss *bss); 139 static inline int bss_is_dmg(const struct wpa_bss *bss) in bss_is_dmg() argument 141 return bss->freq > 45000; in bss_is_dmg() [all …]
|
| HD | mesh.c | 101 static void wpas_mesh_copy_groups(struct hostapd_data *bss, in wpas_mesh_copy_groups() argument 112 bss->conf->sae_groups = os_malloc(groups_size); in wpas_mesh_copy_groups() 113 if (bss->conf->sae_groups) in wpas_mesh_copy_groups() 114 os_memcpy(bss->conf->sae_groups, wpa_s->conf->sae_groups, in wpas_mesh_copy_groups() 123 struct hostapd_data *bss; in wpa_supplicant_mesh_init() local 144 ifmsh->bss = os_calloc(wpa_s->ifmsh->num_bss, in wpa_supplicant_mesh_init() 146 if (!ifmsh->bss) in wpa_supplicant_mesh_init() 149 ifmsh->bss[0] = bss = os_zalloc(sizeof(struct hostapd_data)); in wpa_supplicant_mesh_init() 150 if (!bss) in wpa_supplicant_mesh_init() 153 os_memcpy(bss->own_addr, wpa_s->own_addr, ETH_ALEN); in wpa_supplicant_mesh_init() [all …]
|
| HD | sme.c | 146 struct wpa_bss *bss) in sme_auth_handle_rrm() argument 158 rrm_ie = wpa_bss_get_ie(bss, WLAN_EID_RRM_ENABLED_CAPABILITIES); in sme_auth_handle_rrm() 159 if (!rrm_ie || !(bss->caps & IEEE80211_CAP_RRM)) { in sme_auth_handle_rrm() 195 struct wpa_bss *bss, struct wpa_ssid *ssid, in sme_send_authentication() argument 212 if (bss == NULL) { in sme_send_authentication() 221 wpa_s->current_bss = bss; in sme_send_authentication() 226 params.freq = bss->freq; in sme_send_authentication() 227 params.bssid = bss->bssid; in sme_send_authentication() 228 params.ssid = bss->ssid; in sme_send_authentication() 229 params.ssid_len = bss->ssid_len; in sme_send_authentication() [all …]
|
| HD | events.c | 131 struct wpa_bss *bss = NULL; in wpa_supplicant_get_new_bss() local 135 bss = wpa_bss_get(wpa_s, bssid, ssid->ssid, ssid->ssid_len); in wpa_supplicant_get_new_bss() 136 if (!bss) in wpa_supplicant_get_new_bss() 137 bss = wpa_bss_get_bssid(wpa_s, bssid); in wpa_supplicant_get_new_bss() 139 return bss; in wpa_supplicant_get_new_bss() 145 struct wpa_bss *bss = wpa_supplicant_get_new_bss(wpa_s, wpa_s->bssid); in wpa_supplicant_update_current_bss() local 147 if (!bss) { in wpa_supplicant_update_current_bss() 151 bss = wpa_supplicant_get_new_bss(wpa_s, wpa_s->bssid); in wpa_supplicant_update_current_bss() 154 if (bss) in wpa_supplicant_update_current_bss() 155 wpa_s->current_bss = bss; in wpa_supplicant_update_current_bss() [all …]
|
| HD | hs20_supplicant.c | 81 struct wpa_bss *bss) in is_hs20_network() argument 89 if (bss && !wpa_bss_get_vendor_ie(bss, HS20_IE_VENDOR_TYPE)) in is_hs20_network() 188 struct wpa_bss *bss; in hs20_anqp_send_req() local 191 bss = wpa_bss_get_bssid(wpa_s, dst); in hs20_anqp_send_req() 192 if (!bss) { in hs20_anqp_send_req() 199 wpa_bss_anqp_unshare_alloc(bss); in hs20_anqp_send_req() 200 freq = bss->freq; in hs20_anqp_send_req() 360 struct wpa_bss *bss, const u8 *sa, in hs20_parse_rx_hs20_anqp_resp() argument 371 if (bss) in hs20_parse_rx_hs20_anqp_resp() 372 anqp = bss->anqp; in hs20_parse_rx_hs20_anqp_resp() [all …]
|
| /NextBSD/contrib/wpa/hostapd/ |
| HD | config_file.c | 34 static int hostapd_config_read_vlan_file(struct hostapd_bss_config *bss, in hostapd_config_read_vlan_file() argument 101 vlan->next = bss->vlan; in hostapd_config_read_vlan_file() 102 bss->vlan = vlan; in hostapd_config_read_vlan_file() 634 static int hostapd_parse_das_client(struct hostapd_bss_config *bss, in hostapd_parse_das_client() argument 645 if (hostapd_parse_ip_addr(val, &bss->radius_das_client_addr)) in hostapd_parse_das_client() 648 os_free(bss->radius_das_shared_secret); in hostapd_parse_das_client() 649 bss->radius_das_shared_secret = (u8 *) os_strdup(secret); in hostapd_parse_das_client() 650 if (bss->radius_das_shared_secret == NULL) in hostapd_parse_das_client() 652 bss->radius_das_shared_secret_len = os_strlen(secret); in hostapd_parse_das_client() 843 struct hostapd_bss_config **all, *bss; in hostapd_config_bss() local [all …]
|
| /NextBSD/contrib/wpa/src/ap/ |
| HD | ap_config.c | 23 static void hostapd_config_free_vlan(struct hostapd_bss_config *bss) in hostapd_config_free_vlan() argument 27 vlan = bss->vlan; in hostapd_config_free_vlan() 35 bss->vlan = NULL; in hostapd_config_free_vlan() 39 void hostapd_config_defaults_bss(struct hostapd_bss_config *bss) in hostapd_config_defaults_bss() argument 41 bss->logger_syslog_level = HOSTAPD_LEVEL_INFO; in hostapd_config_defaults_bss() 42 bss->logger_stdout_level = HOSTAPD_LEVEL_INFO; in hostapd_config_defaults_bss() 43 bss->logger_syslog = (unsigned int) -1; in hostapd_config_defaults_bss() 44 bss->logger_stdout = (unsigned int) -1; in hostapd_config_defaults_bss() 46 bss->auth_algs = WPA_AUTH_ALG_OPEN | WPA_AUTH_ALG_SHARED; in hostapd_config_defaults_bss() 48 bss->wep_rekeying_period = 300; in hostapd_config_defaults_bss() [all …]
|
| HD | hostapd.c | 140 hostapd_flush_old_stations(iface->bss[j], in hostapd_clear_old() 142 hostapd_broadcast_wep_clear(iface->bss[j]); in hostapd_clear_old() 147 radius_client_flush(iface->bss[j]->radius, 0); in hostapd_clear_old() 155 struct hostapd_data *hapd = iface->bss[0]; in hostapd_reload_config() 163 hostapd_reload_bss(iface->bss[j]); in hostapd_reload_config() 180 hapd = iface->bss[j]; in hostapd_reload_config() 194 hapd->conf = newconf->bss[j]; in hostapd_reload_config() 411 os_free(iface->bss); in hostapd_cleanup_iface() 507 struct hostapd_data *hapd = iface->bss[0]; in hostapd_validate_bssid_configuration() 523 if (hostapd_mac_comp_empty(iface->conf->bss[j]->bssid) == 0) { in hostapd_validate_bssid_configuration() [all …]
|
| /NextBSD/contrib/wpa/src/drivers/ |
| HD | driver_nl80211_scan.c | 107 nl80211_scan_common(struct i802_bss *bss, u8 cmd, in nl80211_scan_common() argument 110 struct wpa_driver_nl80211_data *drv = bss->drv; in nl80211_scan_common() 115 msg = nl80211_cmd_msg(bss, 0, cmd); in nl80211_scan_common() 214 int wpa_driver_nl80211_scan(struct i802_bss *bss, in wpa_driver_nl80211_scan() argument 217 struct wpa_driver_nl80211_data *drv = bss->drv; in wpa_driver_nl80211_scan() 227 msg = nl80211_scan_common(bss, NL80211_CMD_TRIGGER_SCAN, params); in wpa_driver_nl80211_scan() 268 bss, NL80211_IFTYPE_STATION)) in wpa_driver_nl80211_scan() 271 if (wpa_driver_nl80211_scan(bss, params)) { in wpa_driver_nl80211_scan() 272 wpa_driver_nl80211_set_mode(bss, old_mode); in wpa_driver_nl80211_scan() 318 struct i802_bss *bss = priv; in wpa_driver_nl80211_sched_scan() local [all …]
|
| HD | driver_nl80211_android.c | 42 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()
|
| HD | driver_nl80211_event.c | 445 struct i802_bss *bss; in mlme_event_ch_switch() local 457 bss = get_bss_ifindex(drv, ifidx); in mlme_event_ch_switch() 458 if (bss == NULL) { in mlme_event_ch_switch() 502 bss->freq = data.ch_switch.freq; in mlme_event_ch_switch() 504 wpa_supplicant_event(bss->ctx, EVENT_CH_SWITCH, &data); in mlme_event_ch_switch() 533 static void mlme_event_mgmt(struct i802_bss *bss, in mlme_event_mgmt() argument 537 struct wpa_driver_nl80211_data *drv = bss->drv; in mlme_event_mgmt() 571 event.rx_mgmt.drv_priv = bss; in mlme_event_mgmt() 747 static void mlme_event(struct i802_bss *bss, in mlme_event() argument 754 struct wpa_driver_nl80211_data *drv = bss->drv; in mlme_event() [all …]
|
| /NextBSD/contrib/wpa/src/common/ |
| HD | hw_features_common.c | 147 void get_pri_sec_chan(struct wpa_scan_res *bss, int *pri_chan, int *sec_chan) in get_pri_sec_chan() argument 154 ieee802_11_parse_elems((u8 *) (bss + 1), bss->ie_len, &elems, 0); in get_pri_sec_chan() 192 struct wpa_scan_res *bss = scan_res->res[i]; in check_40mhz_5g() local 193 if (bss->freq == pri_freq) in check_40mhz_5g() 195 else if (bss->freq == sec_freq) in check_40mhz_5g() 211 struct wpa_scan_res *bss = scan_res->res[i]; in check_40mhz_5g() local 212 get_pri_sec_chan(bss, &bss_pri_chan, &bss_sec_chan); in check_40mhz_5g() 221 struct wpa_scan_res *bss = scan_res->res[i]; in check_40mhz_5g() local 222 get_pri_sec_chan(bss, &bss_pri_chan, &bss_sec_chan); in check_40mhz_5g() 228 MAC2STR(bss->bssid)); in check_40mhz_5g() [all …]
|
| /NextBSD/sys/compat/svr4/ |
| HD | svr4_signal.c | 145 svr4_to_bsd_sigset(sss, bss) in svr4_to_bsd_sigset() argument 147 sigset_t *bss; 151 SIGEMPTYSET(*bss); 156 SIGADDSET(*bss, newsig); 161 bsd_to_svr4_sigset(bss, sss) in bsd_to_svr4_sigset() argument 162 const sigset_t *bss; in bsd_to_svr4_sigset() 169 if (SIGISMEMBER(*bss, i)) { 229 svr4_to_bsd_sigaltstack(sss, bss) in svr4_to_bsd_sigaltstack() argument 231 struct sigaltstack *bss; 234 bss->ss_sp = sss->ss_sp; [all …]
|
| /NextBSD/sys/i386/ibcs2/ |
| HD | ibcs2_signal.c | 133 ibcs2_to_bsd_sigset(iss, bss) in ibcs2_to_bsd_sigset() argument 135 sigset_t *bss; 139 sigemptyset(bss); 144 sigaddset(bss, newsig); 150 bsd_to_ibcs2_sigset(bss, iss) in bsd_to_ibcs2_sigset() argument 151 const sigset_t *bss; in bsd_to_ibcs2_sigset() 158 if (sigismember(bss, i)) { 387 sigset_t bss; local 391 bss = td->td_siglist; 392 SIGSETOR(bss, p->p_siglist); [all …]
|
| /NextBSD/sys/contrib/dev/iwi/ |
| HD | Makefile | 4 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}
|
| /NextBSD/sys/conf/ |
| HD | ldscript.i386 | 40 .rel.bss : { *(.rel.bss .rel.bss.* .rel.gnu.linkonce.b.*) } 41 .rela.bss : { *(.rela.bss .rela.bss.* .rela.gnu.linkonce.b.*) } 145 .bss : 148 *(.bss .bss.* .gnu.linkonce.b.*) 150 /* Align here to ensure that the .bss section occupies space up to 151 _end. Align after .bss to ensure correct alignment even if the 152 .bss section disappears because there are no input sections. 153 FIXME: Why do we need it? When there is no .bss section, we don't
|
| HD | ldscript.sparc64 | 112 .rel.bss : 114 *(.rel.bss) 115 *(.rel.bss.*) 118 .rela.bss : 120 *(.rela.bss) 121 *(.rela.bss.*) 216 .bss : 219 *(.bss) 220 *(.bss.*) 223 /* Align here to ensure that the .bss section occupies space up to [all …]
|
| HD | ldscript.arm | 52 .rel.bss : { *(.rel.bss) } 53 .rela.bss : { *(.rela.bss) } 105 .bss : 108 *(.bss) 113 kernel file, however unlike normal .bss entries should not be zeroed 114 out as we use it before the .bss section is cleared. */
|
| /NextBSD/sys/boot/arm/at91/boot0/ |
| HD | linker.cfg | 68 .bss : 71 *(.bss) 72 *(.bss.*) 75 /* Align here to ensure that the .bss section occupies space up to 76 _end. Align after .bss to ensure correct alignment even if the 77 .bss section disappears because there are no input sections. */
|
| /NextBSD/contrib/wpa/wpa_supplicant/examples/ |
| HD | wpas-dbus-new.py | 40 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)
|
| /NextBSD/sys/compat/linux/ |
| HD | linux.c | 178 linux_to_bsd_sigset(l_sigset_t *lss, sigset_t *bss) in linux_to_bsd_sigset() argument 182 SIGEMPTYSET(*bss); in linux_to_bsd_sigset() 187 SIGADDSET(*bss, b); in linux_to_bsd_sigset() 193 bsd_to_linux_sigset(sigset_t *bss, l_sigset_t *lss) in bsd_to_linux_sigset() argument 199 if (SIGISMEMBER(*bss, b)) { in bsd_to_linux_sigset()
|