Skip to content

Commit 7ac34d0

Browse files
fg-cfhcfriedt
authored andcommitted
drivers: ieee802154: cc13xx_cc26xx_subg: fix timing regression
Fixes a timing regression introduced by commit a12a6ab. This caused a massively increased package error rate. Fixes: #63324. Signed-off-by: Florian Grandel <[email protected]>
1 parent feb3896 commit 7ac34d0

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

drivers/ieee802154/ieee802154_cc13xx_cc26xx_subg.c

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -595,8 +595,12 @@ static int ieee802154_cc13xx_cc26xx_subg_attr_get(const struct device *dev,
595595
{
596596
ARG_UNUSED(dev);
597597

598+
/* We claim channel page nine with channel page zero channel range to
599+
* ensure SUN-FSK timing, see the TODO in
600+
* ieee802154_cc13xx_cc26xx_subg_channel_to_frequency().
601+
*/
598602
return ieee802154_attr_get_channel_page_and_range(
599-
attr, IEEE802154_ATTR_PHY_CHANNEL_PAGE_ZERO_OQPSK_2450_BPSK_868_915,
603+
attr, IEEE802154_ATTR_PHY_CHANNEL_PAGE_NINE_SUN_PREDEFINED,
600604
&drv_attr.phy_supported_channels, value);
601605
}
602606

@@ -896,7 +900,9 @@ static struct ieee802154_cc13xx_cc26xx_subg_data ieee802154_cc13xx_cc26xx_subg_d
896900
/* see IEEE 802.15.4, section 11.3, table 11-1 and section 10.2.8 */
897901
.csEndTime = RF_convertUsToRatTicks(
898902
IEEE802154_PHY_A_CCA_TIME *
899-
IEEE802154_PHY_SUN_FSK_863MHZ_915MHZ_SYMBOL_PERIOD_NS),
903+
(IEEE802154_PHY_SUN_FSK_863MHZ_915MHZ_SYMBOL_PERIOD_NS /
904+
NSEC_PER_USEC)
905+
),
900906
},
901907

902908
.cmd_prop_tx_adv = {

0 commit comments

Comments
 (0)