Skip to content

Commit 4d7ab36

Browse files
gbhat-marvellKalle Valo
authored andcommitted
mwifiex: Do not change bss_type in change_virtual_intf
When user adds a virtual interface driver will set the bss_type to the iface_type given by the user. When supplicant is started on the same interface, a call to change_virtual_intf will be triggered if if_type is not NL80211_IFTYPE_STATION. Here driver should not update it's bss_type, because bss_type is intended to indicate the original iface_type and changing the same will defeat the purpose of creating this interface. Signed-off-by: Ganapathi Bhat <gbhat@marvell.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
1 parent 76f146b commit 4d7ab36

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

drivers/net/wireless/marvell/mwifiex/cfg80211.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -892,24 +892,20 @@ mwifiex_init_new_priv_params(struct mwifiex_private *priv,
892892
priv->bss_num = mwifiex_get_unused_bss_num(adapter,
893893
MWIFIEX_BSS_TYPE_STA);
894894
priv->bss_role = MWIFIEX_BSS_ROLE_STA;
895-
priv->bss_type = MWIFIEX_BSS_TYPE_STA;
896895
break;
897896
case NL80211_IFTYPE_P2P_CLIENT:
898897
priv->bss_num = mwifiex_get_unused_bss_num(adapter,
899898
MWIFIEX_BSS_TYPE_P2P);
900899
priv->bss_role = MWIFIEX_BSS_ROLE_STA;
901-
priv->bss_type = MWIFIEX_BSS_TYPE_P2P;
902900
break;
903901
case NL80211_IFTYPE_P2P_GO:
904902
priv->bss_num = mwifiex_get_unused_bss_num(adapter,
905903
MWIFIEX_BSS_TYPE_P2P);
906904
priv->bss_role = MWIFIEX_BSS_ROLE_UAP;
907-
priv->bss_type = MWIFIEX_BSS_TYPE_P2P;
908905
break;
909906
case NL80211_IFTYPE_AP:
910907
priv->bss_num = mwifiex_get_unused_bss_num(adapter,
911908
MWIFIEX_BSS_TYPE_UAP);
912-
priv->bss_type = MWIFIEX_BSS_TYPE_UAP;
913909
priv->bss_role = MWIFIEX_BSS_ROLE_UAP;
914910
break;
915911
default:

0 commit comments

Comments
 (0)