diff options
author | Graham Inggs <graham.inggs@uct.ac.za> | 2011-11-14 17:36:23 -0600 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2011-11-14 17:36:23 -0600 |
commit | add6131edfb4271748b5991f0ce6f447fef88f6d (patch) | |
tree | 359a3945b8a233ff5da8a30335d918f58f333b99 /src/mm-auth-request.c | |
parent | ef74d84b32b90131bc15cb0db1431840b460f08a (diff) |
huawei: pad USSD requests if necessary
ModemManager currently encodes the USSD command *141*0# (for MTN South
Africa) as "AA182DA6828D00".
While this works on some modems, for example the E1820, other modems,
for example the E160, require USSD commands that are a multiple of 7
characters long to be padded with 0x0d.
Huawei Mobile Partner dashboard software for Windows encodes *141*0#
as "AA182DA6828D1A" which works on both the E1820 and the E160.
The attached patch pads the USSD command with 0x0d before encoding if
it is a multiple of 7 characters long.
Diffstat (limited to 'src/mm-auth-request.c')
0 files changed, 0 insertions, 0 deletions