|
@@ -3451,7 +3451,7 @@ __wlan_hdd_cfg80211_get_features(struct wiphy *wiphy,
|
|
|
struct sk_buff *skb = NULL;
|
|
|
uint32_t dbs_capability = 0;
|
|
|
bool one_by_one_dbs, two_by_two_dbs;
|
|
|
- bool value;
|
|
|
+ bool value, twt_req, twt_res;
|
|
|
QDF_STATUS ret = QDF_STATUS_E_FAILURE;
|
|
|
QDF_STATUS status;
|
|
|
int ret_val;
|
|
@@ -3502,6 +3502,13 @@ __wlan_hdd_cfg80211_get_features(struct wiphy *wiphy,
|
|
|
wlan_hdd_cfg80211_set_feature(feature_flags,
|
|
|
QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON);
|
|
|
|
|
|
+ ucfg_mlme_get_twt_requestor(hdd_ctx->psoc, &twt_req);
|
|
|
+ ucfg_mlme_get_twt_responder(hdd_ctx->psoc, &twt_res);
|
|
|
+
|
|
|
+ if (twt_req || twt_res)
|
|
|
+ wlan_hdd_cfg80211_set_feature(feature_flags,
|
|
|
+ QCA_WLAN_VENDOR_FEATURE_TWT);
|
|
|
+
|
|
|
/* Check the kernel version for upstream commit aced43ce780dc5 that
|
|
|
* has support for processing user cell_base hints when wiphy is
|
|
|
* self managed or check the backport flag for the same.
|