• Arnd Bergmann's avatar
    mac80211: use ktime_get_seconds · 84b00607
    Arnd Bergmann authored
    The mac80211 code uses ktime_get_ts to measure the connected time.
    As this uses monotonic time, it is y2038 safe on 32-bit systems,
    but we still want to deprecate the use of 'timespec' because most
    other users are broken.
    This changes the code to use ktime_get_seconds() instead, which
    avoids the timespec structure and is slightly more efficient.
    Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
    Cc: Johannes Berg <johannes@sipsolutions.net>
    Cc: linux-wireless@vger.kernel.org
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>