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

Commit 2cc5a1fd authored by Ajay Agarwal's avatar Ajay Agarwal
Browse files

usb: gadget: f_ecm: Setup netdevice with name 'ecm0'



Currently we are registering net device with the name 'usb0' from
f_ecm. But the netmanager daemon expects the ECM netdevice name
to be 'ecm0' for proper configurations.
Hence change the netdevice name to ecm0.

Change-Id: Iebcdf0ed33dcc0e26e99edc50a33ba6dcb9ea5c5
Signed-off-by: default avatarAjay Agarwal <ajaya@codeaurora.org>
parent e54c92a9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -701,7 +701,7 @@ ecm_bind(struct usb_configuration *c, struct usb_function *f)
	 */
	if (!ecm_opts->bound) {
		mutex_lock(&ecm_opts->lock);
		ecm_opts->net = gether_setup_default();
		ecm_opts->net = gether_setup_name_default("ecm");
		if (IS_ERR(ecm_opts->net)) {
			status = PTR_ERR(ecm_opts->net);
			mutex_unlock(&ecm_opts->lock);