From f46065c73ac695829fd41fa59253a5a149158a7a Mon Sep 17 00:00:00 2001 From: Dustin Brown Date: Mon, 21 Nov 2016 14:23:40 -0800 Subject: 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 --- core/hdd/src/wlan_hdd_stats.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3