nl80211: Do not add NL80211_ATTR_SMPS_MODE attribute if HT is disabled
SMPS mode is applicable only for HT and including an attribute to configure it when HT is disabled could result in the AP start operation failing. Fix this by adding the attribute only in cases where HT is enabled. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
4ca16b5fd7
commit
ee298f1b1f
1 changed files with 19 additions and 17 deletions
|
@ -3526,6 +3526,7 @@ static int wpa_driver_nl80211_set_ap(void *priv,
|
|||
nla_put_u32(msg, NL80211_ATTR_CIPHER_SUITE_GROUP, suite))
|
||||
goto fail;
|
||||
|
||||
if (params->ht_opmode != -1) {
|
||||
switch (params->smps_mode) {
|
||||
case HT_CAP_INFO_SMPS_DYNAMIC:
|
||||
wpa_printf(MSG_DEBUG, "nl80211: SMPS mode - dynamic");
|
||||
|
@ -3544,6 +3545,7 @@ static int wpa_driver_nl80211_set_ap(void *priv,
|
|||
}
|
||||
if (nla_put_u32(msg, NL80211_ATTR_SMPS_MODE, smps_mode))
|
||||
goto fail;
|
||||
}
|
||||
|
||||
if (params->beacon_ies) {
|
||||
wpa_hexdump_buf(MSG_DEBUG, "nl80211: beacon_ies",
|
||||
|
|
Loading…
Reference in a new issue