ieee802154: Add support for user scanning requests
authorMiquel Raynal <miquel.raynal@bootlin.com>
Tue, 3 Jan 2023 16:56:39 +0000 (17:56 +0100)
committerStefan Schmidt <stefan@datenfreihafen.org>
Tue, 3 Jan 2023 18:31:03 +0000 (19:31 +0100)
commited3557c947e1d4164d370cc2d69dd7eb92706f0a
tree13e221a5c0e9e3f3213fff13e90f6330c0617441
parentd8b879c00f69a22738f6bb7198e763cfcc6b68f8
ieee802154: Add support for user scanning requests

The ieee802154 layer should be able to scan a set of channels in order
to look for beacons advertizing PANs. Supporting this involves adding
two user commands: triggering scans and aborting scans. The user should
also be notified when a new beacon is received and also upon scan
termination.

A scan request structure is created to list the requirements and to be
accessed asynchronously when changing channels or receiving beacons.

Mac layers may now implement the ->trigger_scan() and ->abort_scan()
hooks.

Co-developed-by: David Girault <david.girault@qorvo.com>
Signed-off-by: David Girault <david.girault@qorvo.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Acked-by: Alexander Aring <aahringo@redhat.com>
Link: https://lore.kernel.org/r/20230103165644.432209-2-miquel.raynal@bootlin.com
Signed-off-by: Stefan Schmidt <stefan@datenfreihafen.org>
include/linux/ieee802154.h
include/net/cfg802154.h
include/net/nl802154.h
net/ieee802154/nl802154.c
net/ieee802154/nl802154.h
net/ieee802154/rdev-ops.h
net/ieee802154/trace.h