Skip to content

Commit

Permalink
[network] Actually clean-up dynamic mode network
Browse files Browse the repository at this point in the history
Clean up the network after unsetting the dynamic mode, especially
important for usb tethering.


Signed-off-by: Philippe De Swert <philippe.deswert@jollamobile.com>
  • Loading branch information
philippedeswert committed Sep 15, 2014
1 parent ba8fc84 commit e39e48c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/usb_moded-modesetting.c
Expand Up @@ -471,6 +471,11 @@ void unset_dynamic_mode(void)
return;
}

if(data->network)
{
usb_network_down(data);
}

/* disconnect before changing functionality */
if(data->softconnect_disconnect)
{
Expand All @@ -481,7 +486,6 @@ void unset_dynamic_mode(void)
write_to_file(data->sysfs_path, data->sysfs_reset_value);
log_debug("writing to file %s, value %s\n", data->sysfs_path, data->sysfs_reset_value);
}

}

#ifdef NOKIA
Expand Down

0 comments on commit e39e48c

Please sign in to comment.