[PATCH] huawei: always parse operator name in +COPS responses as ASCII
aleksander at lanedo.com
Mon Aug 26 11:47:28 PDT 2013
On 26/08/13 18:44, Ben Chan wrote:
> The patch was suggested by Huawei as their modems always return operator
> names in ASCII in +COPS response. I'd let Franko to provide more details.
> I haven't seen a real operator using a name that reassembles a hex
> string, so it's probably not an issue in real practice. It could be an
> issue in test lab where a call box may configure the operator name as 1234.
This case was the original culprit:
ModemManager: <debug> [1377077909.318827]
[mm-at-serial-port.c:408] debug_log(): (ttyUSB0): <-- '<CR><LF>+COPS:
ModemManager: <debug> [1377077909.321855]
loaded Operator Name: áˆµ
"1235" was indeed a test operator name; which unluckily triggered the
issue because it is a valid UCS2 encoded string.
More information about the ModemManager-devel