Skip to content

wireless/ieee802154: minor fixes for i8sak - #3900

Merged
acassis merged 9 commits into
apache:masterfrom
raiden00pl:apps-i8sak-fixes
Oct 23, 2026
Merged

acassis merged 9 commits into
apache:masterfrom
raiden00pl:apps-i8sak-fixes

Conversation

@raiden00pl

Copy link
Copy Markdown
Member

Summary

fix various issues found while working on IEEE 802.15.4

Impact

minor bugs

Testing

IEEE 802.15.4 on nordic chips

Add the missing blank lines after the declarations in i8sak_main.c and
align a case label in i8sak_reset.c.

Assisted-by: Claude Code
Signed-off-by: raiden00pl <raiden00@railab.me>
Use the NuttX form, "Name:" with the name of the function that follows.

Assisted-by: Claude Code
Signed-off-by: raiden00pl <raiden00@railab.me>
With -d or -m the option string was sent as the payload instead of the
payload argument, and each tx confirm left a post on sigsem that ended
the next poll or assoc early.

Assisted-by: Claude Code
Signed-off-by: raiden00pl <raiden00@railab.me>
Each acceptassoc added a receiver and a daemon user, the receivers ran
out after three calls: replace the previous one.  assoc and poll waited
forever for a confirm when their receiver could not be registered.  The
event thread needs a SIGINT handler, an ignored signal does not break it
out of MAC802154IOC_GET_EVENT.

Assisted-by: Claude Code
Signed-off-by: raiden00pl <raiden00@railab.me>
The argument helpers exited with the instance locked, every later i8sak
command then blocked.

Assisted-by: Claude Code
Signed-off-by: raiden00pl <raiden00@railab.me>
sixlowpan_disassoc_req() was defined as sixlowpan_desassoc_req(), and the
orphan response functions passed an uninitialized argument to the MAC.

Assisted-by: Claude Code
Signed-off-by: raiden00pl <raiden00@railab.me>
…tart

A daemon that failed to open the device never signalled its start, so
the caller blocked forever, and a failed start left the daemon user
counted.  i8sak_requestdaemon() ends the command on any failure.

Assisted-by: Claude Code
Signed-off-by: raiden00pl <raiden00@railab.me>
A command that exited after requesting the daemon left its event
receiver registered and the daemon running, and a failed instance setup
exited with the instance on the active list.

Assisted-by: Claude Code
Signed-off-by: raiden00pl <raiden00@railab.me>
blaster requested the daemon before parsing its options and kept it on
a help or error exit and on quit, and a failed socket bind exited the
whole daemon from the blaster thread.

Assisted-by: Claude Code
Signed-off-by: raiden00pl <raiden00@railab.me>

@cederom cederom left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @raiden00pl :-)

@acassis
acassis merged commit 9583303 into apache:master Oct 23, 2026
50 of 79 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants