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

Commit a3cd980e authored by Ajay Agarwal's avatar Ajay Agarwal
Browse files

usb: gadget: f_rndis: Setup netdevice with name 'rndis0'



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

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