wireless/ieee80215: Fixes poll request issue

This commit is contained in:
Anthony Merlino 2017-06-19 15:55:02 -04:00
parent fc4f1de766
commit 0603d34ad9

View File

@ -142,6 +142,12 @@ int mac802154_req_poll(MACHANDLE mac, FAR struct ieee802154_poll_req_s *req)
txdesc);
}
/* Save a copy of the destination addressing infromation into the tx descriptor.
* We only do this for commands to help with handling their progession.
*/
memcpy(&txdesc->destaddr, &req->coordaddr, sizeof(struct ieee802154_addr_s));
/* Save a reference of the tx descriptor */
priv->cmd_desc = txdesc;