Home
last modified time | relevance | path

Searched refs:vap (Results 1 – 25 of 234) sorted by relevance

12345678910

/freebsd/sys/net80211/
H A Dieee80211_sta.c137 if (++vap->iv_bmiss_count < vap->iv_bmiss_max) { in sta_beacon_miss()
145 ieee80211_send_probereq(vap->iv_bss, vap->iv_myaddr, in sta_beacon_miss()
146 vap->iv_bss->ni_bssid, vap->iv_bss->ni_bssid, in sta_beacon_miss()
147 vap->iv_bss->ni_essid, vap->iv_bss->ni_esslen); in sta_beacon_miss()
162 if (IEEE80211_ATH_CAP(vap, vap->iv_bss, IEEE80211_NODE_TURBOP)) in sta_beacon_miss()
218 2 * vap->iv_bmissthreshold * vap->iv_bss->ni_intval); in sta_swbmiss_start()
220 callout_reset(&vap->iv_swbmiss, vap->iv_swbmiss_period, in sta_swbmiss_start()
277 vap->iv_auth->ia_detach(vap); in sta_newstate()
295 vap->iv_scanreq_nssid, vap->iv_scanreq_ssid); in sta_newstate()
432 vap->iv_sta_ps(vap, 0); in sta_newstate()
[all …]
H A Dieee80211_proto.c411 vap->iv_opdetach(vap); in ieee80211_proto_vdetach()
418 vap->iv_auth->ia_detach(vap); in ieee80211_proto_vdetach()
423 vap->iv_acl->iac_detach(vap); in ieee80211_proto_vdetach()
869 vap->iv_updateslot(vap); in vap_update_slot()
1052 vap->iv_preamble_update(vap); in vap_update_preamble()
1192 vap->iv_ht_protmode_update(vap); in vap_update_ht_protmode()
1885 vap->iv_wme_update(vap, in vap_update_wme()
2233 vap->iv_bmiss(vap); in beacon_miss()
2247 vap->iv_bmiss(vap); in beacon_swmiss()
2489 vap->iv_newstate(vap, in wakeupwaiting()
[all …]
H A Dieee80211_adhoc.c100 vap->iv_input = adhoc_input; in adhoc_vattach()
123 if (ni != vap->iv_bss) in sta_leave()
139 ostate = vap->iv_state; in adhoc_newstate()
158 ieee80211_reset_bss(vap); in adhoc_newstate()
177 vap->iv_des_chan, vap->iv_flags_ht)); in adhoc_newstate()
193 vap->iv_scanreq_nssid, vap->iv_scanreq_ssid); in adhoc_newstate()
228 ni = vap->iv_bss; in adhoc_newstate()
233 ieee80211_note(vap, in adhoc_newstate()
264 vap->iv_sta_ps(vap, 0); in adhoc_newstate()
412 ni == vap->iv_bss && in adhoc_input()
[all …]
H A Dieee80211_tdma.c192 vap->iv_tdma = ts; in ieee80211_tdma_vattach()
204 ts->tdma_opdetach(vap); in tdma_vdetach()
206 vap->iv_tdma = NULL; in tdma_vdetach()
216 if (ni != vap->iv_bss) in sta_leave()
233 ostate = vap->iv_state; in tdma_newstate()
260 vap->iv_scanreq_nssid, vap->iv_scanreq_ssid); in tdma_newstate()
284 callout_reset(&vap->iv_swbmiss, vap->iv_swbmiss_period, in tdma_newstate()
301 IEEE80211_DPRINTF(vap, in tdma_beacon_miss()
304 vap->iv_opmode, ieee80211_state_name[vap->iv_state]); in tdma_beacon_miss()
316 ieee80211_scan_assoc_fail(vap, vap->iv_bss->ni_macaddr, in tdma_beacon_miss()
[all …]
H A Dieee80211_ioctl.c738 ni = ieee80211_find_vap_node(&vap->iv_ic->ic_sta, vap, in ieee80211_ioctl_getstavlan()
926 vap->iv_bss->ni_macaddr : vap->iv_bss->ni_bssid, in ieee80211_ioctl_get80211()
1198 ni = ieee80211_find_vap_node(&vap->iv_ic->ic_sta, vap, in ieee80211_ioctl_setkey()
1285 ieee80211_crypto_delkey(vap, &vap->iv_nw_keys[kid]); in ieee80211_ioctl_delkey()
1345 if (vap != mop->vap) in domlme()
1410 mlmedebug(vap, vap->iv_bss->ni_macaddr, op, reason); in setmlme_common()
1415 mlmeop.vap = vap; in setmlme_common()
1433 mlmedebug(vap, vap->iv_bss->ni_macaddr, op, reason); in setmlme_common()
2595 __func__, vap, vap->iv_state, ieee80211_state_name[vap->iv_state], in ieee80211_scanreq()
3054 vap->iv_des_nssid, vap->iv_des_ssid); in ieee80211_ioctl_set80211()
[all …]
H A Dieee80211_crypto.c121 return vap->iv_key_alloc(vap, key, keyix, rxkeyix); in dev_key_alloc()
128 return vap->iv_key_delete(vap, key); in dev_key_delete()
134 return vap->iv_key_set(vap, key); in dev_key_set()
167 ieee80211_crypto_resetkey(vap, &vap->iv_nw_keys[i], in ieee80211_crypto_vattach()
475 (void) _ieee80211_crypto_delkey(vap, &vap->iv_nw_keys[i]); in ieee80211_crypto_delglobalkeys()
520 return dev_key_set(vap, key); in ieee80211_crypto_setkey()
580 return &vap->iv_nw_keys[vap->iv_def_txkey]; in ieee80211_crypto_get_txkey()
764 dev_key_set(vap, k); in load_ucastkey()
775 struct ieee80211vap *vap; in ieee80211_crypto_reload_keys() local
788 dev_key_set(vap, k); in ieee80211_crypto_reload_keys()
[all …]
H A Dieee80211_hostap.c191 vap->iv_auth->ia_detach(vap); in hostap_newstate()
226 ieee80211_create_ibss(vap, vap->iv_des_chan); in hostap_newstate()
242 vap->iv_scanreq_nssid, vap->iv_scanreq_ssid); in hostap_newstate()
330 vap->iv_auth->ia_attach(vap); in hostap_newstate()
332 vap->iv_auth->ia_detach(vap); in hostap_newstate()
399 &vap->iv_ic->ic_sta, vap, eh->ether_dhost); in hostap_deliver_data()
845 if ((ieee80211_msg_debug(vap) && doprint(vap, subtype)) || in hostap_input()
921 KASSERT(vap->iv_state == IEEE80211_S_RUN, ("state %d", vap->iv_state)); in hostap_auth_open()
1002 KASSERT(vap->iv_state == IEEE80211_S_RUN, ("state %d", vap->iv_state)); in hostap_auth_shared()
1888 if (vap->iv_acl != NULL && !vap->iv_acl->iac_check(vap, wh)) { in hostap_recv_mgmt()
[all …]
H A Dieee80211_wds.c84 if (vap->iv_bss != NULL) { in wds_vdetach()
86 if (vap->iv_bss->ni_wdsvap == vap) in wds_vdetach()
95 vap->iv_input = wds_input; in wds_vattach()
178 obss = vap->iv_update_bss(vap, ni); in ieee80211_create_wds()
179 ni->ni_wdsvap = vap; in ieee80211_create_wds()
197 ni = ieee80211_node_create_wds(vap, vap->iv_des_bssid, chan); in ieee80211_create_wds()
199 obss = vap->iv_update_bss(vap, ieee80211_ref_node(ni)); in ieee80211_create_wds()
235 struct ieee80211vap *vap; in ieee80211_dwds_mcast() local
250 ifp = vap->iv_ifp; in ieee80211_dwds_mcast()
350 ostate = vap->iv_state; in wds_newstate()
[all …]
H A Dieee80211_power.c86 vap->iv_tim_len = howmany(vap->iv_max_aid,8) * sizeof(uint8_t); in ieee80211_power_latevattach()
87 vap->iv_tim_bitmap = (uint8_t *) IEEE80211_MALLOC(vap->iv_tim_len, in ieee80211_power_latevattach()
93 vap->iv_tim_len = 0; in ieee80211_power_latevattach()
305 vap->iv_ps_pending++; in ieee80211_set_tim()
311 vap->iv_update_beacon(vap, IEEE80211_BEACON_TIM); in ieee80211_set_tim()
487 vap->iv_ps_sta++; in ieee80211_node_pwrsave()
495 vap->iv_update_ps(vap, vap->iv_ps_sta); in ieee80211_node_pwrsave()
498 vap->iv_ps_sta--; in ieee80211_node_pwrsave()
510 vap->iv_update_ps(vap, vap->iv_ps_sta); in ieee80211_node_pwrsave()
587 vap->iv_sta_ps(vap, 0); in ieee80211_sta_tim_notify()
[all …]
H A Dieee80211_node.c167 vap->iv_inact_init, vap->iv_inact_auth, in ieee80211_node_vattach()
168 vap->iv_inact_run, vap->iv_inact_probe); in ieee80211_node_vattach()
217 vap->iv_update_bss(vap, NULL); in ieee80211_node_vdetach()
362 ni = ieee80211_alloc_node(&ic->ic_sta, vap, vap->iv_myaddr, in ieee80211_create_ibss()
475 ni = ieee80211_alloc_node(&ic->ic_sta, vap, vap->iv_myaddr, in ieee80211_reset_bss()
478 obss = vap->iv_update_bss(vap, ieee80211_ref_node(ni)); in ieee80211_reset_bss()
532 !match_ssid(ni, vap->iv_des_nssid, vap->iv_des_ssid)) in check_bss()
574 !match_ssid(ni, vap->iv_des_nssid, vap->iv_des_ssid)) in check_bss_debug()
901 ieee80211_fix_rate(vap->iv_bss, &vap->iv_bss->ni_rates, in ieee80211_sta_join1()
2612 if (vap != NULL && ni->ni_vap != vap) in ieee80211_iterate_nodes_vap()
[all …]
H A Dieee80211_output.c378 if (IS_DWDS(vap)) { in ieee80211_start_pkt()
769 ic = vap->iv_ic; in ieee80211_output()
1057 if ((ieee80211_msg_debug(vap) && doprint(vap, type)) || in ieee80211_mgmt_output()
1078 wakeup(vap); in ieee80211_nulldata_transmitted()
1437 IEEE80211_KEY_UNDEFINED(&vap->iv_nw_keys[vap->iv_def_txkey])) in ieee80211_crypto_getucastkey()
1439 return &vap->iv_nw_keys[vap->iv_def_txkey]; in ieee80211_crypto_getucastkey()
1455 IEEE80211_KEY_UNDEFINED(&vap->iv_nw_keys[vap->iv_def_txkey])) in ieee80211_crypto_getmcastkey()
1457 return &vap->iv_nw_keys[vap->iv_def_txkey]; in ieee80211_crypto_getmcastkey()
2333 vap->iv_quiet_count_value = vap->iv_quiet_count; in ieee80211_add_quiet()
2397 if (vap->iv_flags & IEEE80211_F_WPA1 && vap->iv_wpa_ie != NULL) in ieee80211_add_wpa()
[all …]
H A Dieee80211_scan.c131 struct ieee80211com *ic = vap->iv_ic; in ieee80211_scan_vattach()
140 memset(vap->iv_roamparms, 0, sizeof(vap->iv_roamparms)); in ieee80211_scan_vattach()
148 ic->ic_scan_methods->sc_vattach(vap); in ieee80211_scan_vattach()
154 struct ieee80211com *ic = vap->iv_ic; in ieee80211_scan_vdetach()
251 vap->iv_ifp->if_xname, in ieee80211_scan_update_locked()
255 ss->ss_vap = vap; in ieee80211_scan_update_locked()
302 if_printf(vap->iv_ifp, "scan set "); in ieee80211_scan_dump()
366 __func__, vap->iv_opmode); in ieee80211_check_scan()
413 return ieee80211_check_scan(vap, in ieee80211_check_scan_current()
416 vap->iv_des_nssid, vap->iv_des_ssid); in ieee80211_check_scan_current()
[all …]
H A Dieee80211_scan_sw.c216 if (ieee80211_msg_scan(vap)) in ieee80211_swscan_start_scan_locked()
301 vap->iv_scanvalid, in ieee80211_swscan_check_scan()
360 ss->ss_vap = vap; in ieee80211_swscan_bg_scan()
397 if (ieee80211_msg_scan(vap)) in ieee80211_swscan_bg_scan()
468 cancel_scan(vap, 0, __func__); in ieee80211_swscan_cancel_scan()
482 cancel_scan(vap, 1, __func__); in ieee80211_swscan_cancel_anyscan()
529 struct ifnet *ifp = vap->iv_ifp; in ieee80211_swscan_probe_curchan()
655 vap->iv_sta_ps(vap, 1); in scan_start()
812 if_printf(vap->iv_ifp, in scan_end()
883 if_printf(vap->iv_ifp, in scan_end()
[all …]
H A Dieee80211_mesh.c213 rt->rt_vap = vap; in mesh_rt_add_locked()
543 IEEE80211_NOTE(vap, IEEE80211_MSG_MESH, vap->iv_bss, in mesh_gatemode_cb()
652 vap->iv_mesh = NULL; in mesh_vdetach()
670 vap->iv_mesh = ms; in mesh_vattach()
700 ostate = vap->iv_state; in mesh_newstate()
744 ieee80211_create_ibss(vap, vap->iv_des_chan); in mesh_newstate()
760 vap->iv_scanreq_nssid, vap->iv_scanreq_ssid); in mesh_newstate()
818 ieee80211_note(vap, in mesh_newstate()
1471 mesh_forward(vap, m, in mesh_recv_indiv_data_to_me()
1598 if (vap->iv_acl != NULL && !vap->iv_acl->iac_check(vap, wh)) { in mesh_input()
[all …]
H A Dieee80211_ddb.c475 db_printf(" ifp %p(%s)", vap->iv_ifp, if_name(vap->iv_ifp)); in _db_show_vap()
489 vap->iv_nstate_b, vap->iv_nstate_n); in _db_show_vap()
492 vap->iv_nstates[i], ieee80211_state_name[vap->iv_nstates[i]], in _db_show_vap()
493 &vap->iv_nstate_task[i], vap->iv_nstate_args[i]); in _db_show_vap()
517 vap->iv_des_ssid[0].len, vap->iv_des_ssid[0].ssid); in _db_show_vap()
539 vap->iv_scanreq_ssid[i].len, vap->iv_scanreq_ssid[i].ssid); in _db_show_vap()
597 if (vap->iv_wpa_ie != NULL || vap->iv_rsn_ie != NULL) { in _db_show_vap()
610 db_printf("\tauth %p(%s)", vap->iv_auth, vap->iv_auth->ia_name); in _db_show_vap()
635 _db_show_rate(vap->iv_rate, vap->iv_rs, showprocs); in _db_show_vap()
663 db_printf(" %s(%p)", if_name(vap->iv_ifp), vap); in _db_show_com()
[all …]
H A Dieee80211_freebsd.c157 if (vap == NULL) in wlan_clone_create()
164 *ifpp = vap->iv_ifp; in wlan_clone_create()
347 vap->iv_sysctl = ctx; in ieee80211_sysctl_vattach()
348 vap->iv_oid = oid; in ieee80211_sysctl_vattach()
918 ifp = vap->iv_ifp; in ieee80211_notify_csa()
938 ifp = vap->iv_ifp; in ieee80211_notify_radar()
959 ifp = vap->iv_ifp; in ieee80211_notify_cac()
1014 ifp = vap->iv_ifp; in ieee80211_notify_radio()
1111 ic = vap->iv_ic; in ieee80211_debugnet_init()
1125 ic = vap->iv_ic; in ieee80211_debugnet_event()
[all …]
H A Dieee80211_hwmp.c269 vap->iv_hwmp = hs; in hwmp_vattach()
279 vap->iv_hwmp = NULL; in hwmp_vdetach()
321 IEEE80211_DISCARD(vap, in verify_mesh_preq_len()
345 IEEE80211_DISCARD(vap, in verify_mesh_prep_len()
368 IEEE80211_DISCARD(vap, in verify_mesh_perr_len()
386 IEEE80211_DISCARD(vap, in verify_mesh_perr_len()
570 IEEE80211_DISCARD(vap, in hwmp_recv_action_meshpath()
656 IEEE80211_NONQOS_TID, vap->iv_myaddr, da, vap->iv_myaddr); in hwmp_send_action()
838 IEEE80211_NOTE(vap, IEEE80211_MSG_HWMP, vap->iv_bss, in hwmp_rootmode_cb()
879 IEEE80211_NOTE(vap, IEEE80211_MSG_HWMP, vap->iv_bss, in hwmp_rootmode_rann_cb()
[all …]
H A Dieee80211_superg.c231 IEEE80211_DISCARD_IE(vap, in ieee80211_parse_athparams()
306 vap->iv_stats.is_ff_badhdr++; in ieee80211_ff_decap()
313 vap->iv_stats.is_ff_decap++; in ieee80211_ff_decap()
332 vap->iv_stats.is_ff_split++; in ieee80211_ff_decap()
337 vap->iv_deliver_data(vap, ni, m); /* 1st of pair */ in ieee80211_ff_decap()
450 vap->iv_stats.is_tx_nobuf++; in ieee80211_ff_encap()
459 vap->iv_stats.is_tx_nobuf++; in ieee80211_ff_encap()
470 vap->iv_stats.is_ff_encap++; in ieee80211_ff_encap()
615 struct ieee80211vap *vap; in ff_flush() local
622 vap = ni->ni_vap; in ff_flush()
[all …]
H A Dieee80211_ratectl.h111 vap->iv_rate->ir_deinit(vap); in ieee80211_ratectl_deinit()
117 const struct ieee80211vap *vap = ni->ni_vap; in ieee80211_ratectl_node_init() local
119 vap->iv_rate->ir_node_init(ni); in ieee80211_ratectl_node_init()
127 vap->iv_rate->ir_node_deinit(ni); in ieee80211_ratectl_node_deinit()
144 vap->iv_rate->ir_tx_complete(ni, status); in ieee80211_ratectl_tx_complete()
151 if (vap->iv_rate->ir_tx_update == NULL) in ieee80211_ratectl_tx_update()
153 vap->iv_rate->ir_tx_update(vap, stats); in ieee80211_ratectl_tx_update()
159 if (vap->iv_rate->ir_setinterval == NULL) in ieee80211_ratectl_setinterval()
161 vap->iv_rate->ir_setinterval(vap, msecs); in ieee80211_ratectl_setinterval()
169 if (vap->iv_rate->ir_node_stats == NULL) in ieee80211_ratectl_node_stats()
[all …]
H A Dieee80211_ht.c256 vap->iv_ampdu_limit = vap->iv_ampdu_rxmax; in ieee80211_ht_vattach()
257 vap->iv_amsdu_limit = vap->iv_htcaps & IEEE80211_HTCAP_MAXAMSDU; in ieee80211_ht_vattach()
502 vap->iv_deliver_data(vap, ni, m); in ieee80211_decap_amsdu()
1523 IEEE80211_NOTE(vap, in ieee80211_htinfo_notify()
1525 vap->iv_bss, in ieee80211_htinfo_notify()
1548 if (vap->iv_sta_assoc != vap->iv_ht_sta_assoc) { in htinfo_update()
1556 vap->iv_sta_assoc != vap->iv_ht40_sta_assoc) { in htinfo_update()
1583 htinfo_update(vap); in ieee80211_ht_node_join()
1601 htinfo_update(vap); in ieee80211_ht_node_leave()
1660 htinfo_update(vap); in ieee80211_ht_timeout()
[all …]
H A Dieee80211_scan_sta.c577 if (isexcluded(vap, c)) in sweepchannels()
600 c = vap->iv_des_chan; in sweepchannels()
642 mode = vap->iv_des_mode; in makescanlist()
651 mode = vap->iv_des_mode; in makescanlist()
1124 rate = check_rate(vap, demote11b(vap, se->se_chan), se); in match_bss()
1402 IEEE80211_DPRINTF(vap, in sta_roam_check()
1441 sta_roam_check(ss, vap); in sta_age()
1657 if (vap->iv_des_nssid &&
1661 if (vap->iv_des_nssid) {
1672 chan = vap->iv_des_chan;
[all …]
H A Dieee80211_monitor.c75 monitor_vdetach(struct ieee80211vap *vap) in monitor_vdetach() argument
82 vap->iv_newstate = monitor_newstate; in monitor_vattach()
83 vap->iv_input = monitor_input; in monitor_vattach()
84 vap->iv_opdetach = monitor_vdetach; in monitor_vattach()
93 struct ieee80211com *ic = vap->iv_ic; in monitor_newstate()
98 ostate = vap->iv_state; in monitor_newstate()
116 ieee80211_node_authorize(vap->iv_bss); in monitor_newstate()
128 struct ieee80211vap *vap = ni->ni_vap; in monitor_input() local
129 struct ifnet *ifp = vap->iv_ifp; in monitor_input()
133 if (ieee80211_radiotap_active_vap(vap)) in monitor_input()
[all …]
H A Dieee80211_acl.c110 as->as_vap = vap; in acl_attach()
111 vap->iv_as = as; in acl_attach()
119 struct aclstate *as = vap->iv_as; in acl_detach()
124 acl_free_all(vap); in acl_detach()
125 vap->iv_as = NULL; in acl_detach()
158 struct aclstate *as = vap->iv_as; in acl_check()
175 struct aclstate *as = vap->iv_as; in acl_add()
214 struct aclstate *as = vap->iv_as; in acl_remove()
233 struct aclstate *as = vap->iv_as; in acl_free_all()
249 struct aclstate *as = vap->iv_as; in acl_setpolicy()
[all …]
/freebsd/contrib/libxo/libxo/
H A Dxo.h233 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 …]
/freebsd/sys/dev/wtap/
H A Dif_wtap.c239 struct ieee80211vap *vap = arg; in wtap_beacon_intrp() local
300 switch (vap->iv_opmode) { in wtap_newstate()
328 wtap_beacon_config(sc, vap); in wtap_newstate()
333 wtap_beacon_intrp, vap); in wtap_newstate()
355 avp->av_bmiss(vap); in wtap_bmiss()
365 struct ieee80211vap *vap; in wtap_vap_create() local
387 vap->iv_reset = wtap_reset_vap; in wtap_vap_create()
391 avp->av_bmiss = vap->iv_bmiss; in wtap_vap_create()
392 vap->iv_bmiss = wtap_bmiss; in wtap_vap_create()
406 return vap; in wtap_vap_create()
[all …]

12345678910