mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-09 14:35:12 +00:00
wireless/ieee802154: Modifies i8 to support running various routines.
This commit is contained in:
parent
82debd80dc
commit
3376783d10
3 changed files with 592 additions and 276 deletions
|
|
@ -65,6 +65,7 @@ int ieee802154_get_req(int fd, FAR struct ieee802154_get_req_s *req);
|
|||
int ieee802154_gts_req(int fd, FAR struct ieee802154_gts_req_s *req);
|
||||
int ieee802154_orphan_resp(int fd,
|
||||
FAR struct ieee802154_orphan_resp_s *resp);
|
||||
int ieee802154_reset_req(int fd, FAR struct ieee802154_reset_req_s *req);
|
||||
int ieee802154_rxenable_req(int fd,
|
||||
FAR struct ieee802154_rxenable_req_s *req);
|
||||
int ieee802154_scan_req(int fd, FAR struct ieee802154_scan_req_s *req);
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -56,10 +56,9 @@
|
|||
|
||||
int ieee802154_assoc_resp(int fd, FAR struct ieee802154_assoc_resp_s *resp)
|
||||
{
|
||||
union ieee802154_macarg_u arg;
|
||||
int ret;
|
||||
|
||||
ret = ioctl(fd, MAC802154IOC_MLME_ASSOC_RESPONSE, (unsigned long)((uintptr_t)&arg));
|
||||
ret = ioctl(fd, MAC802154IOC_MLME_ASSOC_RESPONSE, (unsigned long)((uintptr_t)resp));
|
||||
if (ret < 0)
|
||||
{
|
||||
ret = -errno;
|
||||
|
|
@ -67,6 +66,5 @@ int ieee802154_assoc_resp(int fd, FAR struct ieee802154_assoc_resp_s *resp)
|
|||
return ret;
|
||||
}
|
||||
|
||||
memcpy(resp, &arg.assocresp, sizeof(struct ieee802154_assoc_resp_s));
|
||||
return OK;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue