diff options
| author | Weongyo Jeong <weongyo@FreeBSD.org> | 2010-06-29 21:56:42 +0000 |
|---|---|---|
| committer | Weongyo Jeong <weongyo@FreeBSD.org> | 2010-06-29 21:56:42 +0000 |
| commit | 03286b3576aeea97a28f8d06375ea157c59216de (patch) | |
| tree | 2c92f7ec3260941a8c982d3798d7f8dd6a52bcd1 /sys/dev/bwi | |
| parent | 68cd814a8accaff3fb4ce4e8919a21d9f6b2eeb6 (diff) | |
Notes
Diffstat (limited to 'sys/dev/bwi')
| -rw-r--r-- | sys/dev/bwi/if_bwi.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/dev/bwi/if_bwi.c b/sys/dev/bwi/if_bwi.c index 91145e4bb668..5501c13f7b72 100644 --- a/sys/dev/bwi/if_bwi.c +++ b/sys/dev/bwi/if_bwi.c @@ -1769,6 +1769,7 @@ static int bwi_newstate(struct ieee80211vap *vap, enum ieee80211_state nstate, int arg) { struct bwi_vap *bvp = BWI_VAP(vap); + const struct ieee80211_txparam *tp; struct ieee80211com *ic= vap->iv_ic; struct ifnet *ifp = ic->ic_ifp; enum ieee80211_state ostate = vap->iv_state; @@ -1822,6 +1823,11 @@ bwi_newstate(struct ieee80211vap *vap, enum ieee80211_state nstate, int arg) sc->sc_txpwrcb_type = BWI_TXPWR_CALIB; #endif + /* Initializes ratectl for a node. */ + tp = &vap->iv_txparms[ieee80211_chan2mode(ic->ic_curchan)]; + if (tp->ucastrate == IEEE80211_FIXED_RATE_NONE) + ieee80211_ratectl_node_init(vap->iv_bss); + callout_reset(&sc->sc_calib_ch, hz, bwi_calibrate, sc); } back: |
