Changeset View
Changeset View
Standalone View
Standalone View
sys/net80211/ieee80211.c
Show First 20 Lines • Show All 1,361 Lines • ▼ Show 20 Lines | getflags_5ghz(const uint8_t bands[], uint32_t flags[], int ht40, int vht80) | ||||
/* 80MHz */ | /* 80MHz */ | ||||
if (vht80 && isset(bands, IEEE80211_MODE_VHT_5GHZ)) { | if (vht80 && isset(bands, IEEE80211_MODE_VHT_5GHZ)) { | ||||
flags[nmodes++] = IEEE80211_CHAN_A | | flags[nmodes++] = IEEE80211_CHAN_A | | ||||
IEEE80211_CHAN_HT40U | IEEE80211_CHAN_VHT80; | IEEE80211_CHAN_HT40U | IEEE80211_CHAN_VHT80; | ||||
flags[nmodes++] = IEEE80211_CHAN_A | | flags[nmodes++] = IEEE80211_CHAN_A | | ||||
IEEE80211_CHAN_HT40D | IEEE80211_CHAN_VHT80; | IEEE80211_CHAN_HT40D | IEEE80211_CHAN_VHT80; | ||||
} | } | ||||
/* XXX VHT80+80 */ | |||||
/* XXX VHT160 */ | /* XXX VHT160 */ | ||||
/* XXX VHT80+80 */ | |||||
flags[nmodes] = 0; | flags[nmodes] = 0; | ||||
} | } | ||||
static void | static void | ||||
getflags(const uint8_t bands[], uint32_t flags[], int ht40, int vht80) | getflags(const uint8_t bands[], uint32_t flags[], int ht40, int vht80) | ||||
{ | { | ||||
flags[0] = 0; | flags[0] = 0; | ||||
▲ Show 20 Lines • Show All 170 Lines • ▼ Show 20 Lines | for (j = 0; flags[j] != 0; j++) { | ||||
* Notes: | * Notes: | ||||
* + HT40 and VHT40 channels occur together, so | * + HT40 and VHT40 channels occur together, so | ||||
* we need to be careful that we actually allow that. | * we need to be careful that we actually allow that. | ||||
* + VHT80, VHT160 will coexist with HT40/VHT40, so | * + VHT80, VHT160 will coexist with HT40/VHT40, so | ||||
* make sure it's not skipped because of the overlap | * make sure it's not skipped because of the overlap | ||||
* check used for (V)HT40. | * check used for (V)HT40. | ||||
*/ | */ | ||||
is_vht = !! (flags[j] & IEEE80211_CHAN_VHT); | is_vht = !! (flags[j] & IEEE80211_CHAN_VHT); | ||||
/* XXX TODO FIXME VHT80P80. */ | |||||
/* XXX TODO FIXME VHT160. */ | |||||
/* | /* | ||||
* Test for VHT80. | * Test for VHT80. | ||||
* XXX This is all very broken right now. | * XXX This is all very broken right now. | ||||
* What we /should/ do is: | * What we /should/ do is: | ||||
* | * | ||||
* + check that the frequency is in the list of | * + check that the frequency is in the list of | ||||
* allowed VHT80 ranges; and | * allowed VHT80 ranges; and | ||||
▲ Show 20 Lines • Show All 973 Lines • Show Last 20 Lines |