wireless/ieee802154: Modifies i8 to support running various routines.

This commit is contained in:
Anthony Merlino 2017-06-11 14:17:09 -04:00
parent 82debd80dc
commit 3376783d10
3 changed files with 592 additions and 276 deletions

View File

@ -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

View File

@ -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;
}