瀏覽代碼

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 年之前
父節點
當前提交
5918470bc5
共有 1 個文件被更改,包括 1 次插入1 次删除
  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;