mwifiex: Use function to check whether interface type change is allowed
authorJonas Dreßler <verdre@v0yd.nl>
Tue, 14 Sep 2021 19:59:02 +0000 (21:59 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 21 Sep 2021 15:02:16 +0000 (18:02 +0300)
commitabe3a2c9ead8fd95db141ea1df8d96c48cad3893
treed274cbbf4a3a0e625fbd450a365c3f1f19eaa139
parentbabe2a332dc40b0e43035e529b357a232dbe7f7b
mwifiex: Use function to check whether interface type change is allowed

Instead of bailing out in the function which is supposed to do the type
change, detect invalid changes beforehand using a generic function and
return an error if the change is not allowed.

Signed-off-by: Jonas Dreßler <verdre@v0yd.nl>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20210914195909.36035-3-verdre@v0yd.nl
drivers/net/wireless/marvell/mwifiex/cfg80211.c