diff --git a/core/hdd/src/wlan_hdd_tsf.c b/core/hdd/src/wlan_hdd_tsf.c index 3c3577c029ea9..8124ad9186f00 100644 --- a/core/hdd/src/wlan_hdd_tsf.c +++ b/core/hdd/src/wlan_hdd_tsf.c @@ -1454,7 +1454,7 @@ enum hdd_tsf_op_result hdd_netbuf_timestamp(qdf_nbuf_t netbuf, if (!ret) { hwtstamps.hwtstamp = soc_time; *skb_hwtstamps(netbuf) = hwtstamps; - netbuf->tstamp = 0; + netbuf->tstamp = ktime_set(0, 0); return HDD_TSF_OP_SUCC; } } @@ -1543,7 +1543,7 @@ int hdd_rx_timestamp(qdf_nbuf_t netbuf, uint64_t target_time) return 0; /* reset tstamp when failed */ - netbuf->tstamp = 0; + netbuf->tstamp = ktime_set(0, 0); return -EINVAL; }