net: mac802154: Convert the symbol duration into nanoseconds
authorMiquel Raynal <miquel.raynal@bootlin.com>
Tue, 1 Feb 2022 18:06:27 +0000 (19:06 +0100)
committerStefan Schmidt <stefan@datenfreihafen.org>
Thu, 10 Feb 2022 14:41:58 +0000 (15:41 +0100)
commit731cddce6dd110fb2cdee34eddb48599e7251517
tree54ba2afeedaa1a2a7a96fdc9201acb79aace6037
parentcfa1e01ecf516511bfc0fa87f96aa19bc6ee401f
net: mac802154: Convert the symbol duration into nanoseconds

Tdsym is often given in the spec as pretty small numbers in microseconds
and hence was reflected in the code as symbol_duration and was stored as
a u8. Actually, for UWB PHYs, the symbol duration is given in
nanoseconds and are as precise as picoseconds. In order to handle better
these PHYs, change the type of symbol_duration to u32 and store this
value in nanoseconds.

All the users of this variable are updated in a mechanical way.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Acked-by: Alexander Aring <aahringo@redhat.com>
Link: https://lore.kernel.org/r/20220201180629.93410-3-miquel.raynal@bootlin.com
Signed-off-by: Stefan Schmidt <stefan@datenfreihafen.org>
drivers/net/ieee802154/at86rf230.c
drivers/net/ieee802154/atusb.c
drivers/net/ieee802154/ca8210.c
drivers/net/ieee802154/mcr20a.c
include/net/cfg802154.h
net/mac802154/main.c