diff options
author | sam <sam@FreeBSD.org> | 2009-03-29 21:17:08 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2009-03-29 21:17:08 +0000 |
commit | f7c50ce1e4a47dd26c6dc6d42d8a07343e9d020b (patch) | |
tree | 3adee507d18d3410de7636b1c9fdf73932df5b00 /sys/net80211/ieee80211_ioctl.c | |
parent | 616f4bd2e5f839f51b2cfd6f131a31b7d81e837c (diff) | |
download | FreeBSD-src-f7c50ce1e4a47dd26c6dc6d42d8a07343e9d020b.zip FreeBSD-src-f7c50ce1e4a47dd26c6dc6d42d8a07343e9d020b.tar.gz |
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
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 9e82aba..c148214 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; |