qcacld-3.0: Add support to send twt feature capability

Currently there is no support to send twt capability to
user space.
Add Support to advertise twt capability to user space using
vendor flag QCA_WLAN_VENDOR_FEATURE_TWT when get capability
vendor command is invoked.

Change-Id: I9a91b864d6233c0341c67e46669f0d938f262178
CRs-fixed: 2424361
Cette révision appartient à :
Ashish Kumar Dhanotiya
2019-03-27 14:45:27 +05:30
révisé par nshrivas
Parent c949ad28ab
révision 12de533e25

Voir le fichier

@@ -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.