Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion wireless/ieee802154/i8sak/i8sak_assoc.c
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ static void assoc_eventcb(FAR struct ieee802154_primitive_s *primitive,
else
{
printf("i8sak: ASSOC.request failed: %s\n",
IEEE802154_STATUS_STRING[primitive->u.assocconf.status]);
g_ieee802154_status_string[primitive->u.assocconf.status]);
i8sak->result = -EAGAIN;
}

Expand Down
35 changes: 35 additions & 0 deletions wireless/ieee802154/i8sak/i8sak_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,41 @@ static int i8sak_daemon(int argc, FAR char *argv[]);
static int i8sak_showusage(FAR const char *progname, int exitcode);
static void i8sak_switch_instance(FAR char *ifname);

/****************************************************************************
* Public Data
****************************************************************************/

#if defined(CONFIG_BUILD_PROTECTED) || defined(CONFIG_BUILD_KERNEL) || \
!defined(CONFIG_IEEE802154_MAC)
FAR const char *g_ieee802154_status_string[] =
{
"Success",
"Out of capacity",
"Denied",
"Failure",
"Beacon loss",
"Channel access failure",
"Disable TRX failure",
"Failed security check",
"Frame too long",
"Invalid GTS",
"Invalid handle",
"Invalid parameter",
"No ack",
"No beacon",
"No data",
"No short address",
"PAN ID conflict",
"Realignment",
"Transaction expired",
"Transaction overflow",
"Tx active",
"Unavailable key",
"Unsupported attribute",
"Limit reached",
};
#endif

/****************************************************************************
* Public Functions
****************************************************************************/
Expand Down
2 changes: 1 addition & 1 deletion wireless/ieee802154/i8sak/i8sak_poll.c
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ static void poll_eventcb(FAR struct ieee802154_primitive_s *primitive,
else
{
printf("i8sak: POLL.request failed: %s\n",
IEEE802154_STATUS_STRING[primitive->u.pollconf.status]);
g_ieee802154_status_string[primitive->u.pollconf.status]);
}

sem_post(&i8sak->sigsem);
Expand Down
2 changes: 1 addition & 1 deletion wireless/ieee802154/i8sak/i8sak_scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ static void scan_eventcb(FAR struct ieee802154_primitive_s *primitive,
int i;

printf("\n\ni8sak: Scan complete: %s\n",
IEEE802154_STATUS_STRING[scan->status]);
g_ieee802154_status_string[scan->status]);

printf("Scan type: ");

Expand Down
2 changes: 1 addition & 1 deletion wireless/ieee802154/i8sak/i8sak_tx.c
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ static void tx_eventcb(FAR struct ieee802154_primitive_s *primitive,
else
{
printf("i8sak: frame failed to send: %s\n",
IEEE802154_STATUS_STRING[primitive->u.dataconf.status]);
g_ieee802154_status_string[primitive->u.dataconf.status]);
}

sem_post(&i8sak->sigsem);
Expand Down
Loading