diff options
author | Kalle Valo <kalle.valo@canonical.com> | 2010-05-25 11:48:57 +0300 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2010-05-25 11:11:11 +0200 |
commit | 160e4fe122b4bd8c2a4047a835ee1fc2277b3e62 (patch) | |
tree | 7d87e13581de488e3bf76ff5df935a6451aecbfd /src | |
parent | 6322542719c9165aa9fad5bd9ded53722ebab3eb (diff) | |
download | ofono-160e4fe122b4bd8c2a4047a835ee1fc2277b3e62.tar.bz2 |
huawei: follow sim state change notifications
With Huawei E1552 I got sim busy errors when I plugged in the modem
and ofono was already running:
May 24 17:02:04 tukki ofonod[7619]: > AT+CRC=1\r
May 24 17:02:04 tukki ofonod[7619]: < \r\n+CME ERROR: SIM busy\r\n
May 24 17:02:04 tukki ofonod[7619]: > AT+CLIP=1\r
May 24 17:02:04 tukki ofonod[7619]: < \r\n+CME ERROR: SIM busy\r\n
Fix this by following sim state changes with ^SIMST notification and
only enable modem after SIM is ready. In case SIM is already ready
and we miss the notification for some reason, also use AT^SYSINFO
to check the state during enable phase.
Also change huawei_enable() to return -EINPROGRESS to make sure that
ofono modem is not powered too early. I believe this was a bug.
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions