net: ieee802154: Add config to enable promiscous mode

Add config to the radio API to enable/disable promiscuous mode.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
This commit is contained in:
Robert Lubos 2020-03-19 12:48:17 +01:00 committed by Jukka Rissanen
commit 5f67e4d9df

View file

@ -73,6 +73,9 @@ enum ieee802154_config_type {
* (NULL pointer) should disable it for all enabled addresses. * (NULL pointer) should disable it for all enabled addresses.
*/ */
IEEE802154_CONFIG_ACK_FPB, IEEE802154_CONFIG_ACK_FPB,
/** Enable/disable promiscuous mode. */
IEEE802154_CONFIG_PROMISCUOUS,
}; };
/** IEEE802.15.4 driver configuration data. */ /** IEEE802.15.4 driver configuration data. */
@ -90,6 +93,9 @@ struct ieee802154_config {
bool extended; bool extended;
bool enabled; bool enabled;
} ack_fpb; } ack_fpb;
/** ``IEEE802154_CONFIG_PROMISCUOUS`` */
bool promiscuous;
}; };
}; };