mwifiex: Small cleanup for handling virtual interface type changes
authorJonas Dreßler <verdre@v0yd.nl>
Tue, 14 Sep 2021 19:59:01 +0000 (21:59 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 21 Sep 2021 15:02:16 +0000 (18:02 +0300)
commitbabe2a332dc40b0e43035e529b357a232dbe7f7b
tree306afabed4f73b1f2b9ffd3cb9ac057bedd032d6
parentfe7bc23a8c5eba8a49061c1d15d0a9d45ef18130
mwifiex: Small cleanup for handling virtual interface type changes

Handle the obvious invalid virtual interface type changes with a general
check instead of looking at the individual change.

For type changes from P2P_CLIENT to P2P_GO and the other way round, this
changes the behavior slightly: We now still do nothing, but return
-EOPNOTSUPP instead of 0. Now that behavior was incorrect before and
still is, because type changes between these two types are actually
possible and supported, which we'll fix in a following commit.

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-2-verdre@v0yd.nl
drivers/net/wireless/marvell/mwifiex/cfg80211.c