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
This commit is contained in:
Himanshu Agarwal 2016-06-08 14:50:00 +05:30 • committed by Vishwajith Upendra
commit a6cedee349
4 changed files with 7 additions and 7 deletions

View file

@ -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;

View file

@ -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_ */

View file

@ -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;

View file

@ -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;