Skip to content

Commit 1534efc

Browse files
Alexander AringStefan-Schmidt
authored andcommitted
net: ieee802154: stop dump llsec params for monitors
This patch stops dumping llsec params for monitors which we don't support yet. Otherwise we will access llsec mib which isn't initialized for monitors. Reported-by: [email protected] Signed-off-by: Alexander Aring <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Stefan Schmidt <[email protected]>
1 parent 9dde130 commit 1534efc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

net/ieee802154/nl802154.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -820,8 +820,13 @@ nl802154_send_iface(struct sk_buff *msg, u32 portid, u32 seq, int flags,
820820
goto nla_put_failure;
821821

822822
#ifdef CONFIG_IEEE802154_NL802154_EXPERIMENTAL
823+
if (wpan_dev->iftype == NL802154_IFTYPE_MONITOR)
824+
goto out;
825+
823826
if (nl802154_get_llsec_params(msg, rdev, wpan_dev) < 0)
824827
goto nla_put_failure;
828+
829+
out:
825830
#endif /* CONFIG_IEEE802154_NL802154_EXPERIMENTAL */
826831

827832
genlmsg_end(msg, hdr);

0 commit comments

Comments
 (0)