]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite8ab09a0106fb5c12d99413b089b3f98ba21243a
treed274cbbf4a3a0e625fbd450a365c3f1f19eaa139
parent0ac67969efeda8a454eb809f5865f3f30832318d
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