diff options
author | Dan Williams <dcbw@redhat.com> | 2011-04-27 10:50:32 -0500 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2011-04-27 10:50:32 -0500 |
commit | dc89c0a42d826fc3302b3d790d5161945ff7078f (patch) | |
tree | 6179ec77b728177354330644e67e6bd9277655fe /src/mm-auth-request.h | |
parent | 1cf7a4da4495fdd1d237b04bc35732a93f42fdf1 (diff) |
huawei: rework probing and detection
Long ago there were problems where certain Huawei devices would
stop responding on various ports, and sometimes would crash
randomly. The theory at the time was that touching the secondary
ports made the device angry, thus the plugin simply opened the
ports and listened for unsolicited messages. But if the device
didn't send any during that 7 second period, MM would not detect
and secondary ports at all. Plus, it was always a hack.
Instead, the new theory is that the device crashes if unsolicited
messages are enabled (^CURC=1), the secondary port gets touched,
*and* then closed and left for a while. Fix that by turning
unsolicited messages off at probe time, on when the device is
enabled, and off again when the device is disabled like happens
for other modems. Thus when MM first detects the modem, it turns
off unsolicited messages and the serial buffer on the secondary
port doesn't fill up and crash the modem.
Second, this allows us to simplify the probing logic quite a bit
so that we can probe all ports we find, but we still wait to probe
the first port so we can turn off unsolicited messages and get
hints about what port is the secondary.
Diffstat (limited to 'src/mm-auth-request.h')
0 files changed, 0 insertions, 0 deletions