Lines Matching refs:vap

85      struct ieee80211vap *vap __unused, struct ifnet *ifp __unused)  in ieee80211_priv_check_vap_getkey()
93 struct ieee80211vap *vap __unused, struct ifnet *ifp __unused) in ieee80211_priv_check_vap_manage()
101 struct ieee80211vap *vap __unused, struct ifnet *ifp __unused) in ieee80211_priv_check_vap_setmac()
109 struct ieee80211vap *vap __unused, struct ifnet *ifp __unused) in ieee80211_priv_check_create_vap()
120 struct ieee80211vap *vap; in wlan_clone_create() local
154 vap = ic->ic_vap_create(ic, wlanname, ifd->unit, in wlan_clone_create()
159 if (vap == NULL) in wlan_clone_create()
164 DEBUGNET_SET(vap->iv_ifp, ieee80211); in wlan_clone_create()
166 *ifpp = vap->iv_ifp; in wlan_clone_create()
174 struct ieee80211vap *vap = ifp->if_softc; in wlan_clone_destroy() local
175 struct ieee80211com *ic = vap->iv_ic; in wlan_clone_destroy()
177 ic->ic_vap_delete(vap); in wlan_clone_destroy()
183 ieee80211_vap_destroy(struct ieee80211vap *vap) in ieee80211_vap_destroy() argument
185 CURVNET_SET(vap->iv_ifp->if_vnet); in ieee80211_vap_destroy()
186 if_clone_destroyif(wlan_cloner, vap->iv_ifp); in ieee80211_vap_destroy()
248 struct ieee80211vap *vap = arg1; in ieee80211_sysctl_vap_restart() local
255 ieee80211_restart_all(vap->iv_ic); in ieee80211_sysctl_vap_restart()
270 ieee80211_sysctl_vattach(struct ieee80211vap *vap) in ieee80211_sysctl_vattach() argument
272 struct ifnet *ifp = vap->iv_ifp; in ieee80211_sysctl_vattach()
280 net80211_vap_printf(vap, in ieee80211_sysctl_vattach()
290 vap->iv_ic, 0, ieee80211_sysctl_parent, "A", "parent device"); in ieee80211_sysctl_vattach()
292 "driver_caps", CTLFLAG_RW, &vap->iv_caps, 0, in ieee80211_sysctl_vattach()
295 vap->iv_debug = ieee80211_debug; in ieee80211_sysctl_vattach()
297 "debug", CTLFLAG_RW, &vap->iv_debug, 0, in ieee80211_sysctl_vattach()
301 "bmiss_max", CTLFLAG_RW, &vap->iv_bmiss_max, 0, in ieee80211_sysctl_vattach()
306 &vap->iv_inact_run, 0, ieee80211_sysctl_inact, "I", in ieee80211_sysctl_vattach()
310 &vap->iv_inact_probe, 0, ieee80211_sysctl_inact, "I", in ieee80211_sysctl_vattach()
314 &vap->iv_inact_auth, 0, ieee80211_sysctl_inact, "I", in ieee80211_sysctl_vattach()
318 &vap->iv_inact_init, 0, ieee80211_sysctl_inact, "I", in ieee80211_sysctl_vattach()
320 if (vap->iv_htcaps & IEEE80211_HTC_HT) { in ieee80211_sysctl_vattach()
323 &vap->iv_ampdu_mintraffic[WME_AC_BK], 0, in ieee80211_sysctl_vattach()
327 &vap->iv_ampdu_mintraffic[WME_AC_BE], 0, in ieee80211_sysctl_vattach()
331 &vap->iv_ampdu_mintraffic[WME_AC_VO], 0, in ieee80211_sysctl_vattach()
335 &vap->iv_ampdu_mintraffic[WME_AC_VI], 0, in ieee80211_sysctl_vattach()
341 vap, 0, ieee80211_sysctl_vap_restart, "I", "force a VAP restart"); in ieee80211_sysctl_vattach()
343 if (vap->iv_caps & IEEE80211_C_DFS) { in ieee80211_sysctl_vattach()
346 vap->iv_ic, 0, ieee80211_sysctl_radar, "I", in ieee80211_sysctl_vattach()
349 vap->iv_sysctl = ctx; in ieee80211_sysctl_vattach()
350 vap->iv_oid = oid; in ieee80211_sysctl_vattach()
354 ieee80211_sysctl_vdetach(struct ieee80211vap *vap) in ieee80211_sysctl_vdetach() argument
357 if (vap->iv_sysctl != NULL) { in ieee80211_sysctl_vdetach()
358 sysctl_ctx_free(vap->iv_sysctl); in ieee80211_sysctl_vdetach()
359 IEEE80211_FREE(vap->iv_sysctl, M_DEVBUF); in ieee80211_sysctl_vdetach()
360 vap->iv_sysctl = NULL; in ieee80211_sysctl_vdetach()
365 ieee80211_com_vincref(struct ieee80211vap *vap) in ieee80211_com_vincref() argument
369 ostate = atomic_fetchadd_32(&vap->iv_com_state, IEEE80211_COM_REF_ADD); in ieee80211_com_vincref()
372 atomic_subtract_32(&vap->iv_com_state, IEEE80211_COM_REF_ADD); in ieee80211_com_vincref()
378 atomic_subtract_32(&vap->iv_com_state, IEEE80211_COM_REF_ADD); in ieee80211_com_vincref()
386 ieee80211_com_vdecref(struct ieee80211vap *vap) in ieee80211_com_vdecref() argument
390 ostate = atomic_fetchadd_32(&vap->iv_com_state, -IEEE80211_COM_REF_ADD); in ieee80211_com_vdecref()
399 ieee80211_com_vdetach(struct ieee80211vap *vap) in ieee80211_com_vdetach() argument
404 atomic_set_32(&vap->iv_com_state, IEEE80211_COM_DETACHED); in ieee80211_com_vdetach()
405 while (_IEEE80211_MASKSHIFT(atomic_load_32(&vap->iv_com_state), in ieee80211_com_vdetach()
439 ieee80211_flush_ifq(struct ifqueue *ifq, struct ieee80211vap *vap) in ieee80211_flush_ifq() argument
448 if (ni != NULL && ni->ni_vap == vap) { in ieee80211_flush_ifq()
523 ieee80211_realign(struct ieee80211vap *vap, struct mbuf *m, size_t align) in ieee80211_realign() argument
546 IEEE80211_DISCARD(vap, IEEE80211_MSG_ANY, in ieee80211_realign()
549 vap->iv_stats.is_rx_badalign++; in ieee80211_realign()
785 ieee80211_vap_xmitpkt(struct ieee80211vap *vap, struct mbuf *m) in ieee80211_vap_xmitpkt() argument
787 struct ifnet *ifp = vap->iv_ifp; in ieee80211_vap_xmitpkt()
793 IEEE80211_TX_UNLOCK_ASSERT(vap->iv_ic); in ieee80211_vap_xmitpkt()
832 struct ieee80211vap *vap = ni->ni_vap; in ieee80211_notify_node_join() local
833 struct ifnet *ifp = vap->iv_ifp; in ieee80211_notify_node_join()
836 IEEE80211_NOTE(vap, IEEE80211_MSG_NODE, ni, "%snode join", in ieee80211_notify_node_join()
837 (ni == vap->iv_bss) ? "bss " : ""); in ieee80211_notify_node_join()
839 if (ni == vap->iv_bss) { in ieee80211_notify_node_join()
853 struct ieee80211vap *vap = ni->ni_vap; in ieee80211_notify_node_leave() local
854 struct ifnet *ifp = vap->iv_ifp; in ieee80211_notify_node_leave()
857 IEEE80211_NOTE(vap, IEEE80211_MSG_NODE, ni, "%snode leave", in ieee80211_notify_node_leave()
858 (ni == vap->iv_bss) ? "bss " : ""); in ieee80211_notify_node_leave()
860 if (ni == vap->iv_bss) { in ieee80211_notify_node_leave()
871 ieee80211_notify_scan_done(struct ieee80211vap *vap) in ieee80211_notify_scan_done() argument
873 struct ifnet *ifp = vap->iv_ifp; in ieee80211_notify_scan_done()
875 IEEE80211_DPRINTF(vap, IEEE80211_MSG_SCAN, "%s\n", "notify scan done"); in ieee80211_notify_scan_done()
884 ieee80211_notify_replay_failure(struct ieee80211vap *vap, in ieee80211_notify_replay_failure() argument
888 struct ifnet *ifp = vap->iv_ifp; in ieee80211_notify_replay_failure()
890 IEEE80211_NOTE_MAC(vap, IEEE80211_MSG_CRYPTO, wh->i_addr2, in ieee80211_notify_replay_failure()
918 ieee80211_notify_michael_failure(struct ieee80211vap *vap, in ieee80211_notify_michael_failure() argument
921 struct ifnet *ifp = vap->iv_ifp; in ieee80211_notify_michael_failure()
923 IEEE80211_NOTE_MAC(vap, IEEE80211_MSG_CRYPTO, wh->i_addr2, in ieee80211_notify_michael_failure()
925 vap->iv_stats.is_rx_tkipmic++; in ieee80211_notify_michael_failure()
943 struct ieee80211vap *vap = ni->ni_vap; in ieee80211_notify_wds_discover() local
944 struct ifnet *ifp = vap->iv_ifp; in ieee80211_notify_wds_discover()
954 struct ieee80211vap *vap; in ieee80211_notify_csa() local
963 TAILQ_FOREACH(vap, &ic->ic_vaps, iv_next) { in ieee80211_notify_csa()
964 ifp = vap->iv_ifp; in ieee80211_notify_csa()
976 struct ieee80211vap *vap; in ieee80211_notify_radar() local
983 TAILQ_FOREACH(vap, &ic->ic_vaps, iv_next) { in ieee80211_notify_radar()
984 ifp = vap->iv_ifp; in ieee80211_notify_radar()
996 struct ieee80211vap *vap; in ieee80211_notify_cac() local
1004 TAILQ_FOREACH(vap, &ic->ic_vaps, iv_next) { in ieee80211_notify_cac()
1005 ifp = vap->iv_ifp; in ieee80211_notify_cac()
1015 struct ieee80211vap *vap = ni->ni_vap; in ieee80211_notify_node_deauth() local
1016 struct ifnet *ifp = vap->iv_ifp; in ieee80211_notify_node_deauth()
1018 IEEE80211_NOTE(vap, IEEE80211_MSG_NODE, ni, "%s", "node deauth"); in ieee80211_notify_node_deauth()
1026 struct ieee80211vap *vap = ni->ni_vap; in ieee80211_notify_node_auth() local
1027 struct ifnet *ifp = vap->iv_ifp; in ieee80211_notify_node_auth()
1029 IEEE80211_NOTE(vap, IEEE80211_MSG_NODE, ni, "%s", "node auth"); in ieee80211_notify_node_auth()
1035 ieee80211_notify_country(struct ieee80211vap *vap, in ieee80211_notify_country() argument
1038 struct ifnet *ifp = vap->iv_ifp; in ieee80211_notify_country()
1054 struct ieee80211vap *vap; in ieee80211_notify_radio() local
1059 TAILQ_FOREACH(vap, &ic->ic_vaps, iv_next) { in ieee80211_notify_radio()
1060 ifp = vap->iv_ifp; in ieee80211_notify_radio()
1068 ieee80211_notify_ifnet_change(struct ieee80211vap *vap, int if_flags_mask) in ieee80211_notify_ifnet_change() argument
1070 struct ifnet *ifp = vap->iv_ifp; in ieee80211_notify_ifnet_change()
1072 IEEE80211_DPRINTF(vap, IEEE80211_MSG_DEBUG, "%s\n", in ieee80211_notify_ifnet_change()
1100 struct ieee80211vap *vap = ifp->if_softc; in bpf_track() local
1109 ieee80211_syncflag_ext(vap, IEEE80211_FEXT_BPF); in bpf_track()
1110 if (vap->iv_opmode == IEEE80211_M_MONITOR) in bpf_track()
1111 atomic_add_int(&vap->iv_ic->ic_montaps, 1); in bpf_track()
1112 } else if (!bpf_peers_present(vap->iv_rawbpf)) { in bpf_track()
1113 ieee80211_syncflag_ext(vap, -IEEE80211_FEXT_BPF); in bpf_track()
1114 if (vap->iv_opmode == IEEE80211_M_MONITOR) in bpf_track()
1115 atomic_subtract_int(&vap->iv_ic->ic_montaps, 1); in bpf_track()
1129 struct ieee80211vap *vap = ifp->if_softc; in wlan_iflladdr() local
1131 IEEE80211_ADDR_COPY(vap->iv_myaddr, IF_LLADDR(ifp)); in wlan_iflladdr()
1142 ieee80211_get_vap_ifname(struct ieee80211vap *vap) in ieee80211_get_vap_ifname() argument
1144 if (vap->iv_ifp == NULL) in ieee80211_get_vap_ifname()
1146 return (if_name(vap->iv_ifp)); in ieee80211_get_vap_ifname()
1153 struct ieee80211vap *vap; in ieee80211_debugnet_init() local
1156 vap = if_getsoftc(ifp); in ieee80211_debugnet_init()
1157 ic = vap->iv_ic; in ieee80211_debugnet_init()
1167 struct ieee80211vap *vap; in ieee80211_debugnet_event() local
1170 vap = if_getsoftc(ifp); in ieee80211_debugnet_event()
1171 ic = vap->iv_ic; in ieee80211_debugnet_event()
1187 struct ieee80211vap *vap; in ieee80211_debugnet_poll() local
1190 vap = if_getsoftc(ifp); in ieee80211_debugnet_poll()
1191 ic = vap->iv_ic; in ieee80211_debugnet_poll()
1206 ieee80211_vap_sync_mac_address(struct ieee80211vap *vap) in ieee80211_vap_sync_mac_address() argument
1209 const struct ifnet *ifp = vap->iv_ifp; in ieee80211_vap_sync_mac_address()
1221 !IEEE80211_ADDR_EQ(vap->iv_myaddr, IF_LLADDR(ifp))) in ieee80211_vap_sync_mac_address()
1222 IEEE80211_ADDR_COPY(vap->iv_myaddr, IF_LLADDR(ifp)); in ieee80211_vap_sync_mac_address()
1232 ieee80211_vap_copy_mac_address(struct ieee80211vap *vap) in ieee80211_vap_copy_mac_address() argument
1237 IEEE80211_ADDR_COPY(vap->iv_myaddr, IF_LLADDR(vap->iv_ifp)); in ieee80211_vap_copy_mac_address()
1253 ieee80211_vap_deliver_data(struct ieee80211vap *vap, struct mbuf *m) in ieee80211_vap_deliver_data() argument
1258 if_input(vap->iv_ifp, m); in ieee80211_vap_deliver_data()
1272 ieee80211_vap_ifp_check_is_monitor(struct ieee80211vap *vap) in ieee80211_vap_ifp_check_is_monitor() argument
1274 return ((if_getflags(vap->iv_ifp) & IFF_MONITOR) != 0); in ieee80211_vap_ifp_check_is_monitor()
1287 ieee80211_vap_ifp_check_is_simplex(struct ieee80211vap *vap) in ieee80211_vap_ifp_check_is_simplex() argument
1289 return ((if_getflags(vap->iv_ifp) & IFF_SIMPLEX) != 0); in ieee80211_vap_ifp_check_is_simplex()
1299 ieee80211_vap_ifp_check_is_running(struct ieee80211vap *vap) in ieee80211_vap_ifp_check_is_running() argument
1301 return ((if_getdrvflags(vap->iv_ifp) & IFF_DRV_RUNNING) != 0); in ieee80211_vap_ifp_check_is_running()
1311 ieee80211_vap_ifp_set_running_state(struct ieee80211vap *vap, bool state) in ieee80211_vap_ifp_set_running_state() argument
1314 if_setdrvflagbits(vap->iv_ifp, IFF_DRV_RUNNING, 0); in ieee80211_vap_ifp_set_running_state()
1316 if_setdrvflagbits(vap->iv_ifp, 0, IFF_DRV_RUNNING); in ieee80211_vap_ifp_set_running_state()
1326 ieee80211_vap_get_broadcast_address(struct ieee80211vap *vap) in ieee80211_vap_get_broadcast_address() argument
1328 return (if_getbroadcastaddr(vap->iv_ifp)); in ieee80211_vap_get_broadcast_address()
1348 net80211_vap_printf(const struct ieee80211vap *vap, const char *fmt, ...) in net80211_vap_printf() argument
1354 snprintf(if_fmt, sizeof(if_fmt), "%s: %s", if_name(vap->iv_ifp), fmt); in net80211_vap_printf()