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

Commit 5e21acea authored by Bar Weiner's avatar Bar Weiner
Browse files

usb: gadget: Update MAC address for RNDIS



Without this change, the MAC address which is
delivered to the host is null.
This fix updates RNDIS MAC address with the correct
MAC address.

Change-Id: Idcefd2f6f1895cbd632d9360fbaf8ada16a0f591
Signed-off-by: default avatarBar Weiner <bweiner@codeaurora.org>
parent 36f4703a
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1133,6 +1133,8 @@ rndis_qc_bind_config_vendor(struct usb_configuration *c, u8 ethaddr[ETH_ALEN],
			rndis_ipa_params.host_ethaddr,
			rndis_ipa_params.device_ethaddr);
		rndis_ipa_supported = true;
		memcpy(rndis->ethaddr, &rndis_ipa_params.host_ethaddr,
			ETH_ALEN);
	} else
		memcpy(rndis->ethaddr, ethaddr, ETH_ALEN);