Skip to content

Commit bdc120a

Browse files
miquelraynalStefan-Schmidt
authored andcommitted
net: ieee802154: ca8210: 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 the symbol_duration in order to get these values in microseconds. Fixes: ded845a ("ieee802154: Add CA8210 IEEE 802.15.4 device driver") Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Link: https://lore.kernel.org/r/20220201180629.93410-2-miquel.raynal@bootlin.com Signed-off-by: Stefan Schmidt <stefan@datenfreihafen.org>
1 parent c86d861 commit bdc120a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/net/ieee802154/ca8210.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2975,8 +2975,8 @@ static void ca8210_hw_setup(struct ieee802154_hw *ca8210_hw)
29752975
ca8210_hw->phy->cca.opt = NL802154_CCA_OPT_ENERGY_CARRIER_AND;
29762976
ca8210_hw->phy->cca_ed_level = -9800;
29772977
ca8210_hw->phy->symbol_duration = 16;
2978-
ca8210_hw->phy->lifs_period = 40;
2979-
ca8210_hw->phy->sifs_period = 12;
2978+
ca8210_hw->phy->lifs_period = 40 * ca8210_hw->phy->symbol_duration;
2979+
ca8210_hw->phy->sifs_period = 12 * ca8210_hw->phy->symbol_duration;
29802980
ca8210_hw->flags =
29812981
IEEE802154_HW_AFILT |
29822982
IEEE802154_HW_OMIT_CKSUM |

0 commit comments

Comments
 (0)