From 367153adc90b485ac6f50eadf098dfdd07d0c12f Mon Sep 17 00:00:00 2001 From: Anthony Merlino Date: Tue, 27 Jun 2017 18:08:32 -0400 Subject: [PATCH] ieee802154: Supports get request for coordinator address --- wireless/ieee802154/mac802154_getset.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/wireless/ieee802154/mac802154_getset.c b/wireless/ieee802154/mac802154_getset.c index ba0f5f676a..b1c29f7191 100644 --- a/wireless/ieee802154/mac802154_getset.c +++ b/wireless/ieee802154/mac802154_getset.c @@ -92,6 +92,12 @@ int mac802154_req_get(MACHANDLE mac, enum ieee802154_attr_e attr, case IEEE802154_ATTR_MAC_EADDR: IEEE802154_EADDRCOPY(attrval->mac.eaddr, priv->addr.eaddr); break; + case IEEE802154_ATTR_MAC_COORD_SADDR: + IEEE802154_SADDRCOPY(attrval->mac.coordsaddr, priv->pandesc.coordaddr.saddr); + break; + case IEEE802154_ATTR_MAC_COORD_EADDR: + IEEE802154_EADDRCOPY(attrval->mac.coordeaddr, priv->pandesc.coordaddr.eaddr); + break; case IEEE802154_ATTR_MAC_DEVMODE: attrval->mac.devmode = priv->devmode; break;