]> git.baikalelectronics.ru Git - kernel.git/commit
net: ieee802154: mcr20a: Fix lifs/sifs periods
authorMiquel Raynal <miquel.raynal@bootlin.com>
Tue, 25 Jan 2022 12:14:22 +0000 (13:14 +0100)
committerStefan Schmidt <stefan@datenfreihafen.org>
Thu, 27 Jan 2022 07:20:22 +0000 (08:20 +0100)
commitaee12734e0959297f7686f26a6cbe4b571f60263
tree8aad85ac88e80df064059d760c6687fbe09d0cde
parent91d2b03149b3537395225a667fa61f3a7e00a6ae
net: ieee802154: mcr20a: Fix lifs/sifs periods

These periods are expressed in time units (microseconds) while 40 and 12
are the number of symbol durations these periods will last. We need to
multiply them both with phy->symbol_duration in order to get these
values in microseconds.

Fixes: 7e64edef6f77 ("ieee802154: Add NXP MCR20A IEEE 802.15.4 transceiver driver")
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Acked-by: Alexander Aring <aahringo@redhat.com>
Link: https://lore.kernel.org/r/20220125121426.848337-3-miquel.raynal@bootlin.com
Signed-off-by: Stefan Schmidt <stefan@datenfreihafen.org>
drivers/net/ieee802154/mcr20a.c