net: mac802154: Fix symbol durations
authorMiquel Raynal <miquel.raynal@bootlin.com>
Thu, 28 Apr 2022 16:41:40 +0000 (18:41 +0200)
committerStefan Schmidt <stefan@datenfreihafen.org>
Sat, 30 Apr 2022 18:29:47 +0000 (20:29 +0200)
commit1229df4b313acf15d372caadcbbc62a430cd2697
tree5bf6cd7f25f11d4e6b5a789debec0fc75ca95bb3
parent510ce586320dafc4eebfcb4472a0f972e6c35ada
net: mac802154: Fix symbol durations

There are two major issues in the logic calculating the symbol durations
based on the page/channel:
- The page number is used in place of the channel value.
- The BIT() macro is missing because we want to check the channel
  value against a bitmask.

Fix these two errors and apologize loudly for this mistake.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Acked-by: Alexander Aring <aahringo@redhat.com>
Link: https://lore.kernel.org/r/20220428164140.251965-1-miquel.raynal@bootlin.com
Signed-off-by: Stefan Schmidt <stefan@datenfreihafen.org>
net/mac802154/main.c