prima: LLstats- Indicate peer type in peer stats
Peer stats expect the peer type. This commit ensures the same.
Change-Id: Ica88b4ca5afa40bfc968dc552a4a793b958d39bf
CRs-Fixed: 741748
diff --git a/CORE/HDD/src/wlan_hdd_cfg80211.c b/CORE/HDD/src/wlan_hdd_cfg80211.c
index 87be760..b6f7fc2 100644
--- a/CORE/HDD/src/wlan_hdd_cfg80211.c
+++ b/CORE/HDD/src/wlan_hdd_cfg80211.c
@@ -1087,6 +1087,13 @@
((uint8 *)pWifiPeerStat->peerInfo +
( i * sizeof(tSirWifiPeerInfo)));
+ if (WLAN_HDD_INFRA_STATION == pAdapter->device_mode) {
+ pWifiPeerInfo->type = WIFI_PEER_AP;
+ }
+ if (WLAN_HDD_P2P_CLIENT == pAdapter->device_mode) {
+ pWifiPeerInfo->type = WIFI_PEER_P2P_GO;
+ }
+
hddLog(VOS_TRACE_LEVEL_INFO,
" %d) LL_STATS Channel Stats "
" Peer Type %u "