ofono/drivers
Richard Röjfors 388248d6a1 ublox: network-registration: Check ureg for tech also for L2 modems
It seems like the CREG reporting from the L2 modems are quite
buggy. An example for a L210 where CREG reports UTRAN while
COPS and UREG reports LTE. A manual poll also indicates LTE.

I also found that the technology mapping was incorrect,
probably confused with enum packet_bearer.

A commented log showing where CREG is not trustable:

UREG indicates LTE
21:59:29 : < \r\n+UREG: 7\r\n
21:59:29 : < \r\n+CIEV: 9,2\r\n
21:59:29 : < \r\n+CGEV: NW MODIFY 1,0,0\r\n
21:59:31 : < \r\n+CIEV: 2,2\r\n
21:59:39 : < \r\n+CIEV: 2,3\r\n
21:59:44 : < \r\n+CIEV: 2,2\r\n
22:01:38 : < \r\n+CIEV: 2,3\r\n
22:01:43 : < \r\n+CIEV: 2,2\r\n

A CREG indicating UTRAN with HSDPA and HSUPA
22:29:39 : < \r\n+CREG: 5,"0000","00000000",6\r\n
22:29:39 : > AT\r
22:29:39 : < \r\nOK\r\n
22:29:39 : > AT+COPS=3,2\r
22:29:39 : < \r\n+CIEV: 9,2\r\n
22:29:39 : < \r\nOK\r\n
22:29:39 : > AT+COPS?\r

An immediate cops indicating LTE
22:29:39 : < \r\n+COPS: 0,2,"24007",7\r\n
22:29:39 : < \r\nOK\r\n
22:29:39 : > AT+CSQ\r
22:29:39 : < \r\n+CIEV: 2,4\r\n
22:29:39 : < \r\n+CSQ: 26,4\r\n
22:29:39 : < \r\nOK\r\n
22:29:39 : > AT+CGATT=1\r
22:29:39 : < \r\nOK\r\n
22:29:39 : > AT+COPS=3,0\r
22:29:39 : < \r\nOK\r\n
22:29:39 : > AT+COPS?\r

Another cops also indicates LTE
22:29:39 : < \r\n+COPS: 0,0,"Tele2",7\r\n <- 7: LTE
22:29:39 : < \r\nOK\r\n
22:29:39 : > AT+CGREG?\r

CGREG indicates unknown -> normal on LTE
22:29:39 : < \r\n+CGREG: 2,4\r\n
22:29:39 : < \r\nOK\r\n
22:29:44 : < \r\n+CIEV: 9,2\r\n
22:29:46 : < \r\n+CIEV: 2,2\r\n
22:56:23 : < \r\n+CIEV: 2,3\r\n
22:56:28 : < \r\n+CIEV: 2,2\r\n
22:59:40 : < \r\n+CIEV: 2,4\r\n

Manual poll shows we are running LTE
at+creg?
+CREG: 2,5,"2AFC","01DB0206",7

OK
2019-09-25 20:53:08 -05:00
..
atmodem atmodem: sms: don't request URC buffering for Quectel UC15 modems 2019-09-04 07:23:46 -05: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: Remove unneeded if statement 2019-04-29 14:06:58 -05: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: Fix warning 2019-06-21 12:47:18 -05: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: Check ureg for tech also for L2 modems 2019-09-25 20:53:08 -05: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