nl80211: Add driver multi iftype HE capability parsing
The HE capabilities are no longer per PHY but per iftype on this specific PHY. It is therefore no longer enough to just parse the AP capabilities. The he_capabilities are now duplicated to store all information for IEEE80211_MODE_* which hostap cares about. The nl80211 driver fills in this information when the iftype supports HE. The rest of the code still only uses the IEEE80211_HE_AP portion but can be extended later to also use other HE capabilities. Signed-off-by: Sven Eckelmann <seckelmann@datto.com>
This commit is contained in:
parent
f74618cb92
commit
29d8bd1dec
9 changed files with 99 additions and 52 deletions
|
@ -3241,7 +3241,8 @@ static int hostapd_change_config_freq(struct hostapd_data *hapd,
|
|||
hostapd_get_oper_centr_freq_seg0_idx(conf),
|
||||
hostapd_get_oper_centr_freq_seg1_idx(conf),
|
||||
conf->vht_capab,
|
||||
mode ? &mode->he_capab : NULL))
|
||||
mode ? &mode->he_capab[IEEE80211_MODE_AP] :
|
||||
NULL))
|
||||
return -1;
|
||||
|
||||
switch (params->bandwidth) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue