diff options
author | Sam Leffler <sam@FreeBSD.org> | 2009-03-29 21:17:08 +0000 |
---|---|---|
committer | Sam Leffler <sam@FreeBSD.org> | 2009-03-29 21:17:08 +0000 |
commit | 26d39e2c683e0aef63852288d0f2c5aedf7d24eb (patch) | |
tree | 3adee507d18d3410de7636b1c9fdf73932df5b00 /sys/net80211/ieee80211_ioctl.c | |
parent | f8852522429912240695e60552e4480dcdbdfa63 (diff) | |
download | src-26d39e2c683e0aef63852288d0f2c5aedf7d24eb.tar.gz src-26d39e2c683e0aef63852288d0f2c5aedf7d24eb.zip |
o add ic_rt to track the rate table for the current channel; this enables
calculation of packet transmit times to do things like check txop limits
o remove equivalent driver code and convert to use net80211 state
Notes
Notes:
svn path=/head/; revision=190532
Diffstat (limited to 'sys/net80211/ieee80211_ioctl.c')
-rw-r--r-- | sys/net80211/ieee80211_ioctl.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/net80211/ieee80211_ioctl.c b/sys/net80211/ieee80211_ioctl.c index 9e82aba53c11..c1482145f2d7 100644 --- a/sys/net80211/ieee80211_ioctl.c +++ b/sys/net80211/ieee80211_ioctl.c @@ -1871,6 +1871,7 @@ setcurchan(struct ieee80211vap *vap, struct ieee80211_channel *c) vap->iv_bss->ni_chan = ic->ic_curchan; } else ic->ic_curchan = vap->iv_des_chan; + ic->ic_rt = ieee80211_get_ratetable(ic->ic_curchan); } else { /* * Need to go through the state machine in case we @@ -1886,6 +1887,7 @@ setcurchan(struct ieee80211vap *vap, struct ieee80211_channel *c) * there is immediate feedback; e.g. via ifconfig. */ ic->ic_curchan = vap->iv_des_chan; + ic->ic_rt = ieee80211_get_ratetable(ic->ic_curchan); } } return error; |