net: ieee802154: forbid monitor for add llsec devkey
authorAlexander Aring <aahringo@redhat.com>
Mon, 5 Apr 2021 00:30:49 +0000 (20:30 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 Apr 2021 11:00:53 +0000 (13:00 +0200)
commit4846c2debb2ca32585d4274c02893c4153b68159
treeb28ad098891cc96cd1e6a494078251c9270e36ff
parent07714229e0e2e9ad8ea19582ad3c41578ccb8c4c
net: ieee802154: forbid monitor for add llsec devkey

[ Upstream commit a347b3b394868fef15b16f143719df56184be81d ]

This patch forbids to add llsec devkey for monitor interfaces which we
don't support yet. Otherwise we will access llsec mib which isn't
initialized for monitors.

Signed-off-by: Alexander Aring <aahringo@redhat.com>
Link: https://lore.kernel.org/r/20210405003054.256017-11-aahringo@redhat.com
Signed-off-by: Stefan Schmidt <stefan@datenfreihafen.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/ieee802154/nl802154.c