aboutsummaryrefslogtreecommitdiff
path: root/tools/include/linux/overflow.h
diff options
context:
space:
mode:
authorDmitry Antipov <[email protected]>2024-05-08 14:40:10 +0300
committerStefan Schmidt <[email protected]>2024-05-18 23:46:25 +0200
commit07aa33988ad92fef79056f5ec30b9a0e4364b616 (patch)
tree6525041273a7e2a33dd54694c75519a3059129c4 /tools/include/linux/overflow.h
parent4b377b4868ef17b040065bd468668c707d2477a5 (diff)
mac802154: fix time calculation in ieee802154_configure_durations()
Since 'symbol_duration' of 'struct wpan_phy' is in nanoseconds but 'lifs_period' and 'sifs_period' are both in microseconds, fix time calculation in 'ieee802154_configure_durations()' and use convenient 'NSEC_PER_USEC' in 'ieee802154_setup_wpan_phy_pib()' as well. Compile tested only. Found by Linux Verification Center (linuxtesting.org) with SVACE. Fixes: 781830c800dd ("net: mac802154: Set durations automatically") Signed-off-by: Dmitry Antipov <[email protected]> Acked-by: Miquel Raynal <[email protected]> Message-ID: <[email protected]> Signed-off-by: Stefan Schmidt <[email protected]>
Diffstat (limited to 'tools/include/linux/overflow.h')
0 files changed, 0 insertions, 0 deletions