ofono/drivers
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
..
atmodem atutil: Add missing va_end 2019-11-13 17:01:15 -06:00
calypsomodem treewide: Remove superfluous use of _GNU_SOURCE 2018-10-17 10:01:57 -05:00
cdmamodem treewide: Remove superfluous use of _GNU_SOURCE 2018-10-17 10:01:57 -05:00
dunmodem drivers: constify vtables 2018-10-17 09:56:27 -05:00
gemaltomodem gemalto: Add Gemalto specific voicecall atom 2018-10-17 17:03:03 -05:00
hfpmodem treewide: Remove superfluous use of _GNU_SOURCE 2018-10-17 10:01:57 -05:00
hsomodem hsomodem: Remove unneeded if statement 2019-04-29 14:06:19 -05:00
huaweimodem huawei: Increase string buffer to avoid overflow 2019-10-31 08:38:47 +01:00
iceramodem icera: Remove unneeded if statement 2019-04-29 14:06:27 -05:00
ifxmodem xmm7modem: Fix to set gateway in pdp context 2019-09-20 09:54:50 -05:00
infineonmodem infineon: Definitions for infineon modem 2015-10-13 21:35:07 -05:00
isimodem isimodem: Fix size calculation for address array 2019-08-12 19:36:42 +02:00
mbimmodem mbim: Don't copy too much 2019-11-13 17:01:15 -06:00
mbmmodem mbmmodem: Remove unneeded if 2019-04-29 14:11:22 -05:00
nwmodem treewide: Remove superfluous use of _GNU_SOURCE 2018-10-17 10:01:57 -05:00
qmimodem qmimodem: remember lac and cellid 2019-07-19 01:19:23 -05:00
rilmodem rilmodem: fix compilation on gcc-6.3 2019-01-22 11:02:30 -06:00
speedupmodem drivers: Update to the new util api 2018-12-27 18:18:51 -06:00
stemodem stemodem: Quiet warning about strncpy use 2019-05-16 15:10:09 -05:00
swmodem swmodem: Remove unneeded if statement 2019-04-29 14:01:41 -05:00
telitmodem drivers: Silence strncpy use warnings 2019-04-30 11:35:14 -05:00
ubloxmodem ublox: network-registration: Handle UREG unsolicited during poll 2020-02-14 11:24:14 -06:00
xmm7modem xmm7modem: adding netmon changes for reporting neighbouring cell 2019-06-07 11:41:37 -05:00
ztemodem treewide: Remove superfluous use of _GNU_SOURCE 2018-10-17 10:01:57 -05:00