summaryrefslogtreecommitdiff
path: root/drivers/gemaltomodem
Commit message (Collapse)AuthorAgeFilesLines
* gemaltomodem: Fix GCC warningDenis Kenzior2022-09-081-2/+1
| | | | | | | | | | | | CC drivers/gemaltomodem/gprs-context.o drivers/gemaltomodem/gprs-context.c: In function ‘gemalto_gprs_activate_primary’: drivers/gemaltomodem/gprs-context.c:195:13: error: the comparison will always evaluate as ‘true’ for the address of ‘apn’ will never be NULL [-Werror=address] 195 | if (ctx->apn) | ^~~ In file included from drivers/gemaltomodem/gprs-context.c:36: ./include/ofono/gprs-context.h:44:14: note: ‘apn’ declared here 44 | char apn[OFONO_GPRS_MAX_APN_LENGTH + 1]; | ^~~
* gemalto: radio-settings: cleanupSergey Matyukevich2021-07-271-9/+6
| | | | | | Enum ofono_radio_access_mode has been replaced by unsigned int. This change allows to move handling of all the modes into 'switch' in the function gemalto_set_rat_mode.
* gemalto: add radio-settings driverSergey Matyukevich2021-07-153-0/+272
| | | | Add support for Gemalto specific radio settings.
* gemalto: netmon measurements scalingSergey Matyukevich2021-01-151-4/+50
| | | | | | | | | | Gemalto modem reports raw measurements in dBm. Reported values may include negative numbers. Meanwhile oFono follows ETSI TS 27.007, so negative numbers do not really exist at the API level. Modify gemalto netmon driver to report measurements according to 27.007. For this purpose re-scale from what Gemalto firmware reports into something that 27.007 recommends.
* gemalto: add netmon driverSergey Matyukevich2021-01-153-0/+610
| | | | | | Implement network monitoring driver for gemalto modems that are able to provide serving cell information and basic measurements using AT+CQS and AT^SMONI commands.
* gemalto: gprs: support authentication settingsSergey Matyukevich2020-12-301-1/+52
| | | | | Add support for gprs contexts with username, password, and specific authentication type.
* gemalto: gprs: support automatic context activationSergey Matyukevich2020-12-301-47/+69
| | | | | | | | | | | | | | | | | Implement read_settings function to get configuration for automatic contexts. AT^SWWAN command activates PDP context unless it has been already activated automatically, and then starts DHCP server in the ME. So AT^SWWAN command should be run for automatic context as well in order to obtain IP settings from the ME. This commit also fixes the issue uncovered by the added support for automatic contexts: as per modem specs, AT+CGACT context should not be reused for AT^SWWAN. Though that worked for some reason when automatic context was reactivated without proper deactivation. Note that in both cases success code is reported to the core before AT^SWWAN response. This is because the ME waits until DHCP negotiation has finished before sending the "OK" or "ERROR" result code.
* gemalto: Fix compiler errorDenis Kenzior2020-12-261-4/+2
| | | | | | Fix compiler error introduced due to a bad merge Fixes: de0d5a19 ("gemalto: gprs: support different gprs protocols")
* gemalto: gprs: support different gprs protocolsSergey Matyukevich2020-12-221-6/+16
| | | | Add support for IPv6 and dual mode gprs contexts.
* gemalto: gprs: cgev gprs context deactivationSergey Matyukevich2020-12-221-0/+2
| | | | | Gemalto ELS81x modems use 'ME PDN DEACT' message to notify about gprs context deactivation. Process this 'deactivate' event in CGEV handler.
* drivers: gemalto: add gprs-context driverSergey Matyukevich2020-08-193-1/+284
| | | | | | Some gemalto modems provide USB ethernet interfaces for data path. Implement gprs-context driver for such modems to send data via USB ethernet rather than fallback to PPP.
* gemalto: Add Gemalto specific voicecall atomGiacinto Cifelli2018-10-173-0/+583
| | | | | | | | This atom uses the URC ^SLCC to monitor the call status, as well as incoming calls. Note the use in the atom of the variable GemaltoVtsQuotes: this is needed to support future modules, as of today not yet available in the plugin.
* treewide: Remove superfluous use of _GNU_SOURCEJonas Bonn2018-10-171-1/+0
| | | | | | There are a large number of files in the tree that define _GNU_SOURCE despite not actually using features hidden behind this flag. This patch removes all these definitions in one fell swoop...
* drivers: constify vtablesJonas Bonn2018-10-171-1/+1
| | | | | | | | The driver vtables are read-only structures. This patch declares them as 'const' allowing the compiler to (optionally) put them in the RELRO section. RELRO pages may be marked as read-only by the linker after the relocations have been done ensuring that they aren't inadvertently or maliciously altered at runtime.
* drivers: Add gemaltomodem driver to handle GNSSVincent Cesson2017-01-193-0/+311
Add a new location-reporting driver for Gemalto Cinterion modems based on telit implementation + use it in gemalto plugin. It supports activation of GNSS engine (Request) with command AT^SGPSC. This driver is tested on PHS8. NMEA frames are accessible on /dev/ttyUSB1.