forbid Roaming

A. Valentin avalentin at marcant.net
Wed Jan 9 06:52:55 PST 2013


Hi,

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
Kind regards,

André
Am 09.01.2013 13:43, schrieb A. Valentin:
> Hi,
>
> I would like to have the ability to switch Roaming off. I've found this
> under data/
>   {  "name"    : "Set System Selection Preference",
>      "type"    : "Message",
>      "service" : "NAS",
>      "id"      : "0x0033",
>      "version" : "1.1",
>      "input"   : [  { "name"          : "Emergency mode",
> ....
>                     { "name"          : "Roaming Preference",
>                       "id"            : "0x14",
>                       "mandatory"     : "no",
>                       "type"          : "TLV",
>                       "format"        : "guint16",
>                       "public-format" : "QmiNasRoamingPreference" },
> And in qmi-enums-nas.h: * Roaming preference.
> qmi-enums-nas.h:    QMI_NAS_ROAMING_PREFERENCE_OFF          = 0x01,
> qmi-enums-nas.h:    QMI_NAS_ROAMING_PREFERENCE_NOT_OFF      = 0x02,
> qmi-enums-nas.h:    QMI_NAS_ROAMING_PREFERENCE_NOT_FLASHING = 0x03,
> qmi-enums-nas.h:    QMI_NAS_ROAMING_PREFERENCE_ANY          = 0xFF
>
>
> How do I disable roaming with this function? Do I just set
> QMI_NAS_ROAMING_PREFERENCE_OFF or what do I have to do to forbid roaming?
>
> Kind regards,
>
> André
>
> _______________________________________________
> libqmi-devel mailing list
> libqmi-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/libqmi-devel

-------------- next part --------------
A non-text attachment was scrubbed...
Name: marcant-roaming.patch
Type: text/x-patch
Size: 3165 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libqmi-devel/attachments/20130109/09bb2b17/attachment.bin>


More information about the libqmi-devel mailing list