Commit Graph

8647 Commits

Author SHA1 Message Date
Antara Borwankar 41e1cfcd64 xmm7modem: handling of dual mode technology preference
Handled dual mode technology preference "umts,gsm" and
"lte,umts" for xmm7modem.
2019-05-16 10:40:45 -05:00
Antara Borwankar 0c2f2815ca radio-settings: handling of dual mode technology preference
Handled two new dual mode technology preferences
"umts,gsm" and "lte,umts".
2019-05-16 10:40:45 -05:00
Antara Borwankar b2e948f8d8 radio-settings: adding UE dual mode operation property
Added two new values for TechnologyPreference property
as follows:
"umts,gsm"	Dual mode operation with UMTS
		and GSM radio access whith preference
		for UMTS.
"lte,umts"	Dual mode operation with LTE
		and UMTS radio access with preference
		for LTE.
2019-05-16 10:40:45 -05:00
Adrian Bunk 3e43e3342f build: Fix a race condition
ell/ell.h was written before ell/ existed
2019-05-15 12:57:02 -05:00
Marcel Holtmann 8bc6aa9880 gatchat: Avoid string overflow warning in debug function 2019-05-15 17:04:16 +02:00
Marcel Holtmann dff595671b build: Add check for explicit_bzero support 2019-05-15 09:39:44 +02:00
Denis Kenzior 22d80d4aa1 AUTHORS: Mention Stefan's contributions 2019-05-08 09:47:16 -05:00
Stefan Herbrechtsmeier c3b7756907 udevng: add SIMCom SIM7600 modem support
The SIMCom SIM7100 and SIM7600 modem use the same vendor and product id
but require different drivers (sim7100 vs gobi).
2019-05-08 09:46:39 -05:00
Richard Röjfors 9b1dae2e62 atmodem: Fix a race if a context get deactivated while read
When a context gets activated we read its settings, but
if the context gets deactivated during this time we should
not indicate that the context is activated when the settings
are received.
2019-05-08 09:38:11 -05:00
Philippe De Swert c92d23fab9 build: Fix compilation with ell
Fix compilation issue with newer ell, which seems to have some
extra timeout handling.

  CC       ell/main.lo
ell/main.c:44:21: fatal error: timeout.h: No such file or directory
 #include "timeout.h"
                     ^
compilation terminated.
make[1]: *** [Makefile:4068: ell/main.lo] Error 1
make: *** [Makefile:2357: all] Error 2
2019-05-03 10:18:15 -05:00
Denis Kenzior e633b95aae sierra: Abort initialization on CFUN failure 2019-04-30 11:41:39 -05:00
Denis Kenzior dc7fb359cb voicecall: Fix possible crash 2019-04-30 11:40:17 -05:00
Denis Kenzior 408d063f85 netmon: Fix logic error 2019-04-30 11:38:36 -05:00
Denis Kenzior 74dc62b148 drivers: Silence strncpy use warnings 2019-04-30 11:35:14 -05:00
Denis Kenzior 614ffb0761 sim-auth: Use memcpy instead of strncpy
The code is not really copying strings but 2 or 3 character sof the MNC.
Make this clearer.
2019-04-30 11:09:52 -05:00
Denis Kenzior d3625f8e6f message-waiting: Fix logic error 2019-04-29 19:38:12 -05:00
Denis Kenzior ca9d5b73ab gprs: Remove unneeded if conditions
ctx->message_center and ctx->message_proxy are arrays and thus
always evaluate as true
2019-04-29 19:30:22 -05:00
Denis Kenzior c56bd74cb1 gprs: Fix invalid string comparison
The default context created when provisioning fails is simply a context
with an empty APN
2019-04-29 19:27:29 -05:00
Denis Kenzior 91253a1ade gprs: Remove unneeded if statement
if (ctx->message_proxy) always resolves to TRUE
2019-04-29 19:25:57 -05:00
Denis Kenzior 87932a536f stk: Fix potential buffer overrun 2019-04-29 19:24:19 -05:00
Denis Kenzior bdda846134 phonebook: fix invalid sprintf sequence 2019-04-29 19:16:07 -05:00
Denis Kenzior a63988a33f stkutil: Call va_end on failure 2019-04-29 14:34:00 -05:00
Denis Kenzior 713655a1ae gatchat: Remove unneeded if 2019-04-29 14:29:21 -05:00
Denis Kenzior 999494624b siri: Dereference after validating !NULL 2019-04-29 14:27:54 -05:00
Denis Kenzior 1c940839bb handsfree: Dereference after validating !NULL 2019-04-29 14:26:43 -05:00
Denis Kenzior 4fddd1a6ea sim: Dereference only after validating !NULL 2019-04-29 14:24:48 -05:00
Denis Kenzior fbd9974998 qmimodem: Fix potential memory leak
In case strlen(ICCID) > 20, we simply return without freeing the ICCID
value first.
2019-04-29 14:20:25 -05:00
Denis Kenzior 4a93c329b9 log: Fix potential buffer overflow
We pass in the maximum size of the buffer to the read system call.  On
the astronomically unlikely chance that we indeed read the full buffer
full of data, the subsequent assignment will overflow it.  Fix this by
passing sizeof(buf) - 1 to the read system call instead.
2019-04-29 14:16:17 -05:00
Denis Kenzior b126407632 mbmmodem: Remove unneeded if 2019-04-29 14:11:22 -05:00
Denis Kenzior 4bb6e09661 phoneseim: Remove unneeded if 2019-04-29 14:09:56 -05:00
Denis Kenzior 9da5779a90 stemodem: Remove unneeded if 2019-04-29 14:09:11 -05:00
Denis Kenzior 0b2de27727 telit: Remove unneeded if 2019-04-29 14:07:59 -05:00
Denis Kenzior ea6cd4e7fd huawei: Remove unneeded if statement 2019-04-29 14:06:58 -05:00
Denis Kenzior c13411da6f icera: Remove unneeded if statement 2019-04-29 14:06:27 -05:00
Denis Kenzior cdcb576692 hsomodem: Remove unneeded if statement 2019-04-29 14:06:19 -05:00
Denis Kenzior eef1f73cb3 swmodem: Remove unneeded if statement 2019-04-29 14:01:41 -05:00
Denis Kenzior c05cbf147d ifxmodem: Remove unneeded if statement
if (ctx->apn) always evalues to true since it is an array member
2019-04-29 14:00:42 -05:00
Denis Kenzior 88f2ae3869 atmodem: Remove unneeded if statement
if (ctx->apn) is always true since apn is an array variable
2019-04-29 13:59:36 -05:00
Antara Borwankar 413e6ecab0 xmm7modem: handling of IPv6 address for activated context
Handled IPv6 address after activating PDP context.
Received IPv6 address is of format addr + netmask in the same string
in the form of "a1.a2.a3.a4.a5.a6.a7.a8.a9.a10.a11.a12.a13.a14.a15.a16.
m1.m2.m3.m4.m5.m6.m7.m8.m9.m10.m11.m12.m13.m14.m15.m16"
2019-04-29 11:33:58 -05:00
Alexander Couzens 64df5344c5 qmi: netmon: fix crashs on get_rssi_cb when BER or RSSI are empty
The message can be emitted without the fields being present. In this case ber or rssi are 0
resulting in a null pointer deref.
2019-04-28 10:13:51 -05:00
Alexander Couzens d604052cef gprs: netreg_status_changed: output the status as human readable string 2019-04-28 10:13:51 -05:00
Alexander Couzens 13181d1a01 network: debug log the network time on update 2019-04-28 10:13:07 -05:00
Alexander Couzens c508574f68 network/ofono_netreg_status_notify: debug log the lac and ci 2019-04-28 10:13:07 -05:00
Denis Kenzior 79565d33d8 AUTHORS: Mention Pau's contributions 2019-04-26 12:21:53 -05:00
Denis Kenzior 47beb6b378 AUTHORS: Mention Alexander's contributions 2019-04-26 12:20:45 -05:00
Denis Kenzior dd4c444393 AUTHORS: Mention Tom's contributions 2019-04-16 11:52:56 -05:00
Tom Nguyen 0ddb7c6e2f qmimodem: return all serial numbers
Some modems, eg. Quectel EC25E, return the ESN, IMEI, and MEID even
though they support only one network type in a region. Current serial
number query gives precedence to the ESN if it exists, and does not
consider the IMEI and MEID.

Add a check of the supported radio interfaces in deciding which
serial number to return. If radio interfaces are 3GPP based, then
return the IMEI, else return the ESN. If neither exist, return MEID
if available, else fail.
2019-04-16 11:51:37 -05:00
Richard Röjfors 05aaab72ae gprs: Always store RoamingAllowed as a boolean.
In one instance it was stored as boolean and another as int.
Since its always parsed as a boolean and it is a boolean,
always store it as boolean.
2019-04-16 11:46:00 -05:00
Marcel Holtmann fe9d22374e Release 1.29 2019-04-12 22:13:00 +02:00
Richard Röjfors 64df539a27 ublox: gprs-context: Fix router mode IP settings.
The ublox modems always run DHCP when in router mode.
Unfortunately the code overwrote the IP settings with
static IP settings while activating.

Now we respect the networking_mode regardless if
we read settings during activation or read settings
phase.
2019-04-04 09:55:04 -05:00