Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] Modem-manager generates unwanted network device #316

Closed
nemesifier opened this issue Sep 3, 2024 · 3 comments · Fixed by #320
Closed

[bug] Modem-manager generates unwanted network device #316

nemesifier opened this issue Sep 3, 2024 · 3 comments · Fixed by #320
Assignees

Comments

@nemesifier
Copy link
Member

nemesifier commented Sep 3, 2024

Continuation of #314, #298.

The following modem-manager conf:

{
    "interfaces": [
        {
            "type": "modem-manager",
            "apn": "apn.operator.com",
            "pin": "1234",
            "device": "/sys/devices/platform/ahb/1b000000.usb/usb1/1-1",
            "username": "user123",
            "password": "pwd123456",
            "metric": 50,
            "lowpower": False,
            "name": "modem0",
            "mtu": 1500,
            "signalrate": 5,
        }
    ]
}

Generates:

    package network

    config device 'device_modem0'
            option mtu '1500'
            option name 'modem0'

    config interface 'modem0'
            option apn 'apn.operator.com'
            option device '/sys/devices/platform/ahb/1b000000.usb/usb1/1-1'
            option lowpower '0'
            option metric '50'
            option password 'pwd123456'
            option pincode '1234'
            option proto 'modemmanager'
            option signalrate '5'
            option username 'user123'

But I believe the following would be sufficient:

    package network

    config interface 'modem0'
            option apn 'apn.operator.com'
            option device '/sys/devices/platform/ahb/1b000000.usb/usb1/1-1'
            option lowpower '0'
            option metric '50'
            option password 'pwd123456'
            option pincode '1234'
            option proto 'modemmanager'
            option signalrate '5'
            option username 'user123'

Docs need to be updated after this change.

@pandafy
Copy link
Member

pandafy commented Sep 20, 2024

@nemesifier if the expected configuration ifname and mtu fields are absent. Is that intentional?

@nemesifier
Copy link
Member Author

@nemesifier if the expected configuration ifname and mtu fields are absent. Is that intentional?

No, it was not intentional.

@pandafy
Copy link
Member

pandafy commented Sep 20, 2024

So, the expected configuration would be

  config interface 'wwan0'
        option apn 'apn.vodafone.com'
        option device '/sys/devices/platform/ahb/1b000000.usb/usb1/1-1'
        option ifname 'wwan0'
        option iptype 'ipv4v6'
        option lowpower '0'
        option metric '50'
        option mtu '1500'
        option password 'pwd123456'
        option pincode '1234'
        option proto 'modemmanager'
        option signalrate '5'
        option username 'user123'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging a pull request may close this issue.

2 participants