ソースを参照

qcacld-3.0: Change unsigned long to uint64_t

Change unsigned long to uint64_t while updating intra bss forwarded
packets count to make sure that the assignment is compatible for all
architectures.

Change-Id: I6bc0e2d7524c117ce199b4a373f541fd06fc9ef8
CRs-Fixed: 996735
Himanshu Agarwal 8 年 前
コミット
a6cedee349

+ 1 - 1
core/dp/txrx/ol_rx_fwd.c

@@ -246,7 +246,7 @@ ol_rx_fwd_check(struct ol_txrx_vdev_t *vdev,
  * Return: status -> A_OK - success, A_ERROR - failure
  */
 A_STATUS ol_get_intra_bss_fwd_pkts_count(uint8_t vdev_id,
-		unsigned long *fwd_tx_packets, unsigned long *fwd_rx_packets)
+		uint64_t *fwd_tx_packets, uint64_t *fwd_rx_packets)
 {
 	struct ol_txrx_vdev_t *vdev = NULL;
 

+ 2 - 2
core/dp/txrx/ol_rx_fwd.h

@@ -75,7 +75,7 @@ ol_rx_fwd_check(struct ol_txrx_vdev_t *vdev,
 A_STATUS
 ol_get_intra_bss_fwd_pkts_count(
 	uint8_t vdev_id,
-	unsigned long *fwd_tx_packets,
-	unsigned long *fwd_rx_packets);
+	uint64_t *fwd_tx_packets,
+	uint64_t *fwd_rx_packets);
 
 #endif /* _OL_RX_FWD_H_ */

+ 2 - 2
core/hdd/inc/wlan_hdd_main.h

@@ -1002,8 +1002,8 @@ struct hdd_adapter_s {
 #ifdef MSM_PLATFORM
 	unsigned long prev_rx_packets;
 	unsigned long prev_tx_packets;
-	unsigned long prev_fwd_tx_packets;
-	unsigned long prev_fwd_rx_packets;
+	uint64_t prev_fwd_tx_packets;
+	uint64_t prev_fwd_rx_packets;
 	int connection;
 #endif
 	bool is_roc_inprogress;

+ 2 - 2
core/hdd/src/wlan_hdd_main.c

@@ -4653,8 +4653,8 @@ static void hdd_bus_bw_compute_cbk(void *priv)
 	hdd_context_t *hdd_ctx = (hdd_context_t *) priv;
 	hdd_adapter_t *adapter = NULL;
 	uint64_t tx_packets = 0, rx_packets = 0;
-	unsigned long fwd_tx_packets = 0, fwd_rx_packets = 0;
-	unsigned long fwd_tx_packets_diff = 0, fwd_rx_packets_diff = 0;
+	uint64_t fwd_tx_packets = 0, fwd_rx_packets = 0;
+	uint64_t fwd_tx_packets_diff = 0, fwd_rx_packets_diff = 0;
 	uint64_t total_tx = 0, total_rx = 0;
 	hdd_adapter_list_node_t *adapterNode = NULL;
 	QDF_STATUS status = 0;