Hi Bassem,

On 02/20/2018 10:44 AM, Bassem BOUBAKER wrote:
> Hello Daniel,
> 
> Exactly, my modem is creating an additional ethernet interface, and I don't 
> know why.
> 
> Please find in the link below the full log of connman.
> 
> https://ufile.io/dmgbw

Feb 20 08:52:21 pcm kernel: cdc_acm 1-1:1.4: ttyACM2: USB ACM device
Feb 20 08:52:21 pcm kernel: cdc_acm 1-1:1.6: ttyACM3: USB ACM device
Feb 20 08:52:21 pcm kernel: cdc_acm 1-1:1.8: This device cannot do calls on its 
own. It is not a modem.
Feb 20 08:52:21 pcm kernel: cdc_acm 1-1:1.8: ttyACM4: USB ACM device
Feb 20 08:52:21 pcm kernel: usbcore: registered new interface driver cdc_acm
Feb 20 08:52:21 pcm kernel: cdc_acm: USB Abstract Control Model driver for USB 
modems and ISDN adapters
Feb 20 08:52:21 pcm kernel[657]: cdc_acm 1-1:1.0: ttyACM0: USB ACM device
Feb 20 08:52:21 pcm kerncdc_ether 1-1:1.10 usb0: CDC: unexpected notification 
01!
el[657]: cdc_acm 1-1:1.2: ttyACM1: USB ACM device
Feb 20 08:52:21 pcm kernel[657]: cdc_acm 1-1:1.4: ttyACM2: USB ACM device
Feb 20 08:52:21 pcm kernel[657]: cdc_acm 1-1:1.6: ttyACM3: USB ACM device
Feb 20 08:52:21 pcm kernel[657]: cdc_acm 1-1:1.8: This device cannot do calls 
on its own. It is not a modem.
Feb 20 08:52:21 pcm kernel[657]: cdc_acm 1-1:1.8: ttyACM4: USB ACM device
Feb 20 08:52:21 pcm kernel[657]: usbcore: registered new interface driver 
cdc_acm
Feb 20 08:52:21 pcm kernel[657]: cdc_acm: USB Abstract Control Model driver for 
USB modems and ISDN adapters
Feb 20 08:52:21 pcm connmand[700]: src/rtnl.c:rtnl_message() buf 0x7eeffbf8 len 
1076
Feb 20 08:52:21 pcm connmand[cdc_ether 1-1:1.12 usb1: CDC: unexpected 
notification 01!
700]: src/rtnl.c:rtnl_message() NEWLINK len 1076 type 16 flags 0x0000 seq 0 pid 0
Feb 20 08:52:21 pcm connmand[700]: src/ipconfig.c:__connman_ipconfig_newlink() 
index 7
Feb 20 08:52:21 pcm connmand[700]: usb0 {create} index 7 type 1 <ETHER>
Feb 20 08:52:21 pcm connmand[700]: usb0 {update} flags 4098 <DOWN>
Feb 20 08:52:21 pcm connmand[700]: usb0 {newlink} index 7 address 
XX:XX:XX:XX:00:00 mtu 1500
Feb 20 08:52:21 pcm connmand[700]: usb0 {newlink} index 7 operstate 2 <DOWN>


Check if the DEVTYPE is set correctly on the modem. If it is not
wwan ConnMan wont ignore it src/rntl.c:

static void read_uevent(struct interface_data *interface)
{
        [...]

        found_devtype = false;
        while (fgets(line, sizeof(line), f)) {
                char *pos;

                pos = strchr(line, '\n');
                if (!pos)
                        continue;
                pos[0] = '\0';

                if (strncmp(line, "DEVTYPE=", 8) != 0)
                        continue;

                found_devtype = true;

                if (strcmp(line + 8, "wlan") == 0) {
                        interface->service_type = CONNMAN_SERVICE_TYPE_WIFI;
                        interface->device_type = CONNMAN_DEVICE_TYPE_WIFI;
                } else if (strcmp(line + 8, "wwan") == 0) {
                        interface->service_type = CONNMAN_SERVICE_TYPE_CELLULAR;
                        interface->device_type = CONNMAN_DEVICE_TYPE_CELLULAR;
                } else if (strcmp(line + 8, "bluetooth") == 0) {
                        interface->service_type = 
CONNMAN_SERVICE_TYPE_BLUETOOTH;
                        interface->device_type = CONNMAN_DEVICE_TYPE_BLUETOOTH;
                } else if (strcmp(line + 8, "gadget") == 0) {
                        interface->service_type = CONNMAN_SERVICE_TYPE_GADGET;
                        interface->device_type = CONNMAN_DEVICE_TYPE_GADGET;
                } else if (strcmp(line + 8, "vlan") == 0) {
                        interface->service_type = CONNMAN_SERVICE_TYPE_ETHERNET;
                        interface->device_type = CONNMAN_DEVICE_TYPE_ETHERNET;
                } else if (strcmp(line + 8, "bond") == 0) {
                        interface->service_type = CONNMAN_SERVICE_TYPE_ETHERNET;
                        interface->device_type = CONNMAN_DEVICE_TYPE_ETHERNET;
                } else {
                        interface->service_type = CONNMAN_SERVICE_TYPE_UNKNOWN;
                        interface->device_type = CONNMAN_DEVICE_TYPE_UNKNOWN;
                }
        }

        [...]
}

DEVTYPE=wwan in /sys/class/net/<device>/uevent.

HTH!

Thanks,
Daniel
_______________________________________________
ofono mailing list
ofono@ofono.org
https://lists.ofono.org/mailman/listinfo/ofono

Reply via email to