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

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

mwifiex: always configure firmware mac address during changing virtual interface



When interface type changed, firmware using a new connction pointer.
We need Re-configure the mac address.

Signed-off-by: default avatarXinming Hu <huxm@marvell.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent 307857db
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -965,9 +965,6 @@ int mwifiex_set_mac_address(struct mwifiex_private *priv,
			mac_addr ^= BIT_ULL(priv->bss_type + 8);
			mac_addr += priv->bss_num;
		}

		if (mac_addr == old_mac_addr)
			goto done;
	}

	u64_to_ether_addr(mac_addr, priv->curr_addr);
@@ -983,7 +980,6 @@ int mwifiex_set_mac_address(struct mwifiex_private *priv,
		return ret;
	}

done:
	ether_addr_copy(dev->dev_addr, priv->curr_addr);
	return 0;
}