ieee802154: Change error code on monitor scan netlink request
authorMiquel Raynal <miquel.raynal@bootlin.com>
Tue, 14 Feb 2023 13:50:32 +0000 (14:50 +0100)
committerStefan Schmidt <stefan@datenfreihafen.org>
Sat, 18 Feb 2023 15:41:23 +0000 (16:41 +0100)
commit1edecbd0bd45c9c899e0f82b123342f28423468c
treeb4e5d1fcc32bf75b28216074bd3c981bb5b872a3
parenta0b6106672b53158bf141d1a713aef2c891d74b1
ieee802154: Change error code on monitor scan netlink request

Returning EPERM gives the impression that "right now" it is not
possible, but "later" it could be, while what we want to express is the
fact that this is not currently supported at all (might change in the
future). So let's return EOPNOTSUPP instead.

Fixes: ed3557c947e1 ("ieee802154: Add support for user scanning requests")
Suggested-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/r/20230214135035.1202471-4-miquel.raynal@bootlin.com
Signed-off-by: Stefan Schmidt <stefan@datenfreihafen.org>
net/ieee802154/nl802154.c