Giacinto Cifelli
93caa4ceef
include: move auth_method and proto enumerations
...
ofono_gprs_proto and ofono_gprs_auth_method, and related length consts,
moved to types.h from gprs-context.h,
so that they can be shared also with lte core functions
2018-10-09 15:06:36 -05:00
Antara
d9e3329f55
netmon: Enabled netmon atom for xmm7modem plugin
...
enabling netmon atom to report current serving cell measurements
for xmm7modem
2018-10-09 12:54:27 -05:00
Antara
a4a7e553dc
netmon: Added netmon driver for xmm7modem
...
adding netmon driver for xmm7modem which uses intel proprietary
AT command +XMCI
2018-10-09 12:54:24 -05:00
Giacinto Cifelli
bd6f807849
drivers: support for auth NONE
...
Added the explicit support for auth NONE.
It needs to be added in all drivers/*/gprs-context.c atoms.
This method is already supported by all atoms that support
authentication (ie, all but Sierra' swmodem driver).
The behavior is left unchanged in case of inconsistent parameters:
if username is empty, then fallback to auth NONE.
2018-10-09 12:35:44 -05:00
Giacinto Cifelli
a5bdf48ca7
mbpi: support for auth NONE
...
support of 'none' in mbpi:
the default method remains CHAP, but it is overridden by NONE after
parsing the entire key for the apn and detecting no username/password
2018-10-09 10:44:17 -05:00
Giacinto Cifelli
a5aa268747
file-provision: support for auth type of NONE
2018-10-09 10:43:31 -05:00
Giacinto Cifelli
cc79162470
gprs: support for NONE auth type
2018-10-09 10:43:01 -05:00
Giacinto Cifelli
6cf24fe1f9
gprs-context: added OFONO_GPRS_AUTH_METHOD_NONE
...
This method makes explicit the lack of authentication.
When selected, the username and password are ignored, but they are not
changed in the user-defined properties for the context.
This treatment is necessary to allow setting independently auth_method,
username and password.
This method is also selected implicitly when username is set to
an empty string. Also this selection is done without changing the
user-defined auth_method for the context, so that the behavior is
consistent.
2018-10-09 10:40:15 -05:00
Giacinto Cifelli
f2fa45b830
connman-api: added "none" auth_method
2018-10-09 10:40:12 -05:00
Giacinto Cifelli
6fc119d9ea
gatchat: support for auth NONE
...
Added authentication method G_AT_PPP_AUTH_METHOD_NONE and its handling.
2018-10-03 11:44:03 -05:00
Anirudh Gargi
3317cc6f45
xmm7xxx: enable sms and phonebook support
2018-10-03 11:42:51 -05:00
Denis Kenzior
cfbb202435
AUTHORS: Mention Nandini's contributions
2018-10-01 14:55:31 -05:00
Nandini Rebello
638583522e
test: Add test script to set sms alphabet
2018-10-01 14:54:29 -05:00
Nandini Rebello
a2168cd136
sms: support bengali and gujrati in Alphabet property
2018-10-01 14:53:11 -05:00
Nandini Rebello
7e82a2d940
util: add bengali and gujrati sms alphabets
2018-10-01 14:52:03 -05:00
Nandini Rebello
5d316b1dea
doc: add support for 2 additional sms alphabets
...
Adding support for bengali and gujrati for GSM 7 bit.
2018-10-01 14:50:54 -05:00
Anirudh Gargi
4b44fb3910
gprs: fix seg fault in case of NULL callback
...
In case of AT callback if callback handler is NULL, check for null
before calling the success macro.
Logs:
ofonod[32496]: src/network.c:current_operator_callback() 0x157ad60, (nil)
ofonod[32496]: src/gprs.c:netreg_status_changed() 0
ofonod[32496]: src/gprs.c:gprs_netreg_update() attach: 0, driver_attached: 1
ofonod[32496]: src/gprs.c:ofono_gprs_detached_notify() /xmm7xxx_0
ofonod[32496]: drivers/ifxmodem/gprs-context.c:ifx_gprs_detach_shutdown()
ofonod[32496]: drivers/ifxmodem/gprs-context.c:ifx_gprs_deactivate_primary() cid 0
ofonod[32496]: src/gprs.c:ofono_gprs_detached_notify() /xmm7xxx_0
ofonod[32496]: src/gprs.c:gprs_attach_callback() /xmm7xxx_0 error = 0
ofonod[32496]: drivers/ifxmodem/gprs-context.c:deactivate_cb() ok 0
ofonod[32496]: Aborting (signal 11) [./../src/ofonod]
ofonod[32496]: ++++++++ backtrace ++++++++
ofonod[32496]: +++++++++++++++++++++++++++
2018-10-01 14:46:35 -05:00
Anirudh Gargi
40f5916316
sms: allow sms send for EUTRAN sms only state
...
Patch to be considered, if support for EUTRAN SMS states accepted.
SMS registered flag while sending sms to consider the new EUTRAN
registered status also.
2018-10-01 14:43:23 -05:00
Anirudh Gargi
88358047c8
network: add support eutran sms only states
...
EUTRAN SMS states mapped to registered and roaming respectively.
2018-10-01 14:42:57 -05:00
Anirudh Gargi
eb70ba464a
doc: Clarify LTE registration status documentation
2018-10-01 14:42:57 -05:00
Marcel Holtmann
7dd0597ac1
Release 1.25
2018-09-29 10:31:40 +02:00
Pavel Machek
33be5732f1
udevng: Move debug print to more useful place
...
in setup_gobi()
2018-09-27 17:26:49 -05:00
Pavel Machek
84f7ca1ffd
doc: Fix typo in location-reporting-api.txt
2018-09-27 17:25:03 -05:00
Pavel Machek
1a5fd30baa
test: Better help for delivery reports
...
Explain "delivery report" parameter in send-sms.
2018-09-27 17:21:16 -05:00
Anirudh Gargi
276330abc4
atmodem: add EUTRAN tech for creg read status
...
Add handling for CREG's status to get the technology type. CREG
notify URC does not need additional handling as 'AcT' is mapped
one-on-one to tech.
2018-09-27 07:35:17 -05:00
Giacinto Cifelli
579e9dd3ec
atmodem/sms: no mms support for Gemalto
2018-09-27 07:32:03 -05:00
Giacinto Cifelli
8077e61ee5
gemalto: Use GEMALTO vendor for sms
2018-09-25 09:44:50 -05:00
Giacinto Cifelli
df5bc68fcf
atmodem: change vendor CINTERION in GEMALTO in sms
2018-09-25 09:44:30 -05:00
Giacinto Cifelli
635085b30e
gemalto: Use GEMALTO vendor instead of CINTERION
...
The sim atom is now created with the GEMALTO vendor instead of
CINTERION. This is because GEMALTO has superceeded CINTERION and the
gemalto plugin will be updated to handle (legacy) modems from cinterion
as well as current gemalto devices.
2018-09-25 09:40:18 -05:00
Giacinto Cifelli
66e9a30040
atmodem: change vendor CINTERION to GEMALTO in sim
2018-09-25 09:39:56 -05:00
Giacinto Cifelli
9556d7bd78
atmodem: added Gemalto vendor to CBS CSCB logic
2018-09-24 15:57:58 -05:00
Giacinto Cifelli
f6d26de613
lte: add implementation for ofono_lte_get_modem
2018-09-24 15:52:02 -05:00
Giacinto Cifelli
9dd545ad75
include: add ofono_lte_get_modem global function
...
this function can be used in the drivers to query the functions
ofono_modem_get_* to retrieve modem-specific properties
2018-09-24 15:50:57 -05:00
Giacinto Cifelli
0e733b8b05
lte: clarify failed registration message
2018-09-24 15:17:20 -05:00
Marcel Holtmann
d37c22be20
build: Remove setup of thread support
2018-09-21 20:35:18 +02:00
Giacinto Cifelli
460040f427
gprs: make sure that the context is properly released
2018-09-20 11:05:06 -05:00
Giacinto Cifelli
abd219c89f
atmodem/sms: Do not print an error message incorrectly
...
add missing return in at_cmt_notify. Without it an error message was
generated in all cases, even successful ones.
2018-09-20 10:50:44 -05:00
Giacinto Cifelli
9f747730a8
mbim: fix calling mbim_sms_exit instead of _init
2018-09-20 10:49:06 -05:00
Giacinto Cifelli
59162e4363
tools: remove calls to g_thread_init
2018-09-20 10:40:29 -05:00
Giacinto Cifelli
f11633f837
main: Remove call to g_thread_init
...
according to g_thread documentation, this call is no longer needed,
and starting from g_thread version 2.32 it must not be used
2018-09-20 10:39:55 -05:00
Giacinto Cifelli
ce6c1087a2
gprs: Fix use of invalid operator for bitwise flags
2018-09-20 10:28:15 -05:00
Giacinto Cifelli
c269d92fac
atmodem: added vendor Gemalto
2018-09-20 10:22:31 -05:00
Giacinto Cifelli
9198aee108
doc: fix typo in doc/emergency-call-handling.txt
2018-09-20 10:18:16 -05:00
Anirudh Gargi
f2ebcf35d7
udev:fix seg fault in case of vid and pid is NULL
...
In some case linux report 'driver' as valid yet vid and pid as NULL.
Adding NULL check to prevent seg fault.
Log:
ofonod[23829]: plugins/udevng.c:udev_start()
ofonod[23829]: plugins/udevng.c:enumerate_devices()
ofonod[23829]: plugins/udevng.c:check_usb_device() hub [1d6b:0002]
ofonod[23829]: plugins/udevng.c:check_usb_device() usb [1d6b:0002]
ofonod[23829]: plugins/udevng.c:check_usb_device() usbhid [03f0:034a]
ofonod[23829]: plugins/udevng.c:check_usb_device() usbhid [03f0:034a]
ofonod[23829]: plugins/udevng.c:check_usb_device() usb [1d6b:0002]
ofonod[23829]: plugins/udevng.c:check_usb_device() cdc_acm [(null):(null)]
ofonod[23829]: Aborting (signal 11) [./src/ofonod]
2018-09-10 11:04:11 -05:00
Christophe Ronco
157d188587
qmimodem: fix roaming status report
...
Problem seen with a MC7304 modem and a roaming SIM card.
Status in org.ofono.NetworkRegistration properties ends up in "registered"
instead of roaming. Both AT command and qmicli indicates we are roaming.
What's happening is the following:
1) first QMI_NAS_SS_INFO_IND indicating we are registered contains a
QMI_NAS_RESULT_ROAMING_STATUS parameter.
Parameter inside says we are roaming and qmimidem driver correctly reports
status NETWORK_REGISTRATION_STATUS_ROAMING.
2) other QMI_NAS_SS_INFO_IND arrive, saying we are registered without
QMI_NAS_RESULT_ROAMING_STATUS parameter.
Driver reports NETWORK_REGISTRATION_STATUS_REGISTERED.
Extract of traces with QMI binary debug interpreted (as far as I can...):
a) first "searching" indication
ofonod[855]: QMI: < 01 3b 00 80 03 01 04 00 00 24 00 2f 00
29 05 00 d0 00 14 00 00 MCC:208 MNC:20
22 05 00 01 02 00 01 00 Detailed Service Status:
QMI_NAS_SERVICE_STATUS_LIMITED,
QMI_NAS_NETWORK_SERVICE_DOMAIN_PS, ...
15 03 00 01 08 01 LTE, no roaming
12 05 00 d0 00 14 00 00 Current PLMN: MCC:208 MNC:20, no desc
11 01 00 00
10 01 00 01 No roaming
01 06 00 02 02 02 02 01 08 NAS_REGISTRATION_STATE_NOT_REGISTERED_SEARCHING,
CS detached, PS detached, NETWORK_TYPE_3GPP,
QMI_NAS_RADIO_INTERFACE_LTE
ofonod[855]: QMI: NAS_ind msg=36 len=47 [client=1,type=4,tid=0,len=59]
ofonod[855]: QMI: {type=41,len=5} {type=34,len=5} {type=21,len=3}
{type=18,len=5}
ofonod[855]: QMI: {type=17,len=1} {type=16,len=1} {type=1,len=6}
ofonod[855]: ofono_netreg_status_notify modem /sierra_0 status 2 lac -1
cellid -1 tech 7
b) second "searching" indication
ofonod[855]: QMI: < 01 21 00 80 03 01 04 00 00 24 00 15 00
22 05 00 03 03 00 01 00 Detailed Service Status:
QMI_NAS_SERVICE_STATUS_LIMITED_REGIONAL, CS_PS, ...
11 01 00 00
01 06 00 02 02 02 02 01 08 NAS_REGISTRATION_STATE_NOT_REGISTERED_SEARCHING,
CS detached, PS detached, NETWORK_TYPE_3GPP,
QMI_NAS_RADIO_INTERFACE_LTE
ofonod[855]: QMI: NAS_ind msg=36 len=21 [client=1,type=4,tid=0,len=33]
ofonod[855]: QMI: {type=34,len=5} {type=17,len=1} {type=1,len=6}
c) First indication while "registered"
ofonod[855]: QMI: < 01 5e 00 80 03 01 04 00 00 24 00 52 00
2a 01 00 00
29 05 00 d0 00 14 00 00 MCC:208 MNC:20
28 02 00 15 01 UMTS Primary Scrambling Code
26 08 00 03 00 00 00 03 00 00 00 CS: all calls allowed,
PS: all calls allowed
22 05 00 02 03 00 01 00 Detailed Service Status:
QMI_NAS_SERVICE_STATUS_AVAILABLE, CS_PS, ...
1e 04 00 f7 00 95 04 CID 3GPP
1d 02 00 fb 50 LAC 3GPP
15 03 00 01 05 00 UMTS: roaming
12 05 00 d0 00 14 00 00 Current PLMN: MCC:208 MNC:20, no desc
11 04 00 03 03 04 05
10 01 00 00 ROAMING ON
01 06 00 01 01 01 02 01 05 NAS_REGISTRATION_STATE_REGISTERED, CS attached,
PS attached, NETWORK_TYPE_3GPP,
QMI_NAS_RADIO_INTERFACE_UMTS
ofonod[855]: QMI: NAS_ind msg=36 len=82 [client=1,type=4,tid=0,len=94]
ofonod[855]: QMI: {type=42,len=1} {type=41,len=5} {type=40,len=2}
{type=38,len=8}
ofonod[855]: QMI: {type=34,len=5} {type=30,len=4} {type=29,len=2}
{type=21,len=3}
ofonod[855]: QMI: {type=18,len=5} {type=17,len=4} {type=16,len=1}
{type=1,len=6}
ofonod[855]: ofono_gprs_status_notify modem /sierra_0 status 1
==================> ROAMING status reported <==========================
ofonod[855]: ofono_netreg_status_notify modem /sierra_0 status 5 lac 20731
cellid 76873975 tech 2
d) second indication while "registered"
ofonod[855]: QMI: < 01 31 00 80 03 01 04 00 00 24 00 25 00
29 05 00 d0 00 14 00 00 MCC:208 MNC:20
28 02 00 15 01 UMTS Primary Scrambling Code
12 05 00 d0 00 14 00 00 Current PLMN: MCC:208 MNC:20, no desc
11 04 00 03 03 04 05
01 06 00 01 01 01 02 01 05 NAS_REGISTRATION_STATE_REGISTERED, CS attached,
PS attached, NETWORK_TYPE_3GPP,
QMI_NAS_RADIO_INTERFACE_UMTS
ofonod[855]: QMI: NAS_ind msg=36 len=37 [client=1,type=4,tid=0,len=49]
ofonod[855]: QMI: {type=41,len=5} {type=40,len=2} {type=18,len=5}
{type=17,len=4}
ofonod[855]: QMI: {type=1,len=6}
==================> ROAMING information lost <==========================
ofonod[855]: ofono_netreg_status_notify modem /sierra_0 status 1 lac -1
cellid -1 tech 2
I can't tell if not having the ROAMING_STATUS parameter in all indication
is something happening only on MC7304 or if it happens on all "QMI" modems.
I have also seen (on MC7430, with a roaming SIM card):
- first notification indicating status
QMI_NAS_REGISTRATION_STATE_SEARCHING and roaming ON
- following notifications indicating status
QMI_NAS_REGISTRATION_STATE_REGISTERED and no roaming notification
So we must handle roaming information even when not registered.
2018-09-07 11:33:56 -05:00
Denis Kenzior
ee6aac1cd3
AUTHORS: Mention Julien's contributions
2018-08-29 16:11:34 -05:00
Julien Tournier
925006f49d
atmodem: Handle cinterion modems compliant with 27.005
2018-08-29 16:10:29 -05:00
Martin Hundebøll
8b63185929
atmodem: add Quectel M95 special case for PIN query
...
The AT command reference for Quectel M95 specifies that remaining SIM
pin retires can be queried using AT+QTRPIN, which responds with one
count for each pin-type:
+QTRPIN: 3,3,10,10
After entering the PIN code, enable an extra AT+CPIN? for the M95
vendor.
2018-08-28 14:09:45 -05:00
Denis Kenzior
2c5209c82a
AUTHORS: Mention Martin's contributions
2018-08-24 11:27:25 -05:00
Martin Hundebøll
92a80db13f
udevng: fix removal of serial devices
...
Since the merge of udev.c into udevng.c all cleanup function must handle
both usb devices and serial devices. Add this distinction to
check_remove(), so that is doesn't try to iterate the .serial member as
if it were a .devices list.
2018-08-24 11:26:42 -05:00