staging: vt6656: Fix return for unsupported cipher modes.
authorMalcolm Priestley <tvboxspy@gmail.com>
Sun, 2 Feb 2020 12:28:07 +0000 (12:28 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 10 Feb 2020 00:22:56 +0000 (16:22 -0800)
commit88900631d706af9a958190abaad59da024b93484
tree10f5c021a358eccd0789b98eb5c642db3b78091d
parentbe9bca8cfbda67ed6e8e44017df5e544881d629d
staging: vt6656: Fix return for unsupported cipher modes.

mac80211 expect to see -EOPNOTSUPP on unsupported ciphers so
these can be done on stack.

correct all the returns to do this.

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Link: https://lore.kernel.org/r/b65a3b23-735f-f679-0f16-a54c3266b5ae@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6656/key.c
drivers/staging/vt6656/main_usb.c