Browse Source

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
Dustin Brown 8 years ago
parent
commit
5918470bc5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      core/hdd/src/wlan_hdd_stats.c

+ 1 - 1
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;