From ca5489d99fe216dba73565883854ff7ebdc9afc4 Mon Sep 17 00:00:00 2001 From: Robert Lubos Date: Thu, 19 Mar 2020 14:45:01 +0100 Subject: [PATCH] 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 --- include/net/ieee802154_radio.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/net/ieee802154_radio.h b/include/net/ieee802154_radio.h index 48e64938352..f955fa82556 100644 --- a/include/net/ieee802154_radio.h +++ b/include/net/ieee802154_radio.h @@ -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; };