whitebatman2 / rtl8821CU

Realtek 802.11ac USB WLAN driver
GNU General Public License v2.0
310 stars 177 forks source link

"get_monotonic_boottime(&ts)" deprecated in kernel 4.20 -> use "ktime_get_boottime_ts64(&ts)" #19

Closed meijkl closed 4 years ago

meijkl commented 5 years ago

Hi whitebatman2,

"get_monotonic_boottime(&ts)" is deprecated in kernel 4.20. See https://www.kernel.org/doc/html/latest/core-api/timekeeping.html "Deprecated time interfaces".

In "ioctl_cfg80211.c" I've replaced:

struct timespec ts;
get_monotonic_boottime(&ts);

with:

struct timespec64 ts;
ktime_get_boottime_ts64(&ts);

Then the DKMS module compiles properly!

Please could you adapt the code accordingly.

Best Klaus