]> git.baikalelectronics.ru Git - kernel.git/commit
mwifiex: Allow switching interface type from P2P_CLIENT to P2P_GO
authorJonas Dreßler <verdre@v0yd.nl>
Tue, 14 Sep 2021 19:59:06 +0000 (21:59 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 21 Sep 2021 15:02:18 +0000 (18:02 +0300)
commit449df39b1b05d285504121e91dc2ec6e860fe99f
tree7b96f899e0c1fa1746b8cfa272d56c3de5a9d1ee
parentdd08ad053caf16ca3db1f60a10588a177e86d3c2
mwifiex: Allow switching interface type from P2P_CLIENT to P2P_GO

It's possible to change virtual interface type between P2P_CLIENT and
P2P_GO, the card supports that just fine, and it happens for example
when using miracast with the miraclecast software.

So allow type changes between P2P_CLIENT and P2P_GO and simply call into
mwifiex_change_vif_to_p2p(), which handles this just fine. We have to
call mwifiex_cfg80211_deinit_p2p() before though to make sure the old
p2p mode is properly uninitialized.

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