net: ieee802154: Add config to enable PAN coordinator mode

Add config to the radio API to enable/disable PAN coordinator mode.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
This commit is contained in:
Robert Lubos 2020-03-19 14:45:01 +01:00 committed by Jukka Rissanen
commit ca5489d99f

View file

@ -74,6 +74,9 @@ enum ieee802154_config_type {
*/
IEEE802154_CONFIG_ACK_FPB,
/** Indicates whether the device is a PAN coordinator. */
IEEE802154_CONFIG_PAN_COORDINATOR,
/** Enable/disable promiscuous mode. */
IEEE802154_CONFIG_PROMISCUOUS,
};
@ -94,6 +97,9 @@ struct ieee802154_config {
bool enabled;
} ack_fpb;
/** ``IEEE802154_CONFIG_PAN_COORDINATOR`` */
bool pan_coordinator;
/** ``IEEE802154_CONFIG_PROMISCUOUS`` */
bool promiscuous;
};