I am currently evaluating the modemmanager in my Openwrt system.
If I now enter the following command `mmcli -m 0 -J --3gpp-scan --timeout=300` to show the network providers in my environment,
I get the following json string:
```
{
    "modem":{
        "3gpp":{
            "scan-networks":[
"operator-code: 26201, operator-name: TDG, access-technologies: lte, availability: forbidden","operator-code: 26203, operator-name: o2 - de, access-technologies: lte, availability: forbidden","operator-code: 26202, operator-name: vodafone.de, access-technologies: lte, availability: current"
            ]
        }
    }
}
```

I'm not sure if this is correct, but I would expect that several objects appear under the `scan-networks` array, and not a string.
So I would expect that the output should look like this?

```
{
    "modem":{
        "3gpp":{
            "scan-networks":[
                {
                    "operator-code": "26201",
                    "operator-name: "TDG",
                    "access-technologies": "lte",
                    "availability": "forbidden"
                },
                {
                    "operator-code": "26203",
                    "operator-name": "o2 - de",
                    "access-technologies": "lte",
                    "availability": "forbidden"
                },
                {
                    "operator-code": "26202",
                    "operator-name": "vodafone.de",
                    "access-technologies": "lte",
                    "availability": "current"
                }
            ]
        }
    }
}
```

I am using the latest openwrt modemmanger from the master Branch 1.20.2 [1].

Is this a bug?

Kind regards

Florian

[1] https://github.com/openwrt/packages/blob/master/net/modemmanager/Makefile#L11

Reply via email to