Skip to content

Commit e25a741

Browse files
George-Stefanjhedberg
authored andcommitted
drivers: ieee802154: mcxw: disable poll optimization
The 802.15.4 PHY has the poll optimization enabled by default. Disable it until the driver state machine is updated. Signed-off-by: George Stefan <[email protected]>
1 parent 4e886d4 commit e25a741

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

drivers/ieee802154/ieee802154_mcxw.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1253,6 +1253,12 @@ static int mcxw_init(const struct device *dev)
12531253
msg.msgType = gPlmeEnableEncryption_c;
12541254
(void)MAC_PLME_SapHandler(&msg, ot_phy_ctx);
12551255

1256+
/* Disable poll optimization */
1257+
msg.msgType = gPlmeSetReq_c;
1258+
msg.msgData.setReq.PibAttribute = gPhyPibRxTimePoll_c;
1259+
msg.msgData.setReq.PibAttributeValue = 0;
1260+
(void)MAC_PLME_SapHandler(&msg, ot_phy_ctx);
1261+
12561262
mcxw_radio->state = RADIO_STATE_DISABLED;
12571263
mcxw_radio->energy_scan_done = NULL;
12581264

0 commit comments

Comments
 (0)