diff options
author | Miquel Raynal <miquel.raynal@bootlin.com> | 2023-03-10 15:53:46 +0100 |
---|---|---|
committer | Stefan Schmidt <stefan@datenfreihafen.org> | 2023-03-23 21:51:30 +0100 |
commit | d021d218f6d924ff5417c64b2e41d184e4bb32d3 (patch) | |
tree | 4e0ebf71655196d8bdfb7fcfe28e166acfa024b3 /include | |
parent | ieee802154: Add support for allowing to answer BEACON_REQ (diff) | |
download | linux-d021d218f6d924ff5417c64b2e41d184e4bb32d3.tar.xz linux-d021d218f6d924ff5417c64b2e41d184e4bb32d3.zip |
mac802154: Handle received BEACON_REQ
When performing an active scan, devices emit BEACON_REQ which
must be answered by other PANs receiving the request, unless they are
already passively sending beacons.
Answering a beacon request becomes a duty when the user tells us to send
beacons and the request provides an interval of 15.
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Acked-by: Alexander Aring <aahringo@redhat.com>
Link: https://lore.kernel.org/r/20230310145346.1397068-5-miquel.raynal@bootlin.com
Signed-off-by: Stefan Schmidt <stefan@datenfreihafen.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/ieee802154_netdev.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/ieee802154_netdev.h b/include/net/ieee802154_netdev.h index 257c9b2e9c9a..063313df447d 100644 --- a/include/net/ieee802154_netdev.h +++ b/include/net/ieee802154_netdev.h @@ -193,6 +193,8 @@ int ieee802154_beacon_push(struct sk_buff *skb, struct ieee802154_beacon_frame *beacon); int ieee802154_mac_cmd_push(struct sk_buff *skb, void *frame, const void *pl, unsigned int pl_len); +int ieee802154_mac_cmd_pl_pull(struct sk_buff *skb, + struct ieee802154_mac_cmd_pl *mac_pl); int ieee802154_max_payload(const struct ieee802154_hdr *hdr); |