hostapd: Add vendor specific VHT extension for the 2.4 GHz band
This allows vendor specific information element to be used to advertise support for VHT on 2.4 GHz band. In practice, this is used to enable use of 256 QAM rates (VHT-MCS 8 and 9) on 2.4 GHz band. This functionality is disabled by default, but can be enabled with vendor_vht=1 parameter in hostapd.conf if the driver advertises support for VHT on either 2.4 or 5 GHz bands. Signed-off-by: Yanbo Li <yanbol@qti.qualcomm.com>
This commit is contained in:
parent
3e7f1c7980
commit
e7d0e97bdb
12 changed files with 161 additions and 15 deletions
|
@ -641,12 +641,31 @@ static int ieee80211ac_cap_check_max(u32 hw, u32 conf, u32 mask,
|
|||
|
||||
static int ieee80211ac_supported_vht_capab(struct hostapd_iface *iface)
|
||||
{
|
||||
u32 hw = iface->current_mode->vht_capab;
|
||||
struct hostapd_hw_modes *mode = iface->current_mode;
|
||||
u32 hw = mode->vht_capab;
|
||||
u32 conf = iface->conf->vht_capab;
|
||||
|
||||
wpa_printf(MSG_DEBUG, "hw vht capab: 0x%x, conf vht capab: 0x%x",
|
||||
hw, conf);
|
||||
|
||||
if (mode->mode == HOSTAPD_MODE_IEEE80211G &&
|
||||
iface->conf->bss[0]->vendor_vht &&
|
||||
mode->vht_capab == 0 && iface->hw_features) {
|
||||
int i;
|
||||
|
||||
for (i = 0; i < iface->num_hw_features; i++) {
|
||||
if (iface->hw_features[i].mode ==
|
||||
HOSTAPD_MODE_IEEE80211A) {
|
||||
mode = &iface->hw_features[i];
|
||||
hw = mode->vht_capab;
|
||||
wpa_printf(MSG_DEBUG,
|
||||
"update hw vht capab based on 5 GHz band: 0x%x",
|
||||
hw);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#define VHT_CAP_CHECK(cap) \
|
||||
do { \
|
||||
if (!ieee80211ac_cap_check(hw, conf, cap, #cap)) \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue