ofono/drivers/ubloxmodem
Richard Röjfors 952f1d00be ublox: network-registration: Handle UREG unsolicited during poll
In the case a unsolicited indication for UREG was received
while the status was polled. The poll response failed to parse.
This since the unsolicited indication only carries one
parameter, while the poll response is expected to carry two.

Update the code to loop until the response is found.

The log below shows a case where this happened.

10:07:55 ofonod[520]: Aux: > AT+UREG?\r
10:07:55 ofonod[520]: Aux: < \r\n+CGREG: 4\r\n\r\n+UREG: 0\r\n\r\n+CIEV: 9,1\r\n
10:07:55 ofonod[520]: src/gprs.c:ofono_gprs_status_notify() /ublox_0 status unknown (4)
10:07:55 ofonod[520]: src/gprs.c:ofono_gprs_detached_notify() /ublox_0
10:07:55 ofonod[520]: Aux: < \r\n+UREG: 1,0\r\n
10:07:55 ofonod[520]: Aux: < \r\nOK\r\n
2020-02-14 11:24:14 -06:00
..
gprs-context.c ublox: gprs: React on context deactivation 2019-09-02 16:39:02 -05:00
lte.c ublox: extend LTE driver 2019-03-13 16:39:42 -05:00
netmon.c treewide: Remove superfluous use of _GNU_SOURCE 2018-10-17 10:01:57 -05:00
network-registration.c ublox: network-registration: Handle UREG unsolicited during poll 2020-02-14 11:24:14 -06:00
ubloxmodem.c ubloxmodem: Add model entries for LARA R2 series 2019-07-19 02:46:57 -05:00
ubloxmodem.h ubloxmodem: Add model entries for LARA R2 series 2019-07-19 02:46:57 -05:00