Explorar o código

qcacld-3.0: Add P2PGO support for get_station command

Add P2PGO support to get the remote peer stats for cfg80211
callback get_station.

Change-Id: I910e9c3edab481e8abc0f28f0a4b7df2b73c2c59
CRs-Fixed: 2851955
Min Liu %!s(int64=4) %!d(string=hai) anos
pai
achega
c7ca6d5f26
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      core/hdd/src/wlan_hdd_stats.c

+ 2 - 1
core/hdd/src/wlan_hdd_stats.c

@@ -5538,7 +5538,8 @@ static int __wlan_hdd_cfg80211_get_station(struct wiphy *wiphy,
 	if (wlan_hdd_validate_vdev_id(adapter->vdev_id))
 		return -EINVAL;
 
-	if (adapter->device_mode == QDF_SAP_MODE) {
+	if (adapter->device_mode == QDF_SAP_MODE ||
+	    adapter->device_mode == QDF_P2P_GO_MODE) {
 		qdf_status = ucfg_mlme_get_sap_get_peer_info(
 				hdd_ctx->psoc, &get_peer_info_enable);
 		if (qdf_status == QDF_STATUS_SUCCESS && get_peer_info_enable) {