Lines Matching refs:vap

285 static int	iwn_auth(struct iwn_softc *, struct ieee80211vap *vap);
286 static int iwn_run(struct iwn_softc *, struct ieee80211vap *vap);
1329 struct ieee80211vap *vap;
1335 vap = &ivp->iv_vap;
1336 ieee80211_vap_setup(ic, vap, name, unit, opmode, flags, bssid);
1338 vap->iv_bmissthreshold = 10; /* override default */
1340 ivp->iv_newstate = vap->iv_newstate;
1341 vap->iv_newstate = iwn_newstate;
1342 sc->ivap[IWN_RXON_BSS_CTX] = vap;
1344 ieee80211_ratectl_init(vap);
1346 ieee80211_vap_attach(vap, iwn_media_change, ieee80211_media_status,
1349 return vap;
1353 iwn_vap_delete(struct ieee80211vap *vap)
1355 struct iwn_vap *ivp = IWN_VAP(vap);
1357 ieee80211_ratectl_deinit(vap);
1358 ieee80211_vap_detach(vap);
2644 iwn_node_alloc(struct ieee80211vap *vap, const uint8_t mac[IEEE80211_ADDR_LEN])
2820 iwn_newstate(struct ieee80211vap *vap, enum ieee80211_state nstate, int arg)
2822 struct iwn_vap *ivp = IWN_VAP(vap);
2823 struct ieee80211com *ic = vap->iv_ic;
2830 ieee80211_state_name[vap->iv_state], ieee80211_state_name[nstate]);
2840 if (vap->iv_state != IEEE80211_S_RUN)
2844 if (vap->iv_state == IEEE80211_S_AUTH)
2859 if ((error = iwn_auth(sc, vap)) != 0) {
2869 if (vap->iv_state == IEEE80211_S_RUN) {
2883 if ((error = iwn_run(sc, vap)) != 0) {
2911 return ivp->iv_newstate(vap, nstate, arg);
3387 struct ieee80211vap *vap = TAILQ_FIRST(&ic->ic_vaps);
3396 if (vap->iv_state != IEEE80211_S_RUN ||
3563 struct ieee80211vap *vap;
3574 vap = ni->ni_vap;
3580 ieee80211_ratectl_tx_complete(vap, ni,
3583 ieee80211_ratectl_tx_complete(vap, ni,
3802 struct ieee80211vap *vap = TAILQ_FIRST(&ic->ic_vaps);
3875 if (vap->iv_state == IEEE80211_S_RUN &&
3879 if (misses >= vap->iv_bmissthreshold) {
3962 ieee80211_scan_next(vap);
4258 struct ieee80211vap *vap, uint8_t rate)
4260 struct ieee80211com *ic = vap->iv_ic;
4364 struct ieee80211vap *vap = ni->ni_vap;
4435 tp = &vap->iv_txparms[ieee80211_chan2mode(ni->ni_chan)];
4462 if (ieee80211_radiotap_active_vap(vap)) {
4470 ieee80211_radiotap_tx(vap, m);
4502 if (totlen + IEEE80211_CRC_LEN > vap->iv_rtsthreshold) {
4504 } else if (iwn_check_rate_needs_protection(sc, vap, rate)) {
4664 struct ieee80211vap *vap = ni->ni_vap;
4748 if (ieee80211_radiotap_active_vap(vap)) {
4754 ieee80211_radiotap_tx(vap, m);
5074 struct ieee80211vap *vap = TAILQ_FIRST(&ic->ic_vaps);
5091 else if (vap != NULL && stop)
5092 ieee80211_stop(vap);
6518 struct ieee80211vap *vap = TAILQ_FIRST(&ic->ic_vaps);
6601 macaddr = vap ? vap->iv_myaddr : ic->ic_macaddr;
6717 struct ieee80211vap *vap = NULL;
6722 vap = TAILQ_FIRST(&ic->ic_vaps);
6723 bintval = vap->iv_bss->ni_intval;
6761 iwn_scan(struct iwn_softc *sc, struct ieee80211vap *vap,
6765 struct ieee80211_node *ni = vap->iv_bss;
6902 IEEE80211_ADDR_COPY(wh->i_addr1, vap->iv_ifp->if_broadcastaddr);
6903 IEEE80211_ADDR_COPY(wh->i_addr2, IF_LLADDR(vap->iv_ifp));
6904 IEEE80211_ADDR_COPY(wh->i_addr3, vap->iv_ifp->if_broadcastaddr);
7022 iwn_auth(struct iwn_softc *sc, struct ieee80211vap *vap)
7026 struct ieee80211_node *ni = vap->iv_bss;
7094 iwn_run(struct iwn_softc *sc, struct ieee80211vap *vap)
7098 struct ieee80211_node *ni = vap->iv_bss;
8675 struct ieee80211vap *vap = TAILQ_FIRST(&ic->ic_vaps);
8679 if (vap != NULL) {
8681 ieee80211_init(vap);
8690 struct ieee80211vap *vap = TAILQ_FIRST(&ic->ic_vaps);
8695 if (vap != NULL)
8696 ieee80211_stop(vap);
8710 struct ieee80211vap *vap = TAILQ_FIRST(&ic->ic_vaps);
8715 if (vap == NULL) {
8716 printf("%s: null vap\n", __func__);
8721 "restarting\n", __func__, vap->iv_state);
8737 if (vap->iv_state >= IEEE80211_S_AUTH &&
8738 (error = iwn_auth(sc, vap)) != 0) {
8742 if (vap->iv_state >= IEEE80211_S_RUN &&
8743 (error = iwn_run(sc, vap)) != 0) {
8879 struct ieee80211vap *vap = TAILQ_FIRST(&ic->ic_vaps);
8882 if (vap->iv_state == IEEE80211_S_RUN) {
8920 struct ieee80211vap *vap = ss->ss_vap;
8921 struct ieee80211com *ic = vap->iv_ic;
8926 error = iwn_scan(sc, vap, ss, ic->ic_curchan);
8929 ieee80211_cancel_scan(vap);