Enable TWT responder AP role only if IEEE 802.11ax/HE is enabled
Set TWT responder configurator in the driver parameters only when the AP is configured with HE enabled. This was already done for the extended capability bit generation in commit8de0ff0fa1
("HE: Add TWT responder extended capabilities field"), but this parameter for the driver command to start the AP in _ieee802_11_set_beacon() missed the condition. Move the ieee80211ax check into the common helper function to cover both cases. In addition, add a check for disable_11ax to cover the case where HE is disabled for a specific BSS. Fixes:ab8c55358e
("HE: Dynamically turn on TWT responder support") Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
This commit is contained in:
parent
ed442e8dc7
commit
122cdd5925
2 changed files with 3 additions and 3 deletions
|
@ -533,7 +533,8 @@ int hostapd_get_he_twt_responder(struct hostapd_data *hapd,
|
|||
u8 *mac_cap;
|
||||
|
||||
if (!hapd->iface->current_mode ||
|
||||
!hapd->iface->current_mode->he_capab[mode].he_supported)
|
||||
!hapd->iface->current_mode->he_capab[mode].he_supported ||
|
||||
!hapd->iconf->ieee80211ax || hapd->conf->disable_11ax)
|
||||
return 0;
|
||||
|
||||
mac_cap = hapd->iface->current_mode->he_capab[mode].mac_cap;
|
||||
|
|
|
@ -413,8 +413,7 @@ static void hostapd_ext_capab_byte(struct hostapd_data *hapd, u8 *pos, int idx)
|
|||
*pos |= 0x01;
|
||||
#endif /* CONFIG_FILS */
|
||||
#ifdef CONFIG_IEEE80211AX
|
||||
if (hapd->iconf->ieee80211ax &&
|
||||
hostapd_get_he_twt_responder(hapd, IEEE80211_MODE_AP))
|
||||
if (hostapd_get_he_twt_responder(hapd, IEEE80211_MODE_AP))
|
||||
*pos |= 0x40; /* Bit 78 - TWT responder */
|
||||
#endif /* CONFIG_IEEE80211AX */
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue