qcacld-3.0: 4.8 Kernel Migration - Remove nla_put_u64()
nla_put_u64() was replaced by nla_put_u64_64bit() in the 4.7 Kernel.
Replace any references as needed, and provide a shim for compiling
against older versions of the Linux kernel.
Change-Id: Ia85a0d1d839a0c76a90dedd603ea667e029a1c6b
CRs-Fixed: 1078754
(cherry picked from commit b5578f0c34243338d9a421e921c9432f5c1d835f)
diff --git a/core/hdd/src/wlan_hdd_tsf.c b/core/hdd/src/wlan_hdd_tsf.c
index 00ba66a..7710527 100644
--- a/core/hdd/src/wlan_hdd_tsf.c
+++ b/core/hdd/src/wlan_hdd_tsf.c
@@ -342,12 +342,13 @@
status = -ENOMEM;
goto end;
}
- if (nla_put_u64(reply_skb, QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE,
+ if (hdd_wlan_nla_put_u64(reply_skb,
+ QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE,
((uint64_t) adapter->tsf_high << 32 |
adapter->tsf_low)) ||
- nla_put_u64(reply_skb,
+ hdd_wlan_nla_put_u64(reply_skb,
QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE,
- adapter->tsf_sync_soc_timer)){
+ adapter->tsf_sync_soc_timer)) {
hdd_err("nla put fail");
kfree_skb(reply_skb);
status = -EINVAL;