Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2d33140f authored by Xinming Hu's avatar Xinming Hu Committed by Kalle Valo
Browse files

mwifiex: Do not change bss_num in change_virtual_intf



Commit 4d7ab36f ("mwifiex: Do not change bss_type in
change_virtual_intf") kept original bss_type unchanged. bss_num should
keep the same style, in this way. Unique tuple (bss_type, bss_num) will
be able to locate the right priv structure.

Signed-off-by: default avatarXinming Hu <huxm@marvell.com>
Signed-off-by: default avatarCathy Luo <cluo@marvell.com>
Signed-off-by: default avatarGanapathi Bhat <gbhat@marvell.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent bd69cddc
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -889,23 +889,15 @@ mwifiex_init_new_priv_params(struct mwifiex_private *priv,
	switch (type) {
	case NL80211_IFTYPE_STATION:
	case NL80211_IFTYPE_ADHOC:
		priv->bss_num = mwifiex_get_unused_bss_num(adapter,
			 MWIFIEX_BSS_TYPE_STA);
		priv->bss_role =  MWIFIEX_BSS_ROLE_STA;
		break;
	case NL80211_IFTYPE_P2P_CLIENT:
		priv->bss_num = mwifiex_get_unused_bss_num(adapter,
			 MWIFIEX_BSS_TYPE_P2P);
		priv->bss_role =  MWIFIEX_BSS_ROLE_STA;
		break;
	case NL80211_IFTYPE_P2P_GO:
		priv->bss_num = mwifiex_get_unused_bss_num(adapter,
			 MWIFIEX_BSS_TYPE_P2P);
		priv->bss_role =  MWIFIEX_BSS_ROLE_UAP;
		break;
	case NL80211_IFTYPE_AP:
		priv->bss_num = mwifiex_get_unused_bss_num(adapter,
			 MWIFIEX_BSS_TYPE_UAP);
		priv->bss_role = MWIFIEX_BSS_ROLE_UAP;
		break;
	default: