aboutsummaryrefslogtreecommitdiff
path: root/sys/net80211/ieee80211_ioctl.c
diff options
context:
space:
mode:
authorSam Leffler <sam@FreeBSD.org>2009-02-19 05:21:54 +0000
committerSam Leffler <sam@FreeBSD.org>2009-02-19 05:21:54 +0000
commit6a76ae216efd73fc435943a34162db007684ea9e (patch)
tree8c26850231f8a1c174df4857a224272370e028d2 /sys/net80211/ieee80211_ioctl.c
parentcbb24c240df11fb5c133ad5345797caf819159de (diff)
downloadsrc-6a76ae216efd73fc435943a34162db007684ea9e.tar.gz
src-6a76ae216efd73fc435943a34162db007684ea9e.zip
Add modes for 1/2 and 1/4-width channels so we have separate roaming
and xmit parameters. This makes it possible to use tdma on fractional channels. o add IEEE80211_MODE_HALF and IEEE80211_MODE_QUARTER; note these are band-agnostic (may need revisiting) o setup all default rates in ic_sup_rates instead of doing it only for active modes; we need these to calculate the default tx parameters which are not recalculated after a regulatory update (can't just recalculate after installing a new channel list because we might clobber user settings) o remove special case code in ieee80211_get_suprates; this is now a candidate for an inline or removal o add various entries for new modes (roaming+tx params, wme, rate mapping, scan set setup, country ie construction, tdma, basic rates) Note these modes are intentionally not visible through if_media.
Notes
Notes: svn path=/head/; revision=188782
Diffstat (limited to 'sys/net80211/ieee80211_ioctl.c')
-rw-r--r--sys/net80211/ieee80211_ioctl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/net80211/ieee80211_ioctl.c b/sys/net80211/ieee80211_ioctl.c
index 8c8b92515591..21d563788592 100644
--- a/sys/net80211/ieee80211_ioctl.c
+++ b/sys/net80211/ieee80211_ioctl.c
@@ -1769,6 +1769,8 @@ findchannel(struct ieee80211com *ic, int ieee, int mode)
[IEEE80211_MODE_TURBO_A] = IEEE80211_CHAN_108A,
[IEEE80211_MODE_TURBO_G] = IEEE80211_CHAN_108G,
[IEEE80211_MODE_STURBO_A] = IEEE80211_CHAN_STURBO,
+ [IEEE80211_MODE_HALF] = IEEE80211_CHAN_HALF,
+ [IEEE80211_MODE_QUARTER] = IEEE80211_CHAN_QUARTER,
/* NB: handled specially below */
[IEEE80211_MODE_11NA] = IEEE80211_CHAN_A,
[IEEE80211_MODE_11NG] = IEEE80211_CHAN_G,