Kaynağa Gözat

qcacld-3.0: Use correct enum for QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE

Currently in driver, the vendor attribute QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE
uses values defined in the enum qca_wlan_vendor_attr_ll_stats_results_type,
which is defined internally but never upstreamed.

So, for the attribute QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE, use values defined
in the correct enum qca_wlan_vendor_attr_ll_stats_type which is upstreamed.

Change-Id: I143f9c8f50ab2f7a7ede68625552f07f4c50f73d
CRs-Fixed: 3489547
Aditya Kodukula 1 yıl önce
ebeveyn
işleme
958cf718b6
1 değiştirilmiş dosya ile 3 ekleme ve 3 silme
  1. 3 3
      core/hdd/src/wlan_hdd_stats.c

+ 3 - 3
core/hdd/src/wlan_hdd_stats.c

@@ -763,7 +763,7 @@ static bool put_wifi_iface_stats(struct wifi_interface_stats *if_stat,
 
 	if (nla_put_u32(vendor_event,
 			QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE,
-			QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_IFACE) ||
+			QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_IFACE) ||
 	    nla_put_u32(vendor_event,
 			QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NUM_PEERS,
 			num_peers) ||
@@ -979,7 +979,7 @@ static void hdd_link_layer_process_peer_stats(struct hdd_adapter *adapter,
 
 	if (nla_put_u32(skb,
 			QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE,
-			QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_PEER) ||
+			QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_PEERS) ||
 	    nla_put_u32(skb,
 			QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_MORE_DATA,
 			more_data) ||
@@ -1313,7 +1313,7 @@ static void hdd_llstats_post_radio_stats(struct hdd_adapter *adapter,
 
 	if (nla_put_u32(vendor_event,
 			QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE,
-			QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_RADIO) ||
+			QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_RADIO) ||
 	    nla_put_u32(vendor_event,
 			QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_MORE_DATA,
 			more_data) ||