/freebsd/sys/net80211/ |
H A D | ieee80211_sta.c | 90 sta_vdetach(struct ieee80211vap *vap) in sta_vdetach() argument 95 sta_vattach(struct ieee80211vap *vap) in sta_vattach() argument 97 vap->iv_newstate = sta_newstate; in sta_vattach() 98 vap->iv_input = sta_input; in sta_vattach() 99 vap->iv_recv_mgmt = sta_recv_mgmt; in sta_vattach() 100 vap->iv_recv_ctl = sta_recv_ctl; in sta_vattach() 101 vap->iv_opdetach = sta_vdetach; in sta_vattach() 102 vap->iv_bmiss = sta_beacon_miss; in sta_vattach() 111 sta_beacon_miss(struct ieee80211vap *vap) in sta_beacon_miss() argument 113 struct ieee80211com *ic = vap->iv_ic; in sta_beacon_miss() [all …]
|
H A D | ieee80211_proto.c | 317 null_update_beacon(struct ieee80211vap *vap, int item) in null_update_beacon() argument 322 ieee80211_proto_vattach(struct ieee80211vap *vap) in ieee80211_proto_vattach() argument 324 struct ieee80211com *ic = vap->iv_ic; in ieee80211_proto_vattach() 325 struct ifnet *ifp = vap->iv_ifp; in ieee80211_proto_vattach() 334 vap->iv_rtsthreshold = IEEE80211_RTS_DEFAULT; in ieee80211_proto_vattach() 335 vap->iv_fragthreshold = IEEE80211_FRAG_DEFAULT; in ieee80211_proto_vattach() 336 vap->iv_bmiss_max = IEEE80211_BMISS_MAX; in ieee80211_proto_vattach() 337 callout_init_mtx(&vap->iv_swbmiss, IEEE80211_LOCK_OBJ(ic), 0); in ieee80211_proto_vattach() 338 callout_init(&vap->iv_mgtsend, 1); in ieee80211_proto_vattach() 340 TASK_INIT(&vap->iv_nstate_task[i], 0, ieee80211_newstate_cb, vap); in ieee80211_proto_vattach() [all …]
|
H A D | ieee80211_adhoc.c | 92 adhoc_vdetach(struct ieee80211vap *vap) in adhoc_vdetach() argument 97 adhoc_vattach(struct ieee80211vap *vap) in adhoc_vattach() argument 99 vap->iv_newstate = adhoc_newstate; in adhoc_vattach() 100 vap->iv_input = adhoc_input; in adhoc_vattach() 101 if (vap->iv_opmode == IEEE80211_M_IBSS) in adhoc_vattach() 102 vap->iv_recv_mgmt = adhoc_recv_mgmt; in adhoc_vattach() 104 vap->iv_recv_mgmt = ahdemo_recv_mgmt; in adhoc_vattach() 105 vap->iv_recv_ctl = adhoc_recv_ctl; in adhoc_vattach() 106 vap->iv_opdetach = adhoc_vdetach; in adhoc_vattach() 113 if (vap->iv_caps & IEEE80211_C_TDMA) in adhoc_vattach() [all …]
|
H A D | ieee80211_ioctl.c | 73 ieee80211_ioctl_getkey(u_long cmd, struct ieee80211vap *vap, in ieee80211_ioctl_getkey() argument 76 struct ieee80211com *ic = vap->iv_ic; in ieee80211_ioctl_getkey() 91 ni = ieee80211_find_vap_node(&ic->ic_sta, vap, ik.ik_macaddr); in ieee80211_ioctl_getkey() 98 wk = &vap->iv_nw_keys[kid]; in ieee80211_ioctl_getkey() 99 IEEE80211_ADDR_COPY(&ik.ik_macaddr, vap->iv_bss->ni_macaddr); in ieee80211_ioctl_getkey() 106 if (wk->wk_keyix == vap->iv_def_txkey) in ieee80211_ioctl_getkey() 108 if (ieee80211_priv_check_vap_getkey(cmd, vap, NULL) == 0) { in ieee80211_ioctl_getkey() 130 ieee80211_ioctl_getchanlist(struct ieee80211vap *vap, struct ieee80211req *ireq) in ieee80211_ioctl_getchanlist() argument 132 struct ieee80211com *ic = vap->iv_ic; in ieee80211_ioctl_getchanlist() 140 ieee80211_ioctl_getchaninfo(struct ieee80211vap *vap, struct ieee80211req *ireq) in ieee80211_ioctl_getchaninfo() argument [all …]
|
H A D | ieee80211_tdma.c | 111 static void tdma_vdetach(struct ieee80211vap *vap); 113 static void tdma_beacon_miss(struct ieee80211vap *vap); 116 static int tdma_update(struct ieee80211vap *vap, 123 settxparms(struct ieee80211vap *vap, enum ieee80211_phymode mode, int rate) in settxparms() argument 125 if (isclr(vap->iv_ic->ic_modecaps, mode)) in settxparms() 128 vap->iv_txparms[mode].ucastrate = rate; in settxparms() 129 vap->iv_txparms[mode].mcastrate = rate; in settxparms() 145 ieee80211_tdma_vattach(struct ieee80211vap *vap) in ieee80211_tdma_vattach() argument 149 KASSERT(vap->iv_caps & IEEE80211_C_TDMA, in ieee80211_tdma_vattach() 150 ("not a tdma vap, caps 0x%x", vap->iv_caps)); in ieee80211_tdma_vattach() [all …]
|
H A D | ieee80211_hostap.c | 91 hostap_vdetach(struct ieee80211vap *vap) in hostap_vdetach() argument 96 hostap_vattach(struct ieee80211vap *vap) in hostap_vattach() argument 98 vap->iv_newstate = hostap_newstate; in hostap_vattach() 99 vap->iv_input = hostap_input; in hostap_vattach() 100 vap->iv_recv_mgmt = hostap_recv_mgmt; in hostap_vattach() 101 vap->iv_recv_ctl = hostap_recv_ctl; in hostap_vattach() 102 vap->iv_opdetach = hostap_vdetach; in hostap_vattach() 103 vap->iv_deliver_data = hostap_deliver_data; in hostap_vattach() 104 vap->iv_recv_pspoll = ieee80211_recv_pspoll; in hostap_vattach() 121 struct ieee80211vap *vap = ni->ni_vap; in sta_csa() local [all …]
|
H A D | ieee80211_wds.c | 82 wds_vdetach(struct ieee80211vap *vap) in wds_vdetach() argument 84 if (vap->iv_bss != NULL) { in wds_vdetach() 86 if (vap->iv_bss->ni_wdsvap == vap) in wds_vdetach() 87 vap->iv_bss->ni_wdsvap = NULL; in wds_vdetach() 92 wds_vattach(struct ieee80211vap *vap) in wds_vattach() argument 94 vap->iv_newstate = wds_newstate; in wds_vattach() 95 vap->iv_input = wds_input; in wds_vattach() 96 vap->iv_recv_mgmt = wds_recv_mgmt; in wds_vattach() 97 vap->iv_opdetach = wds_vdetach; in wds_vattach() 123 ieee80211_create_wds(struct ieee80211vap *vap, struct ieee80211_channel *chan) in ieee80211_create_wds() argument [all …]
|
H A D | ieee80211_crypto.c | 62 null_key_alloc(struct ieee80211vap *vap, struct ieee80211_key *k, in null_key_alloc() argument 66 if (!ieee80211_is_key_global(vap, k)) { in null_key_alloc() 81 *keyix = ieee80211_crypto_get_key_wepidx(vap, k); in null_key_alloc() 87 null_key_delete(struct ieee80211vap *vap, const struct ieee80211_key *k) in null_key_delete() argument 92 null_key_set(struct ieee80211vap *vap, const struct ieee80211_key *k) in null_key_set() argument 96 static void null_key_update(struct ieee80211vap *vap) {} in null_key_update() argument 108 cipher_attach(struct ieee80211vap *vap, struct ieee80211_key *key) in cipher_attach() argument 110 return key->wk_cipher->ic_attach(vap, key); in cipher_attach() 117 dev_key_alloc(struct ieee80211vap *vap, in dev_key_alloc() argument 121 return vap->iv_key_alloc(vap, key, keyix, rxkeyix); in dev_key_alloc() [all …]
|
H A D | ieee80211_power.c | 66 ieee80211_power_vattach(struct ieee80211vap *vap) in ieee80211_power_vattach() argument 68 if (vap->iv_opmode == IEEE80211_M_HOSTAP || in ieee80211_power_vattach() 69 vap->iv_opmode == IEEE80211_M_IBSS) { in ieee80211_power_vattach() 71 vap->iv_update_ps = ieee80211_update_ps; in ieee80211_power_vattach() 72 vap->iv_set_tim = ieee80211_set_tim; in ieee80211_power_vattach() 74 vap->iv_node_ps = ieee80211_node_pwrsave; in ieee80211_power_vattach() 75 vap->iv_sta_ps = ieee80211_sta_pwrsave; in ieee80211_power_vattach() 79 ieee80211_power_latevattach(struct ieee80211vap *vap) in ieee80211_power_latevattach() argument 85 if (vap->iv_opmode == IEEE80211_M_HOSTAP) { in ieee80211_power_latevattach() 86 vap->iv_tim_len = howmany(vap->iv_max_aid,8) * sizeof(uint8_t); in ieee80211_power_latevattach() [all …]
|
H A D | ieee80211_node.c | 154 ieee80211_node_vattach(struct ieee80211vap *vap) in ieee80211_node_vattach() argument 157 vap->iv_max_aid = IEEE80211_AID_DEF; in ieee80211_node_vattach() 160 vap->iv_inact_init = IEEE80211_INACT_INIT; in ieee80211_node_vattach() 161 vap->iv_inact_auth = IEEE80211_INACT_AUTH; in ieee80211_node_vattach() 162 vap->iv_inact_run = IEEE80211_INACT_RUN; in ieee80211_node_vattach() 163 vap->iv_inact_probe = IEEE80211_INACT_PROBE; in ieee80211_node_vattach() 165 IEEE80211_DPRINTF(vap, IEEE80211_MSG_INACT, in ieee80211_node_vattach() 167 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() 172 ieee80211_node_latevattach(struct ieee80211vap *vap) in ieee80211_node_latevattach() argument [all …]
|
H A D | ieee80211_output.c | 94 doprint(struct ieee80211vap *vap, int subtype) in doprint() argument 98 return (vap->iv_opmode == IEEE80211_M_IBSS); in doprint() 121 ieee80211_vap_pkt_send_dest(struct ieee80211vap *vap, struct mbuf *m, in ieee80211_vap_pkt_send_dest() argument 124 struct ieee80211com *ic = vap->iv_ic; in ieee80211_vap_pkt_send_dest() 125 struct ifnet *ifp = vap->iv_ifp; in ieee80211_vap_pkt_send_dest() 155 IEEE80211_DISCARD_MAC(vap, IEEE80211_MSG_OUTPUT, in ieee80211_vap_pkt_send_dest() 158 vap->iv_stats.is_tx_classify++; in ieee80211_vap_pkt_send_dest() 190 (vap->iv_flags_ht & IEEE80211_FHT_AMPDU_TX)); in ieee80211_vap_pkt_send_dest() 193 (vap->iv_flags_ht & IEEE80211_FHT_AMSDU_TX)); in ieee80211_vap_pkt_send_dest() 197 (IEEE80211_ATH_CAP(vap, ni, IEEE80211_NODE_FF)); in ieee80211_vap_pkt_send_dest() [all …]
|
H A D | ieee80211_scan.c | 129 ieee80211_scan_vattach(struct ieee80211vap *vap) in ieee80211_scan_vattach() argument 131 struct ieee80211com *ic = vap->iv_ic; in ieee80211_scan_vattach() 134 vap->iv_bgscanidle = (IEEE80211_BGSCAN_IDLE_DEFAULT*1000)/hz; in ieee80211_scan_vattach() 135 vap->iv_bgscanintvl = IEEE80211_BGSCAN_INTVAL_DEFAULT*hz; in ieee80211_scan_vattach() 136 vap->iv_scanvalid = IEEE80211_SCAN_VALID_DEFAULT*hz; in ieee80211_scan_vattach() 138 vap->iv_roaming = IEEE80211_ROAMING_AUTO; in ieee80211_scan_vattach() 140 memset(vap->iv_roamparms, 0, sizeof(vap->iv_roamparms)); in ieee80211_scan_vattach() 145 memcpy(&vap->iv_roamparms[m], &defroam[m], sizeof(defroam[m])); in ieee80211_scan_vattach() 148 ic->ic_scan_methods->sc_vattach(vap); in ieee80211_scan_vattach() 152 ieee80211_scan_vdetach(struct ieee80211vap * vap) ieee80211_scan_vdetach() argument 234 ieee80211_scan_update_locked(struct ieee80211vap * vap,const struct ieee80211_scanner * scan) ieee80211_scan_update_locked() argument 300 struct ieee80211vap *vap = ss->ss_vap; ieee80211_scan_dump() local 310 ieee80211_scan_copy_ssid(struct ieee80211vap * vap,struct ieee80211_scan_state * ss,int nssid,const struct ieee80211_scan_ssid ssids[]) ieee80211_scan_copy_ssid() argument 328 ieee80211_start_scan(struct ieee80211vap * vap,int flags,u_int duration,u_int mindwell,u_int maxdwell,u_int nssid,const struct ieee80211_scan_ssid ssids[]) ieee80211_start_scan() argument 353 ieee80211_check_scan(struct ieee80211vap * vap,int flags,u_int duration,u_int mindwell,u_int maxdwell,u_int nssid,const struct ieee80211_scan_ssid ssids[]) ieee80211_check_scan() argument 411 ieee80211_check_scan_current(struct ieee80211vap * vap) ieee80211_check_scan_current() argument 424 ieee80211_bg_scan(struct ieee80211vap * vap,int flags) ieee80211_bg_scan() argument 452 ieee80211_cancel_scan(struct ieee80211vap * vap) ieee80211_cancel_scan() argument 466 ieee80211_cancel_anyscan(struct ieee80211vap * vap) ieee80211_cancel_anyscan() argument 479 ieee80211_scan_next(struct ieee80211vap * vap) ieee80211_scan_next() argument 492 ieee80211_scan_done(struct ieee80211vap * vap) ieee80211_scan_done() argument 516 ieee80211_probe_curchan(struct ieee80211vap * vap,int force) ieee80211_probe_curchan() argument 580 ieee80211_add_scan(struct ieee80211vap * vap,struct ieee80211_channel * curchan,const struct ieee80211_scanparams * sp,const struct ieee80211_frame * wh,int subtype,int rssi,int noise) ieee80211_add_scan() argument 609 ieee80211_scan_assoc_success(struct ieee80211vap * vap,const uint8_t mac[IEEE80211_ADDR_LEN]) ieee80211_scan_assoc_success() argument 625 ieee80211_scan_assoc_fail(struct ieee80211vap * vap,const uint8_t mac[IEEE80211_ADDR_LEN],int reason) ieee80211_scan_assoc_fail() argument 641 ieee80211_scan_iterate(struct ieee80211vap * vap,ieee80211_scan_iter_func * f,void * arg) ieee80211_scan_iterate() argument 654 ieee80211_scan_flush(struct ieee80211vap * vap) ieee80211_scan_flush() argument [all...] |
H A D | ieee80211_scan_sw.c | 125 ieee80211_swscan_vattach(struct ieee80211vap *vap) in ieee80211_swscan_vattach() argument 129 * TODO: all of the vap scan calls should be methods! in ieee80211_swscan_vattach() 135 ieee80211_swscan_vdetach(struct ieee80211vap *vap) in ieee80211_swscan_vdetach() argument 137 struct ieee80211com *ic = vap->iv_ic; in ieee80211_swscan_vdetach() 142 if (ss != NULL && ss->ss_vap == vap && in ieee80211_swscan_vdetach() 148 ieee80211_swscan_set_scan_duration(struct ieee80211vap *vap, u_int duration) in ieee80211_swscan_set_scan_duration() argument 150 struct ieee80211com *ic = vap->iv_ic; in ieee80211_swscan_set_scan_duration() 165 struct ieee80211vap *vap, int flags, u_int duration, in ieee80211_swscan_start_scan_locked() argument 169 struct ieee80211com *ic = vap->iv_ic; in ieee80211_swscan_start_scan_locked() 175 IEEE80211_DPRINTF(vap, IEEE80211_MSG_SCA in ieee80211_swscan_start_scan_locked() 240 ieee80211_swscan_start_scan(const struct ieee80211_scanner * scan,struct ieee80211vap * vap,int flags,u_int duration,u_int mindwell,u_int maxdwell,u_int nssid,const struct ieee80211_scan_ssid ssids[]) ieee80211_swscan_start_scan() argument 267 ieee80211_swscan_check_scan(const struct ieee80211_scanner * scan,struct ieee80211vap * vap,int flags,u_int duration,u_int mindwell,u_int maxdwell,u_int nssid,const struct ieee80211_scan_ssid ssids[]) ieee80211_swscan_check_scan() argument 332 ieee80211_swscan_bg_scan(const struct ieee80211_scanner * scan,struct ieee80211vap * vap,int flags) ieee80211_swscan_bg_scan() argument 429 cancel_scan(struct ieee80211vap * vap,int any,const char * func) cancel_scan() argument 466 ieee80211_swscan_cancel_scan(struct ieee80211vap * vap) ieee80211_swscan_cancel_scan() argument 475 ieee80211_swscan_cancel_anyscan(struct ieee80211vap * vap) ieee80211_swscan_cancel_anyscan() argument 491 ieee80211_swscan_scan_next(struct ieee80211vap * vap) ieee80211_swscan_scan_next() argument 507 ieee80211_swscan_scan_done(struct ieee80211vap * vap) ieee80211_swscan_scan_done() argument 525 ieee80211_swscan_probe_curchan(struct ieee80211vap * vap,int force) ieee80211_swscan_probe_curchan() argument 563 struct ieee80211vap *vap = ss->ss_vap; scan_curchan() local 626 struct ieee80211vap *vap = ss->ss_vap; scan_start() local 789 struct ieee80211vap *vap = ss->ss_vap; scan_end() local 898 struct ieee80211vap *vap = ss->ss_vap; scan_done() local 951 ieee80211_swscan_add_scan(struct ieee80211vap * vap,struct ieee80211_channel * curchan,const struct ieee80211_scanparams * sp,const struct ieee80211_frame * wh,int subtype,int rssi,int noise) ieee80211_swscan_add_scan() argument [all...] |
H A D | ieee80211_mesh.c | 198 mesh_rt_add_locked(struct ieee80211vap *vap, in mesh_rt_add_locked() argument 201 struct ieee80211_mesh_state *ms = vap->iv_mesh; in mesh_rt_add_locked() 213 rt->rt_vap = vap; in mesh_rt_add_locked() 225 ieee80211_mesh_rt_find(struct ieee80211vap *vap, in ieee80211_mesh_rt_find() argument 228 struct ieee80211_mesh_state *ms = vap->iv_mesh; in ieee80211_mesh_rt_find() 238 ieee80211_mesh_rt_add(struct ieee80211vap *vap, in ieee80211_mesh_rt_add() argument 241 struct ieee80211_mesh_state *ms = vap->iv_mesh; in ieee80211_mesh_rt_add() 244 KASSERT(ieee80211_mesh_rt_find(vap, dest) == NULL, in ieee80211_mesh_rt_add() 246 KASSERT(!IEEE80211_ADDR_EQ(vap->iv_myaddr, dest), in ieee80211_mesh_rt_add() 250 rt = mesh_rt_add_locked(vap, dest); in ieee80211_mesh_rt_add() [all …]
|
H A D | ieee80211_ddb.c | 109 DB_SHOW_COMMAND(vap, db_show_vap) in DB_SHOW_COMMAND() argument 458 _db_show_vap(const struct ieee80211vap *vap, int showmesh, int showprocs) in _db_show_vap() argument 460 const struct ieee80211com *ic = vap->iv_ic; in _db_show_vap() 463 db_printf("VAP %p:", vap); in _db_show_vap() 464 db_printf(" bss %p", vap->iv_bss); in _db_show_vap() 465 db_printf(" myaddr %s", ether_sprintf(vap->iv_myaddr)); in _db_show_vap() 468 db_printf("\topmode %s", ieee80211_opmode_name[vap->iv_opmode]); in _db_show_vap() 470 if (vap->iv_opmode == IEEE80211_M_MBSS) in _db_show_vap() 471 db_printf("(%p)", vap->iv_mesh); in _db_show_vap() 473 db_printf(" state %#x %s", vap->iv_state, in _db_show_vap() [all …]
|
H A D | ieee80211_freebsd.c | 83 struct ieee80211vap *vap __unused, struct ifnet *ifp __unused) in ieee80211_priv_check_vap_getkey() 91 struct ieee80211vap *vap __unused, struct ifnet *ifp __unused) in ieee80211_priv_check_vap_manage() 99 struct ieee80211vap *vap __unused, struct ifnet *ifp __unused) in ieee80211_priv_check_vap_setmac() 107 struct ieee80211vap *vap __unused, struct ifnet *ifp __unused) in ieee80211_priv_check_create_vap() 118 struct ieee80211vap *vap; in wlan_clone_create() local 152 vap = ic->ic_vap_create(ic, wlanname, ifd->unit, in wlan_clone_create() 157 if (vap == NULL) in wlan_clone_create() 162 DEBUGNET_SET(vap->iv_ifp, ieee80211); in wlan_clone_create() 164 *ifpp = vap->iv_ifp; in wlan_clone_create() 172 struct ieee80211vap *vap = ifp->if_softc; in wlan_clone_destroy() local [all …]
|
H A D | ieee80211_hwmp.c | 254 hwmp_vattach(struct ieee80211vap *vap) in hwmp_vattach() argument 258 KASSERT(vap->iv_opmode == IEEE80211_M_MBSS, in hwmp_vattach() 259 ("not a mesh vap, opmode %d", vap->iv_opmode)); in hwmp_vattach() 269 vap->iv_hwmp = hs; in hwmp_vattach() 273 hwmp_vdetach(struct ieee80211vap *vap) in hwmp_vdetach() argument 275 struct ieee80211_hwmp_state *hs = vap->iv_hwmp; in hwmp_vdetach() 278 IEEE80211_FREE(vap->iv_hwmp, M_80211_VAP); in hwmp_vdetach() 279 vap->iv_hwmp = NULL; in hwmp_vdetach() 283 hwmp_newstate(struct ieee80211vap *vap, enum ieee80211_state ostate, int arg) in hwmp_newstate() argument 285 enum ieee80211_state nstate = vap->iv_state; in hwmp_newstate() [all …]
|
H A D | ieee80211_superg.c | 149 ieee80211_superg_vattach(struct ieee80211vap *vap) in ieee80211_superg_vattach() argument 151 struct ieee80211com *ic = vap->iv_ic; in ieee80211_superg_vattach() 154 vap->iv_caps &= ~IEEE80211_C_FF; in ieee80211_superg_vattach() 155 if (vap->iv_caps & IEEE80211_C_FF) in ieee80211_superg_vattach() 156 vap->iv_flags |= IEEE80211_F_FF; in ieee80211_superg_vattach() 158 if (vap->iv_opmode == IEEE80211_M_STA && in ieee80211_superg_vattach() 159 (vap->iv_caps & IEEE80211_C_TURBOP)) in ieee80211_superg_vattach() 160 vap->iv_flags |= IEEE80211_F_TURBOP; in ieee80211_superg_vattach() 164 ieee80211_superg_vdetach(struct ieee80211vap *vap) in ieee80211_superg_vdetach() argument 201 const struct ieee80211vap *vap = bss->ni_vap; in ieee80211_add_athcaps() local [all …]
|
H A D | ieee80211_ht.c | 250 ieee80211_ht_vattach(struct ieee80211vap *vap) in ieee80211_ht_vattach() argument 254 vap->iv_ampdu_rxmax = IEEE80211_HTCAP_MAXRXAMPDU_8K; in ieee80211_ht_vattach() 255 vap->iv_ampdu_density = IEEE80211_HTCAP_MPDUDENSITY_NA; in ieee80211_ht_vattach() 256 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() 259 vap->iv_ampdu_mintraffic[WME_AC_BK] = 128; in ieee80211_ht_vattach() 260 vap->iv_ampdu_mintraffic[WME_AC_BE] = 64; in ieee80211_ht_vattach() 261 vap->iv_ampdu_mintraffic[WME_AC_VO] = 32; in ieee80211_ht_vattach() 262 vap->iv_ampdu_mintraffic[WME_AC_VI] = 32; in ieee80211_ht_vattach() 264 vap->iv_htprotmode = IEEE80211_PROT_RTSCTS; in ieee80211_ht_vattach() [all …]
|
H A D | ieee80211_ratectl.h | 109 ieee80211_ratectl_deinit(struct ieee80211vap *vap) in ieee80211_ratectl_deinit() argument 111 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() 125 const struct ieee80211vap *vap = ni->ni_vap; in ieee80211_ratectl_node_deinit() local 127 vap->iv_rate->ir_node_deinit(ni); in ieee80211_ratectl_node_deinit() 133 const struct ieee80211vap *vap = ni->ni_vap; in ieee80211_ratectl_rate() local 135 return vap->iv_rate->ir_rate(ni, arg, iarg); in ieee80211_ratectl_rate() 142 const struct ieee80211vap *vap = ni->ni_vap; in ieee80211_ratectl_tx_complete() local 144 vap->iv_rate->ir_tx_complete(ni, status); in ieee80211_ratectl_tx_complete() [all …]
|
H A D | ieee80211_scan_sta.c | 248 struct ieee80211vap *vap = ss->ss_vap; in sta_add() local 249 struct ieee80211com *ic = vap->iv_ic; in sta_add() 332 IEEE80211_DPRINTF(vap, IEEE80211_MSG_11N, in sta_add() 346 IEEE80211_DPRINTF(vap, IEEE80211_MSG_11N, in sta_add() 378 (vap->iv_flags_ext & IEEE80211_FEXT_DOTD)) && in sta_add() 383 ieee80211_notify_country(vap, ise->se_bssid, in sta_add() 397 IEEE80211_NOTE_MAC(vap, IEEE80211_MSG_SCAN, macaddr, in sta_add() 415 if (PICK1ST(ss) && match_bss(vap, ss, se, IEEE80211_MSG_SCAN) == 0) in sta_add() 427 isexcluded(struct ieee80211vap *vap, const struct ieee80211_channel *c) in isexcluded() argument 429 return (isclr(vap->iv_ic->ic_chan_active, c->ic_ieee) || in isexcluded() [all …]
|
H A D | ieee80211_monitor.c | 75 monitor_vdetach(struct ieee80211vap *vap) in monitor_vdetach() argument 80 monitor_vattach(struct ieee80211vap *vap) in monitor_vattach() 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() 91 monitor_newstate(struct ieee80211vap *vap, enum ieee80211_state nstate, int arg) in monitor_newstate() argument 93 struct ieee80211com *ic = vap->iv_ic; in monitor_newstate() 98 ostate = vap->iv_state; in monitor_newstate() 99 IEEE80211_DPRINTF(vap, IEEE80211_MSG_STATE, "%s: %s -> %s (%d)\n", in monitor_newstate() 102 vap->iv_state = nstate; /* state transition */ in monitor_newstate() [all …]
|
H A D | ieee80211.c | 387 struct ieee80211vap *vap; in ieee80211_ifdetach() local 408 while ((vap = TAILQ_FIRST(&ic->ic_vaps)) != NULL) { in ieee80211_ifdetach() 409 ieee80211_com_vdetach(vap); in ieee80211_ifdetach() 410 ieee80211_vap_destroy(vap); in ieee80211_ifdetach() 506 default_reset(struct ieee80211vap *vap, u_long cmd) in default_reset() argument 519 default_update_deftxkey(struct ieee80211vap *vap, ieee80211_keyix kid) in default_update_deftxkey() argument 524 vap->iv_def_txkey = kid; in default_update_deftxkey() 533 struct ieee80211vap *vap = ifp->if_softc; in ieee80211_get_counter() local 534 struct ieee80211com *ic = vap->iv_ic; in ieee80211_get_counter() 558 ieee80211_vap_setup(struct ieee80211com *ic, struct ieee80211vap *vap, in ieee80211_vap_setup() argument [all …]
|
/freebsd/contrib/libxo/libxo/ |
H A D | xo.h | 204 xo_emit_hv (xo_handle_t *xop, const char *fmt, va_list vap); 214 const char *fmt, va_list vap); 224 xo_emit_hvp (xo_handle_t *xop, const char *fmt, va_list vap) in xo_emit_hvp() argument 226 return xo_emit_hv(xop, fmt, vap); in xo_emit_hvp() 233 va_list vap; in xo_emit_hp() local 234 va_start(vap, fmt); in xo_emit_hp() 235 xo_ssize_t rc = xo_emit_hv(xop, fmt, vap); in xo_emit_hp() 236 va_end(vap); in xo_emit_hp() 244 va_list vap; in xo_emit_p() local 245 va_start(vap, fmt); in xo_emit_p() [all …]
|
/freebsd/sys/dev/wtap/ |
H A D | if_wtap.c | 150 struct ieee80211vap *vap = ni->ni_vap; in wtap_recv_mgmt() local 151 struct wtap_softc *sc = vap->iv_ic->ic_softc; in wtap_recv_mgmt() 159 WTAP_VAP(vap)->av_recv_mgmt(ni, m, subtype, stats, rssi, nf); in wtap_recv_mgmt() 164 if (vap->iv_opmode == IEEE80211_M_IBSS && in wtap_recv_mgmt() 165 vap->iv_state == IEEE80211_S_RUN && in wtap_recv_mgmt() 187 wtap_reset_vap(struct ieee80211vap *vap, u_long cmd) in wtap_reset_vap() argument 195 wtap_beacon_update(struct ieee80211vap *vap, int item) in wtap_beacon_update() argument 197 struct ieee80211_beacon_offsets *bo = &vap->iv_bcn_off; in wtap_beacon_update() 209 struct ieee80211vap *vap = ni->ni_vap; in wtap_beacon_alloc() local 210 struct wtap_vap *avp = WTAP_VAP(vap); in wtap_beacon_alloc() 230 wtap_beacon_config(struct wtap_softc * sc,struct ieee80211vap * vap) wtap_beacon_config() argument 239 struct ieee80211vap *vap = arg; wtap_beacon_intrp() local 278 wtap_newstate(struct ieee80211vap * vap,enum ieee80211_state nstate,int arg) wtap_newstate() argument 350 wtap_bmiss(struct ieee80211vap * vap) wtap_bmiss() argument 365 struct ieee80211vap *vap; wtap_vap_create() local 410 wtap_vap_delete(struct ieee80211vap * vap) wtap_vap_delete() argument 467 struct ieee80211vap *vap = ni->ni_vap; wtap_raw_xmit() local 594 struct ieee80211vap *vap = ni->ni_vap; wtap_transmit() local 610 wtap_node_alloc(struct ieee80211vap * vap,const uint8_t mac[IEEE80211_ADDR_LEN]) wtap_node_alloc() argument [all...] |