|
@@ -2620,14 +2620,15 @@ static bool lim_enable_twt(struct mac_context *mac_ctx, tDot11fBeaconIEs *ie)
|
|
{
|
|
{
|
|
struct s_ext_cap *ext_cap;
|
|
struct s_ext_cap *ext_cap;
|
|
bool twt_support_in_11n = false;
|
|
bool twt_support_in_11n = false;
|
|
|
|
+ bool twt_request = false;
|
|
|
|
|
|
if (!ie) {
|
|
if (!ie) {
|
|
pe_debug("ie is null");
|
|
pe_debug("ie is null");
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
|
|
|
|
- if (mac_ctx->mlme_cfg->he_caps.dot11_he_cap.twt_request &&
|
|
|
|
- (ie->qcn_ie.present || ie->he_cap.twt_responder)) {
|
|
|
|
|
|
+ wlan_twt_cfg_get_support_requestor(mac_ctx->psoc, &twt_request);
|
|
|
|
+ if (twt_request && (ie->qcn_ie.present || ie->he_cap.twt_responder)) {
|
|
pe_debug("TWT is supported, hence disable UAPSD; twt req supp: %d,twt respon supp: %d, QCN_IE: %d",
|
|
pe_debug("TWT is supported, hence disable UAPSD; twt req supp: %d,twt respon supp: %d, QCN_IE: %d",
|
|
mac_ctx->mlme_cfg->he_caps.dot11_he_cap.twt_request,
|
|
mac_ctx->mlme_cfg->he_caps.dot11_he_cap.twt_request,
|
|
ie->he_cap.twt_responder,
|
|
ie->he_cap.twt_responder,
|