| /f-stack/freebsd/net80211/ |
| H A D | ieee80211_sta.c | 141 if (++vap->iv_bmiss_count < vap->iv_bmiss_max) { in sta_beacon_miss() 149 ieee80211_send_probereq(vap->iv_bss, vap->iv_myaddr, in sta_beacon_miss() 150 vap->iv_bss->ni_bssid, vap->iv_bss->ni_bssid, in sta_beacon_miss() 151 vap->iv_bss->ni_essid, vap->iv_bss->ni_esslen); in sta_beacon_miss() 222 2 * vap->iv_bmissthreshold * vap->iv_bss->ni_intval); in sta_swbmiss_start() 224 callout_reset(&vap->iv_swbmiss, vap->iv_swbmiss_period, in sta_swbmiss_start() 281 vap->iv_auth->ia_detach(vap); in sta_newstate() 299 vap->iv_scanreq_nssid, vap->iv_scanreq_ssid); in sta_newstate() 436 vap->iv_sta_ps(vap, 0); in sta_newstate() 464 vap->iv_sta_ps(vap, 1); in sta_newstate() [all …]
|
| H A D | ieee80211_adhoc.c | 104 vap->iv_input = adhoc_input; in adhoc_vattach() 127 if (ni != vap->iv_bss) in sta_leave() 143 ostate = vap->iv_state; in adhoc_newstate() 162 ieee80211_reset_bss(vap); in adhoc_newstate() 181 vap->iv_des_chan, vap->iv_flags_ht)); in adhoc_newstate() 197 vap->iv_scanreq_nssid, vap->iv_scanreq_ssid); in adhoc_newstate() 232 ni = vap->iv_bss; in adhoc_newstate() 237 ieee80211_note(vap, in adhoc_newstate() 268 vap->iv_sta_ps(vap, 0); in adhoc_newstate() 416 ni == vap->iv_bss && in adhoc_input() [all …]
|
| H A D | ieee80211_tdma.c | 197 vap->iv_tdma = ts; in ieee80211_tdma_vattach() 209 ts->tdma_opdetach(vap); in tdma_vdetach() 211 vap->iv_tdma = NULL; in tdma_vdetach() 221 if (ni != vap->iv_bss) in sta_leave() 238 ostate = vap->iv_state; in tdma_newstate() 265 vap->iv_scanreq_nssid, vap->iv_scanreq_ssid); in tdma_newstate() 289 callout_reset(&vap->iv_swbmiss, vap->iv_swbmiss_period, in tdma_newstate() 306 IEEE80211_DPRINTF(vap, in tdma_beacon_miss() 309 vap->iv_opmode, ieee80211_state_name[vap->iv_state]); in tdma_beacon_miss() 321 ieee80211_scan_assoc_fail(vap, vap->iv_bss->ni_macaddr, in tdma_beacon_miss() [all …]
|
| H A D | ieee80211_proto.c | 413 vap->iv_opdetach(vap); in ieee80211_proto_vdetach() 420 vap->iv_auth->ia_detach(vap); in ieee80211_proto_vdetach() 425 vap->iv_acl->iac_detach(vap); in ieee80211_proto_vdetach() 858 vap->iv_updateslot(vap); in vap_update_slot() 1041 vap->iv_preamble_update(vap); in vap_update_preamble() 1184 vap->iv_ht_protmode_update(vap); in vap_update_ht_protmode() 1877 vap->iv_wme_update(vap, in vap_update_wme() 2225 vap->iv_bmiss(vap); in beacon_miss() 2239 vap->iv_bmiss(vap); in beacon_swmiss() 2458 vap->iv_newstate(vap, in wakeupwaiting() [all …]
|
| H A D | ieee80211_crypto.c | 123 return vap->iv_key_alloc(vap, key, keyix, rxkeyix); in dev_key_alloc() 130 return vap->iv_key_delete(vap, key); in dev_key_delete() 136 return vap->iv_key_set(vap, key); in dev_key_set() 169 ieee80211_crypto_resetkey(vap, &vap->iv_nw_keys[i], in ieee80211_crypto_vattach() 477 (void) _ieee80211_crypto_delkey(vap, &vap->iv_nw_keys[i]); in ieee80211_crypto_delglobalkeys() 522 return dev_key_set(vap, key); in ieee80211_crypto_setkey() 578 return &vap->iv_nw_keys[vap->iv_def_txkey]; in ieee80211_crypto_get_txkey() 760 dev_key_set(vap, k); in load_ucastkey() 771 struct ieee80211vap *vap; in ieee80211_crypto_reload_keys() local 784 dev_key_set(vap, k); in ieee80211_crypto_reload_keys() [all …]
|
| H A D | ieee80211_ioctl.c | 739 ni = ieee80211_find_vap_node(&vap->iv_ic->ic_sta, vap, in ieee80211_ioctl_getstavlan() 927 vap->iv_bss->ni_macaddr : vap->iv_bss->ni_bssid, in ieee80211_ioctl_get80211() 1199 ni = ieee80211_find_vap_node(&vap->iv_ic->ic_sta, vap, in ieee80211_ioctl_setkey() 1274 ni = ieee80211_find_vap_node(&vap->iv_ic->ic_sta, vap, in ieee80211_ioctl_delkey() 1286 ieee80211_crypto_delkey(vap, &vap->iv_nw_keys[kid]); in ieee80211_ioctl_delkey() 1346 if (vap != mop->vap) in domlme() 1411 mlmedebug(vap, vap->iv_bss->ni_macaddr, op, reason); in setmlme_common() 1416 mlmeop.vap = vap; in setmlme_common() 1434 mlmedebug(vap, vap->iv_bss->ni_macaddr, op, reason); in setmlme_common() 3053 vap->iv_des_nssid, vap->iv_des_ssid); in ieee80211_ioctl_set80211() [all …]
|
| H A D | ieee80211_wds.c | 88 if (vap->iv_bss != NULL) { in wds_vdetach() 90 if (vap->iv_bss->ni_wdsvap == vap) in wds_vdetach() 99 vap->iv_input = wds_input; in wds_vattach() 182 obss = vap->iv_bss; in ieee80211_create_wds() 183 vap->iv_bss = ni; in ieee80211_create_wds() 184 ni->ni_wdsvap = vap; in ieee80211_create_wds() 202 ni = ieee80211_node_create_wds(vap, vap->iv_des_bssid, chan); in ieee80211_create_wds() 204 obss = vap->iv_bss; in ieee80211_create_wds() 256 ifp = vap->iv_ifp; in ieee80211_dwds_mcast() 356 ostate = vap->iv_state; in wds_newstate() [all …]
|
| H A D | ieee80211_hostap.c | 195 vap->iv_auth->ia_detach(vap); in hostap_newstate() 230 ieee80211_create_ibss(vap, vap->iv_des_chan); in hostap_newstate() 246 vap->iv_scanreq_nssid, vap->iv_scanreq_ssid); in hostap_newstate() 334 vap->iv_auth->ia_attach(vap); in hostap_newstate() 336 vap->iv_auth->ia_detach(vap); in hostap_newstate() 403 &vap->iv_ic->ic_sta, vap, eh->ether_dhost); in hostap_deliver_data() 839 if ((ieee80211_msg_debug(vap) && doprint(vap, subtype)) || in hostap_input() 915 KASSERT(vap->iv_state == IEEE80211_S_RUN, ("state %d", vap->iv_state)); in hostap_auth_open() 996 KASSERT(vap->iv_state == IEEE80211_S_RUN, ("state %d", vap->iv_state)); in hostap_auth_shared() 1872 if (vap->iv_acl != NULL && !vap->iv_acl->iac_check(vap, wh)) { in hostap_recv_mgmt() [all …]
|
| H A D | ieee80211_power.c | 88 vap->iv_tim_len = howmany(vap->iv_max_aid,8) * sizeof(uint8_t); in ieee80211_power_latevattach() 89 vap->iv_tim_bitmap = (uint8_t *) IEEE80211_MALLOC(vap->iv_tim_len, in ieee80211_power_latevattach() 95 vap->iv_tim_len = 0; in ieee80211_power_latevattach() 307 vap->iv_ps_pending++; in ieee80211_set_tim() 313 vap->iv_update_beacon(vap, IEEE80211_BEACON_TIM); in ieee80211_set_tim() 489 vap->iv_ps_sta++; in ieee80211_node_pwrsave() 497 vap->iv_update_ps(vap, vap->iv_ps_sta); in ieee80211_node_pwrsave() 500 vap->iv_ps_sta--; in ieee80211_node_pwrsave() 512 vap->iv_update_ps(vap, vap->iv_ps_sta); in ieee80211_node_pwrsave() 589 vap->iv_sta_ps(vap, 0); in ieee80211_sta_tim_notify() [all …]
|
| H A D | ieee80211_node.c | 160 vap->iv_inact_init, vap->iv_inact_auth, in ieee80211_node_vattach() 161 vap->iv_inact_run, vap->iv_inact_probe); in ieee80211_node_vattach() 189 vap->iv_auth = ieee80211_authenticator_get(vap->iv_bss->ni_authmode); in ieee80211_node_latevattach() 344 ni = ieee80211_alloc_node(&ic->ic_sta, vap, vap->iv_myaddr); in ieee80211_create_ibss() 453 ni = ieee80211_alloc_node(&ic->ic_sta, vap, vap->iv_myaddr); in ieee80211_reset_bss() 510 !match_ssid(ni, vap->iv_des_nssid, vap->iv_des_ssid)) in check_bss() 552 !match_ssid(ni, vap->iv_des_nssid, vap->iv_des_ssid)) in check_bss_debug() 874 ieee80211_fix_rate(vap->iv_bss, &vap->iv_bss->ni_rates, in ieee80211_sta_join1() 1418 ni->ni_vap = vap; in ieee80211_alloc_node() 2582 if (vap != NULL && ni->ni_vap != vap) in ieee80211_iterate_nodes_vap() [all …]
|
| H A D | ieee80211_scan.c | 132 struct ieee80211com *ic = vap->iv_ic; in ieee80211_scan_vattach() 141 memset(vap->iv_roamparms, 0, sizeof(vap->iv_roamparms)); in ieee80211_scan_vattach() 149 ic->ic_scan_methods->sc_vattach(vap); in ieee80211_scan_vattach() 155 struct ieee80211com *ic = vap->iv_ic; in ieee80211_scan_vdetach() 252 vap->iv_ifp->if_xname, in ieee80211_scan_update_locked() 256 ss->ss_vap = vap; in ieee80211_scan_update_locked() 303 if_printf(vap->iv_ifp, "scan set "); in ieee80211_scan_dump() 367 __func__, vap->iv_opmode); in ieee80211_check_scan() 414 return ieee80211_check_scan(vap, in ieee80211_check_scan_current() 417 vap->iv_des_nssid, vap->iv_des_ssid); in ieee80211_check_scan_current() [all …]
|
| H A D | ieee80211_output.c | 373 if (IS_DWDS(vap)) { in ieee80211_start_pkt() 764 ic = vap->iv_ic; in ieee80211_output() 1052 if ((ieee80211_msg_debug(vap) && doprint(vap, type)) || in ieee80211_mgmt_output() 1073 wakeup(vap); in ieee80211_nulldata_transmitted() 1425 IEEE80211_KEY_UNDEFINED(&vap->iv_nw_keys[vap->iv_def_txkey])) in ieee80211_crypto_getucastkey() 1427 return &vap->iv_nw_keys[vap->iv_def_txkey]; in ieee80211_crypto_getucastkey() 1443 IEEE80211_KEY_UNDEFINED(&vap->iv_nw_keys[vap->iv_def_txkey])) in ieee80211_crypto_getmcastkey() 1445 return &vap->iv_nw_keys[vap->iv_def_txkey]; in ieee80211_crypto_getmcastkey() 2321 vap->iv_quiet_count_value = vap->iv_quiet_count; in ieee80211_add_quiet() 2385 if (vap->iv_flags & IEEE80211_F_WPA1 && vap->iv_wpa_ie != NULL) in ieee80211_add_wpa() [all …]
|
| H A D | ieee80211_ddb.c | 337 db_printf("%p:", vap); in _db_show_vap() 348 db_printf(" ifp %p(%s)", vap->iv_ifp, vap->iv_ifp->if_xname); in _db_show_vap() 377 if (vap->iv_des_nssid) in _db_show_vap() 379 vap->iv_des_ssid[0].len, vap->iv_des_ssid[0].ssid); in _db_show_vap() 401 vap->iv_scanreq_ssid[i].len, vap->iv_scanreq_ssid[i].ssid); in _db_show_vap() 459 if (vap->iv_wpa_ie != NULL || vap->iv_rsn_ie != NULL) { in _db_show_vap() 472 db_printf("\tauth %p(%s)", vap->iv_auth, vap->iv_auth->ia_name); in _db_show_vap() 483 if (vap->iv_tdma != NULL) in _db_show_vap() 519 struct ieee80211vap *vap; in _db_show_com() local 523 db_printf(" %s(%p)", vap->iv_ifp->if_xname, vap); in _db_show_com() [all …]
|
| H A D | ieee80211_scan_sw.c | 218 if (ieee80211_msg_scan(vap)) in ieee80211_swscan_start_scan_locked() 303 vap->iv_scanvalid, in ieee80211_swscan_check_scan() 360 ss->ss_vap = vap; in ieee80211_swscan_bg_scan() 396 if (ieee80211_msg_scan(vap)) in ieee80211_swscan_bg_scan() 467 cancel_scan(vap, 0, __func__); in ieee80211_swscan_cancel_scan() 481 cancel_scan(vap, 1, __func__); in ieee80211_swscan_cancel_anyscan() 528 struct ifnet *ifp = vap->iv_ifp; in ieee80211_swscan_probe_curchan() 654 vap->iv_sta_ps(vap, 1); in scan_start() 811 if_printf(vap->iv_ifp, in scan_end() 881 if_printf(vap->iv_ifp, in scan_end() [all …]
|
| H A D | ieee80211_mesh.c | 217 rt->rt_vap = vap; in mesh_rt_add_locked() 547 IEEE80211_NOTE(vap, IEEE80211_MSG_MESH, vap->iv_bss, in mesh_gatemode_cb() 656 vap->iv_mesh = NULL; in mesh_vdetach() 674 vap->iv_mesh = ms; in mesh_vattach() 704 ostate = vap->iv_state; in mesh_newstate() 748 ieee80211_create_ibss(vap, vap->iv_des_chan); in mesh_newstate() 764 vap->iv_scanreq_nssid, vap->iv_scanreq_ssid); in mesh_newstate() 822 ieee80211_note(vap, in mesh_newstate() 1475 mesh_forward(vap, m, in mesh_recv_indiv_data_to_me() 1602 if (vap->iv_acl != NULL && !vap->iv_acl->iac_check(vap, wh)) { in mesh_input() [all …]
|
| H A D | ieee80211_freebsd.c | 157 if (vap == NULL) in wlan_clone_create() 173 ic->ic_vap_delete(vap); in wlan_clone_destroy() 343 vap->iv_sysctl = ctx; in ieee80211_sysctl_vattach() 344 vap->iv_oid = oid; in ieee80211_sysctl_vattach() 914 ifp = vap->iv_ifp; in ieee80211_notify_csa() 934 ifp = vap->iv_ifp; in ieee80211_notify_radar() 955 ifp = vap->iv_ifp; in ieee80211_notify_cac() 1010 ifp = vap->iv_ifp; in ieee80211_notify_radio() 1107 ic = vap->iv_ic; in ieee80211_debugnet_init() 1121 ic = vap->iv_ic; in ieee80211_debugnet_event() [all …]
|
| H A D | ieee80211_ratectl.h | 110 vap->iv_rate->ir_deinit(vap); in ieee80211_ratectl_deinit() 116 const struct ieee80211vap *vap = ni->ni_vap; in ieee80211_ratectl_node_init() local 118 vap->iv_rate->ir_node_init(ni); in ieee80211_ratectl_node_init() 126 vap->iv_rate->ir_node_deinit(ni); in ieee80211_ratectl_node_deinit() 143 vap->iv_rate->ir_tx_complete(ni, status); in ieee80211_ratectl_tx_complete() 150 if (vap->iv_rate->ir_tx_update == NULL) in ieee80211_ratectl_tx_update() 152 vap->iv_rate->ir_tx_update(vap, stats); in ieee80211_ratectl_tx_update() 158 if (vap->iv_rate->ir_setinterval == NULL) in ieee80211_ratectl_setinterval() 160 vap->iv_rate->ir_setinterval(vap, msecs); in ieee80211_ratectl_setinterval() 168 if (vap->iv_rate->ir_node_stats == NULL) in ieee80211_ratectl_node_stats() [all …]
|
| H A D | ieee80211_hwmp.c | 274 vap->iv_hwmp = hs; in hwmp_vattach() 284 vap->iv_hwmp = NULL; in hwmp_vdetach() 326 IEEE80211_DISCARD(vap, in verify_mesh_preq_len() 350 IEEE80211_DISCARD(vap, in verify_mesh_prep_len() 373 IEEE80211_DISCARD(vap, in verify_mesh_perr_len() 391 IEEE80211_DISCARD(vap, in verify_mesh_perr_len() 575 IEEE80211_DISCARD(vap, in hwmp_recv_action_meshpath() 661 IEEE80211_NONQOS_TID, vap->iv_myaddr, da, vap->iv_myaddr); in hwmp_send_action() 843 IEEE80211_NOTE(vap, IEEE80211_MSG_HWMP, vap->iv_bss, in hwmp_rootmode_cb() 884 IEEE80211_NOTE(vap, IEEE80211_MSG_HWMP, vap->iv_bss, in hwmp_rootmode_rann_cb() [all …]
|
| H A D | ieee80211_monitor.c | 80 monitor_vdetach(struct ieee80211vap *vap) in monitor_vdetach() argument 87 vap->iv_newstate = monitor_newstate; in monitor_vattach() 88 vap->iv_input = monitor_input; in monitor_vattach() 89 vap->iv_opdetach = monitor_vdetach; in monitor_vattach() 98 struct ieee80211com *ic = vap->iv_ic; in monitor_newstate() 103 ostate = vap->iv_state; in monitor_newstate() 121 ieee80211_node_authorize(vap->iv_bss); in monitor_newstate() 133 struct ieee80211vap *vap = ni->ni_vap; in monitor_input() local 134 struct ifnet *ifp = vap->iv_ifp; in monitor_input() 138 if (ieee80211_radiotap_active_vap(vap)) in monitor_input() [all …]
|
| H A D | ieee80211_superg.c | 233 IEEE80211_DISCARD_IE(vap, in ieee80211_parse_athparams() 308 vap->iv_stats.is_ff_badhdr++; in ieee80211_ff_decap() 315 vap->iv_stats.is_ff_decap++; in ieee80211_ff_decap() 334 vap->iv_stats.is_ff_split++; in ieee80211_ff_decap() 339 vap->iv_deliver_data(vap, ni, m); /* 1st of pair */ in ieee80211_ff_decap() 452 vap->iv_stats.is_tx_nobuf++; in ieee80211_ff_encap() 461 vap->iv_stats.is_tx_nobuf++; in ieee80211_ff_encap() 472 vap->iv_stats.is_ff_encap++; in ieee80211_ff_encap() 617 struct ieee80211vap *vap; in ff_flush() local 624 vap = ni->ni_vap; in ff_flush() [all …]
|
| H A D | ieee80211_ht.c | 261 vap->iv_ampdu_limit = vap->iv_ampdu_rxmax; in ieee80211_ht_vattach() 262 vap->iv_amsdu_limit = vap->iv_htcaps & IEEE80211_HTCAP_MAXAMSDU; in ieee80211_ht_vattach() 507 vap->iv_deliver_data(vap, ni, m); in ieee80211_decap_amsdu() 1528 IEEE80211_NOTE(vap, in ieee80211_htinfo_notify() 1530 vap->iv_bss, in ieee80211_htinfo_notify() 1553 if (vap->iv_sta_assoc != vap->iv_ht_sta_assoc) { in htinfo_update() 1561 vap->iv_sta_assoc != vap->iv_ht40_sta_assoc) { in htinfo_update() 1588 htinfo_update(vap); in ieee80211_ht_node_join() 1606 htinfo_update(vap); in ieee80211_ht_node_leave() 1665 htinfo_update(vap); in ieee80211_ht_timeout() [all …]
|
| H A D | ieee80211_scan_sta.c | 579 if (isexcluded(vap, c)) in sweepchannels() 602 c = vap->iv_des_chan; in sweepchannels() 644 mode = vap->iv_des_mode; in makescanlist() 653 mode = vap->iv_des_mode; in makescanlist() 1126 rate = check_rate(vap, demote11b(vap, se->se_chan), se); in match_bss() 1404 IEEE80211_DPRINTF(vap, in sta_roam_check() 1443 sta_roam_check(ss, vap); in sta_age() 1659 if (vap->iv_des_nssid && 1663 if (vap->iv_des_nssid) { 1674 chan = vap->iv_des_chan; [all …]
|
| H A D | ieee80211_acl.c | 112 as->as_vap = vap; in acl_attach() 113 vap->iv_as = as; in acl_attach() 121 struct aclstate *as = vap->iv_as; in acl_detach() 126 acl_free_all(vap); in acl_detach() 127 vap->iv_as = NULL; in acl_detach() 160 struct aclstate *as = vap->iv_as; in acl_check() 177 struct aclstate *as = vap->iv_as; in acl_add() 216 struct aclstate *as = vap->iv_as; in acl_remove() 235 struct aclstate *as = vap->iv_as; in acl_free_all() 251 struct aclstate *as = vap->iv_as; in acl_setpolicy() [all …]
|
| H A D | ieee80211_ratectl.c | 87 struct ieee80211vap *vap = arg1; in ieee80211_ratectl_sysctl_stats() local 88 struct ieee80211com *ic = vap->iv_ic; in ieee80211_ratectl_sysctl_stats() 110 ieee80211_ratectl_init(struct ieee80211vap *vap) in ieee80211_ratectl_init() argument 112 if (vap->iv_rate == ratectls[IEEE80211_RATECTL_NONE]) in ieee80211_ratectl_init() 113 ieee80211_ratectl_set(vap, IEEE80211_RATECTL_AMRR); in ieee80211_ratectl_init() 114 vap->iv_rate->ir_init(vap); in ieee80211_ratectl_init() 117 SYSCTL_ADD_PROC(vap->iv_sysctl, SYSCTL_CHILDREN(vap->iv_oid), OID_AUTO, in ieee80211_ratectl_init() 123 ieee80211_ratectl_set(struct ieee80211vap *vap, int type) in ieee80211_ratectl_set() argument 130 IEEE80211_DPRINTF(vap, IEEE80211_MSG_RATECTL, in ieee80211_ratectl_set() 133 vap->iv_rate = ratectls[IEEE80211_RATECTL_NONE]; in ieee80211_ratectl_set() [all …]
|
| /f-stack/tools/libxo/libxo/ |
| H A D | xo.h | 233 va_list vap; in xo_emit_hp() local 236 va_end(vap); in xo_emit_hp() 244 va_list vap; in xo_emit_p() local 247 va_end(vap); in xo_emit_p() 263 va_list vap; in xo_emit_hfp() local 266 va_end(vap); in xo_emit_hfp() 274 va_list vap; in xo_emit_fp() local 277 va_end(vap); in xo_emit_fp() 492 va_list vap; in xo_emit_warn_hcp() local 495 va_end(vap); in xo_emit_warn_hcp() [all …]
|