From 3f07f04e78643fab5844848f425a36d58e7fe955 Mon Sep 17 00:00:00 2001 From: Anthony Merlino Date: Mon, 17 Jul 2017 01:24:06 -0400 Subject: [PATCH] wireless/ieee802154/i8sak: Minor setting changes --- wireless/ieee802154/i8sak/Kconfig | 4 ++++ wireless/ieee802154/i8sak/i8sak_main.c | 10 +++++----- wireless/ieee802154/i8sak/i8sak_scan.c | 2 +- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/wireless/ieee802154/i8sak/Kconfig b/wireless/ieee802154/i8sak/Kconfig index d74fddd74..ac3381a59 100644 --- a/wireless/ieee802154/i8sak/Kconfig +++ b/wireless/ieee802154/i8sak/Kconfig @@ -31,5 +31,9 @@ config IEEE802154_I8SAK_STACKSIZE int "i8sak stack size" default 2048 +config IEEE802154_I8SAK_CHNUM + int "default channel" + default 11 + endif diff --git a/wireless/ieee802154/i8sak/i8sak_main.c b/wireless/ieee802154/i8sak/i8sak_main.c index 9f309c4db..02949d982 100644 --- a/wireless/ieee802154/i8sak/i8sak_main.c +++ b/wireless/ieee802154/i8sak/i8sak_main.c @@ -150,14 +150,14 @@ int i8sak_tx(FAR struct i8sak_s *i8sak, int fd) /* Set an application defined handle */ - tx.meta.msdu_handle = i8sak->msdu_handle++; + tx.meta.handle = i8sak->msdu_handle++; /* This is a normal transaction, no special handling */ - tx.meta.msdu_flags.ack_tx = 0; - tx.meta.msdu_flags.gts_tx = 0; + tx.meta.flags.ackreq = 1; + tx.meta.flags.usegts = 0; - tx.meta.msdu_flags.indirect_tx = i8sak->indirect; + tx.meta.flags.indirect = i8sak->indirect; if (i8sak->indirect) { @@ -178,7 +178,7 @@ int i8sak_tx(FAR struct i8sak_s *i8sak, int fd) tx.meta.ranging = IEEE802154_NON_RANGING; - tx.meta.srcaddr_mode = IEEE802154_ADDRMODE_SHORT; + tx.meta.srcmode = IEEE802154_ADDRMODE_SHORT; memcpy(&tx.meta.destaddr, &i8sak->ep, sizeof(struct ieee802154_addr_s)); /* Each byte is represented by 2 chars */ diff --git a/wireless/ieee802154/i8sak/i8sak_scan.c b/wireless/ieee802154/i8sak/i8sak_scan.c index 7a51dd42d..0be136ccd 100644 --- a/wireless/ieee802154/i8sak/i8sak_scan.c +++ b/wireless/ieee802154/i8sak/i8sak_scan.c @@ -142,7 +142,7 @@ void i8sak_scan_cmd(FAR struct i8sak_s *i8sak, int argc, FAR char *argv[]) i8sak_cmd_error(i8sak); } - scan.duration = 8; + scan.duration = 7; scan.chpage = i8sak->chpage; /* Parse channel list */