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

Commit 1eb3e051 authored by Ghanim Fodi's avatar Ghanim Fodi
Browse files

msm: ipa3: Use MBIM tethering mode in case of MBIM protocol



Wrongly the code at ipa3_usb_connect_teth_prot() sets the mode
to be RMNET in case of MBIM protocol.
This code fixes the bug.

Change-Id: I28d0eb8e1d4a8ddaefa5830c7b7ddd3edc28eb49
Signed-off-by: default avatarGhanim Fodi <gfodi@codeaurora.org>
parent 5ef36a5b
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1280,7 +1280,9 @@ static int ipa3_usb_connect_teth_prot(
			params->ipa_to_usb_clnt_hdl;
		teth_bridge_params.usb_ipa_pipe_hdl =
			params->usb_to_ipa_clnt_hdl;
		teth_bridge_params.tethering_mode = TETH_TETHERING_MODE_RMNET;
		teth_bridge_params.tethering_mode =
			(params->teth_prot == IPA_USB_RMNET) ?
			(TETH_TETHERING_MODE_RMNET):(TETH_TETHERING_MODE_MBIM);
		teth_bridge_params.client_type = IPA_CLIENT_USB_PROD;
		result = ipa3_usb_connect_teth_bridge(&teth_bridge_params);
		if (result)