MOTODESK-3077 Change the NCM default interface name to ncm0

The NCM default interface name "usb0" is confused.
Use "ncm0" better.

Change-Id: I361074b9a3b04968f477d78e7c5a4fd6fe418fdc
Reviewed-on: https://gerrit.mot.com/1916424
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yuecai Liu <liuyc20@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Reviewed-by: Xuejin Wang <wangxjn@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
Mike SU 2021-04-03 17:55:49 +08:00 • committed by Xiaojun Ji
commit 26b7fe96b7

View file

@ -1462,7 +1462,8 @@ static int ncm_bind(struct usb_configuration *c, struct usb_function *f)
*/
if (!ncm_opts->bound) {
mutex_lock(&ncm_opts->lock);
ncm_opts->net = gether_setup_default();
/* MOTODESK-3077 Use ncm interface name. suzh1 2021-04-03 */
ncm_opts->net = gether_setup_name_default("ncm");
if (IS_ERR(ncm_opts->net)) {
status = PTR_ERR(ncm_opts->net);
mutex_unlock(&ncm_opts->lock);