Changeset View
Changeset View
Standalone View
Standalone View
head/sys/net80211/ieee80211_vht.c
Show First 20 Lines • Show All 155 Lines • ▼ Show 20 Lines | ieee80211_vht_vattach(struct ieee80211vap *vap) | ||||
vap->iv_vhtcaps = ic->ic_vhtcaps; | vap->iv_vhtcaps = ic->ic_vhtcaps; | ||||
vap->iv_vhtextcaps = ic->ic_vhtextcaps; | vap->iv_vhtextcaps = ic->ic_vhtextcaps; | ||||
/* XXX assume VHT80 support; should really check vhtcaps */ | /* XXX assume VHT80 support; should really check vhtcaps */ | ||||
vap->iv_flags_vht = | vap->iv_flags_vht = | ||||
IEEE80211_FVHT_VHT | IEEE80211_FVHT_VHT | ||||
| IEEE80211_FVHT_USEVHT40 | | IEEE80211_FVHT_USEVHT40 | ||||
| IEEE80211_FVHT_USEVHT80; | | IEEE80211_FVHT_USEVHT80; | ||||
#if 0 | |||||
/* XXX TODO: enable VHT80+80, VHT160 capabilities */ | /* XXX TODO: enable VHT80+80, VHT160 capabilities */ | ||||
if (XXX TODO FIXME) | |||||
vap->iv_flags_vht |= IEEE80211_FVHT_USEVHT160; | |||||
if (XXX TODO FIXME) | |||||
vap->iv_flags_vht |= IEEE80211_FVHT_USEVHT80P80; | |||||
#endif | |||||
memcpy(&vap->iv_vht_mcsinfo, &ic->ic_vht_mcsinfo, | memcpy(&vap->iv_vht_mcsinfo, &ic->ic_vht_mcsinfo, | ||||
sizeof(struct ieee80211_vht_mcs_info)); | sizeof(struct ieee80211_vht_mcs_info)); | ||||
} | } | ||||
void | void | ||||
ieee80211_vht_vdetach(struct ieee80211vap *vap) | ieee80211_vht_vdetach(struct ieee80211vap *vap) | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 681 Lines • Show Last 20 Lines |