OSDN Git Service

mwifiex: Run SET_BSS_MODE when changing from P2P to STATION vif-type
authorJonas Dreßler <verdre@v0yd.nl>
Tue, 14 Sep 2021 19:59:03 +0000 (21:59 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 21 Sep 2021 15:02:17 +0000 (18:02 +0300)
commitc2e9666cdffd347460a2b17988db4cfaf2a68fb9
tree9e0c88313373a86505910787f862ae764e710e83
parentabe3a2c9ead8fd95db141ea1df8d96c48cad3893
mwifiex: Run SET_BSS_MODE when changing from P2P to STATION vif-type

We currently handle changing from the P2P to the STATION virtual
interface type slightly different than changing from P2P to ADHOC: When
changing to STATION, we don't send the SET_BSS_MODE command. We do send
that command on all other type-changes though, and it probably makes
sense to send the command since after all we just changed our BSS_MODE.
Looking at prior changes to this part of the code, it seems that this is
simply a leftover from old refactorings.

Since sending the SET_BSS_MODE command is the only difference between
mwifiex_change_vif_to_sta_adhoc() and the current code, we can now use
mwifiex_change_vif_to_sta_adhoc() for both switching to ADHOC and
STATION interface type.

This does not fix any particular bug and just "looked right", so there's
a small chance it might be a regression.

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