forbid Roaming

Aleksander Morgado aleksander at lanedo.com
Wed Jan 9 07:15:01 PST 2013


> I just wrote a patch to forbid roaming, but it does not work as
> expected. The patch is attached.
> If I now set
> 
> # qmicli -d /dev/cdc-wdm0 --nas-set-roaming=OFF
> 
> there's no error.
> Now I try to get the status:
> 
> # qmicli -d /dev/cdc-wdm0 --nas-get-system-selection-preference
> [/dev/cdc-wdm0] Successfully got system selection preference
>     Emergency mode: 'no'
>     Mode preference: 'gsm, umts, lte'
>     Band preference: 'gsm-dcs-1800, gsm-900-extended, gsm-900-primary,
> gsm-850, gsm-pcs-1900, wcdma-2100'
>     LTE band preference: '1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
> 17, 18, 19, 20, 21'
>     Roaming preference: 'off'
>     Network selection preference: 'automatic'
> 
> So setting seems to work fine. But the modem is still connected to the
> network:
> 
> # qmicli -d /dev/cdc-wdm0 --nas-get-serving-system
> [/dev/cdc-wdm0] Successfully got serving system:
>     Registration state: 'registered'
>     CS: 'attached'
>     PS: 'attached'
>     Selected network: '3gpp'
>     Radio interfaces: '1'
>         [0]: 'umts'
>     Roaming status: 'on'
>     Data service capabilities: '3'
>         [0]: 'hsdpa'
>         [1]: 'hsupa'
>         [2]: 'wcdma'
>     Current PLMN:
>         MCC: '262'
>         MNC: '2'
>         Description: 'Vodafone.de'
>     Roaming indicators: '1'
>         [0]: 'on' (umts)
>     3GPP location area code: '1090'
>     3GPP cell ID: '131692879'
>     Detailed status:
>         Status: 'available'
>         Capability: 'cs-ps'
>         HDR Status: 'none'
>         HDR Hybrid: 'no'
>         Forbidden: 'no'
> 
> Did I make something wrong or is this just a bug in the modem not
> evaluating this?
> The device is a branded Huawei E398

What happens if you force it to re-register? Maybe it just doesn't
honour the new request until you re-register.

-- 
Aleksander


More information about the libqmi-devel mailing list