projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e2c3e6f
)
ieee802154: Add support for allowing to answer BEACON_REQ
author
Miquel Raynal
<miquel.raynal@bootlin.com>
Fri, 10 Mar 2023 14:53:45 +0000
(15:53 +0100)
committer
Stefan Schmidt
<stefan@datenfreihafen.org>
Thu, 23 Mar 2023 20:51:21 +0000
(21:51 +0100)
Accept beaconing configurations from the user which involve answering
beacon requests rather than only passively sending beacons. This may
help devices to find the PAN more quickly.
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Acked-by: Alexander Aring <aahringo@redhat.com>
Link:
https://lore.kernel.org/r/20230310145346.1397068-4-miquel.raynal@bootlin.com
Signed-off-by: Stefan Schmidt <stefan@datenfreihafen.org>
net/ieee802154/nl802154.c
patch
|
blob
|
history
diff --git
a/net/ieee802154/nl802154.c
b/net/ieee802154/nl802154.c
index 42e531aefe86a2f9db5c09c58ed0fd115a78b2e2..a20ac4bb48a45c761c0898c968c1393b582a593c 100644
(file)
--- a/
net/ieee802154/nl802154.c
+++ b/
net/ieee802154/nl802154.c
@@
-233,7
+233,7
@@
static const struct nla_policy nl802154_policy[NL802154_ATTR_MAX+1] = {
NLA_POLICY_RANGE(NLA_U8, NL802154_SCAN_DONE_REASON_FINISHED,
NL802154_SCAN_DONE_REASON_ABORTED),
[NL802154_ATTR_BEACON_INTERVAL] =
- NLA_POLICY_MAX(NLA_U8, IEEE802154_
MAX
_SCAN_DURATION),
+ NLA_POLICY_MAX(NLA_U8, IEEE802154_
ACTIVE
_SCAN_DURATION),
#ifdef CONFIG_IEEE802154_NL802154_EXPERIMENTAL
[NL802154_ATTR_SEC_ENABLED] = { .type = NLA_U8, },