Lines Matching defs:vap

489 	struct ieee80211vap *vap;
510 vap = &ivp->iwi_vap;
511 ieee80211_vap_setup(ic, vap, name, unit, opmode, flags, bssid);
513 vap->iv_bmissthreshold = 24;
515 ivp->iwi_newstate = vap->iv_newstate;
516 vap->iv_newstate = iwi_newstate;
519 ieee80211_vap_attach(vap, ieee80211_media_change, iwi_media_status,
522 return vap;
526 iwi_vap_delete(struct ieee80211vap *vap)
528 struct iwi_vap *ivp = IWI_VAP(vap);
530 ieee80211_vap_detach(vap);
866 iwi_node_alloc(struct ieee80211vap *vap, const uint8_t mac[IEEE80211_ADDR_LEN])
925 struct ieee80211vap *vap = ifp->if_softc;
926 struct ieee80211com *ic = vap->iv_ic;
931 ni = ieee80211_ref_node(vap->iv_bss);
939 iwi_newstate(struct ieee80211vap *vap, enum ieee80211_state nstate, int arg)
941 struct iwi_vap *ivp = IWI_VAP(vap);
942 struct ieee80211com *ic = vap->iv_ic;
947 ieee80211_state_name[vap->iv_state],
958 if (vap->iv_state == IEEE80211_S_RUN &&
963 iwi_auth_and_assoc(sc, vap);
966 if (vap->iv_opmode == IEEE80211_M_IBSS &&
967 vap->iv_state == IEEE80211_S_SCAN) {
976 iwi_auth_and_assoc(sc, vap);
977 } else if (vap->iv_opmode == IEEE80211_M_MONITOR)
986 if (vap->iv_state == IEEE80211_S_AUTH)
988 iwi_auth_and_assoc(sc, vap);
995 return ivp->iwi_newstate(vap, nstate, arg);
1072 struct ieee80211vap *vap = TAILQ_FIRST(&ic->ic_vaps);
1083 if (vap->iv_state == IEEE80211_S_RUN) {
1299 iwi_checkforqos(struct ieee80211vap *vap,
1342 ni = ieee80211_ref_node(vap->iv_bss);
1388 struct ieee80211vap *vap = TAILQ_FIRST(&ic->ic_vaps);
1421 if (vap->iv_opmode == IEEE80211_M_MONITOR) {
1428 ieee80211_scan_next(vap);
1437 ieee80211_new_state(vap, IEEE80211_S_ASSOC, -1);
1446 if (vap->iv_state != IEEE80211_S_RUN) {
1448 vap->iv_stats.is_rx_auth_fail++;
1452 vap->iv_stats.is_rx_deauth++;
1454 ieee80211_new_state(vap, IEEE80211_S_SCAN, -1);
1463 vap->iv_stats.is_rx_auth_fail++;
1484 iwi_checkforqos(vap,
1487 ieee80211_new_state(vap, IEEE80211_S_RUN, -1);
1495 ieee80211_new_state(vap, IEEE80211_S_SCAN, -1);
1501 vap->iv_stats.is_rx_disassoc++;
1502 ieee80211_new_state(vap, IEEE80211_S_SCAN, -1);
1528 if (le32toh(beacon->number) >= vap->iv_bmissthreshold) {
1531 vap->iv_bmissthreshold));
1532 vap->iv_stats.is_beacon_miss++;
1635 struct ieee80211vap *vap = TAILQ_FIRST(&ic->ic_vaps);
1638 if (vap != NULL)
1639 ieee80211_cancel_scan(vap);
1769 struct ieee80211vap *vap = ni->ni_vap;
1792 if (vap->iv_flags & IEEE80211_F_SHPREAMBLE)
1805 if (vap->iv_opmode == IEEE80211_M_IBSS) {
1850 if (ieee80211_radiotap_active_vap(vap)) {
1855 ieee80211_radiotap_tx(vap, m0);
1905 if (vap->iv_flags & IEEE80211_F_PRIVACY)
1906 desc->wep_txkey = vap->iv_def_txkey;
2509 iwi_setpowermode(struct iwi_softc *sc, struct ieee80211vap *vap)
2513 if (vap->iv_flags & IEEE80211_F_PMGTON) {
2524 iwi_setwepkeys(struct iwi_softc *sc, struct ieee80211vap *vap)
2531 wk = &vap->iv_nw_keys[i];
2552 struct ieee80211vap *vap = TAILQ_FIRST(&ic->ic_vaps);
2562 macaddr = vap ? vap->iv_myaddr : ic->ic_macaddr;
2810 iwi_auth_and_assoc(struct iwi_softc *sc, struct ieee80211vap *vap)
2812 struct ieee80211com *ic = vap->iv_ic;
2813 struct ifnet *ifp = vap->iv_ifp;
2829 ni = ieee80211_ref_node(vap->iv_bss);
2850 (vap->iv_opmode == IEEE80211_M_IBSS) ? 1 : 0;
2870 error = iwi_setpowermode(sc, vap);
2874 data = htole32(vap->iv_rtsthreshold);
2880 data = htole32(vap->iv_fragthreshold);
2904 if ((vap->iv_flags & IEEE80211_F_WME) && ni->ni_ies.wme_ie != NULL) {
2911 if (vap->iv_appie_wpa != NULL) {
2912 struct ieee80211_appie *ie = vap->iv_appie_wpa;
2930 if ((vap->iv_flags & IEEE80211_F_PRIVACY) &&
2939 if (vap->iv_def_txkey != IEEE80211_KEYIX_NONE)
2940 assoc->auth |= vap->iv_def_txkey << 4;
2942 error = iwi_setwepkeys(sc, vap);
2946 if (vap->iv_flags & IEEE80211_F_WPA)
2948 if (vap->iv_opmode == IEEE80211_M_IBSS && ni->ni_tstamp.tsf == 0)
2954 if (vap->iv_opmode == IEEE80211_M_IBSS)
2958 if (vap->iv_flags & IEEE80211_F_PRIVACY)
2970 if (vap->iv_opmode == IEEE80211_M_IBSS)
3553 struct ieee80211vap *vap = ss->ss_vap;
3554 struct iwi_softc *sc = vap->iv_ic->ic_softc;
3559 ieee80211_cancel_scan(vap);