summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDustin Brown <dustinb@codeaurora.org>2016-11-21 14:23:40 -0800
committerqcabuildsw <qcabuildsw@localhost>2016-11-22 13:26:43 -0800
commitf46065c73ac695829fd41fa59253a5a149158a7a (patch)
tree5a647b79796cd48b12d4e7c5f282f78742d45a9a
parenta9b6d5b6140f00fb70b1bc26a97832cd857e4ef2 (diff)
qcacld-3.0: Report correct NAN peer type in link layer stats
An incorrect value is used for NAN peers when reporting link layer stats. Change the peer type mapping when reporting link layer stats so the correct value is returned for NAN peer types. Change-Id: I1d8fc9e1486f9ba72675bcb48744d06dd18bf004 CRs-Fixed: 1092789
-rw-r--r--core/hdd/src/wlan_hdd_stats.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/hdd/src/wlan_hdd_stats.c b/core/hdd/src/wlan_hdd_stats.c
index 3e08913947ad..471ecf08881d 100644
--- a/core/hdd/src/wlan_hdd_stats.c
+++ b/core/hdd/src/wlan_hdd_stats.c
@@ -252,7 +252,7 @@ static tSirWifiPeerType wmi_to_sir_peer_type(enum wmi_peer_type type)
case WMI_PEER_TYPE_TDLS:
return WIFI_PEER_TDLS;
case WMI_PEER_TYPE_NAN_DATA:
- return WMI_PEER_TYPE_NAN_DATA;
+ return WIFI_PEER_NAN;
default:
hdd_err("Cannot map wmi_peer_type %d to HAL peer type", type);
return WIFI_PEER_INVALID;