Commit Graph

1266 Commits

Author SHA1 Message Date
Denis Kenzior f420aea458 allowed-apns: Fix crash
When a modem is being removed, all of the modem's atom watches have
already been cleaned up.  Trying to remove it again results in a crash.

Fix by registering a destroy callback which will be notified when the
atomwatch has been removed.
2016-06-06 11:01:17 -05:00
Nishanth V ff7837b054 plugins: Fix allowed apn plugin exit 2016-05-26 09:27:01 -05:00
Rajagopal Aravindan a8d084dcf0 ril_sofia3gr: Add transmit power throttling
Added 'sofia3gr.ThermalManagement' interface to sofia3gr plugin and
floated 'TransmitPowerThrottling' as an ofono property under that,
to support modem throttling.

'sofia3gr.ThermalManagement'
    1.Will be available ONLY if modem throttling is supported in RIL.
      This is determined by sending a RIL request during ofono start,
      to get current throttling state. If it succeeds, interface is
      published otherwise not.

'TransmitPowerThrottling'
    1.GetProperties will be allowed both when modem is ON & OFF.
    2.GetProperties will be serviced by looking it up from state
      information maintained inside ofono. No RIL call will be made.
    3.SetProperty will be allowed ONLY when modem is ON.
    4.SetProperty request will be forwarded to RIL ONLY if
      new state != current state. If RIL request succeeds, state
      information will be updated and also, a property change signal
      will be emitted.
2016-05-24 11:01:43 -05:00
Caiwen Zhang b8a79b605e plugins/ril: enable cbs 2016-05-19 10:30:13 -05:00
Samrat Guha Niyogi 5a03102192 ril_sofia3gr: Return -EINPROGRESS on disable() 2016-05-18 12:15:41 -05:00
Caiwen Zhang 6c328f8529 plugins/ril: complete modem power off process 2016-05-13 20:54:56 -05:00
Caiwen Zhang ca8c3ff22b plugins/ril: enable STK 2016-05-03 11:14:43 -05:00
Denis Kenzior 5b80335573 gobi: Fix warning
plugins/gobi.c: In function ‘gobi_pre_sim’:
plugins/gobi.c:431:2: error: ‘sim_driver’ may be used uninitialized in
this function [-Werror=maybe-uninitialized]
  ofono_sim_create(modem, 0, sim_driver, data->device);
    ^
2016-05-03 11:12:19 -05:00
Denis Kenzior 2b64d31fbc udevng: Fixup various minor style issues 2016-05-03 11:09:24 -05:00
Martin Chaplet 4005e87923 udevng: Add support for Sierra MC73xx QMI modems
Udevng layer is changed in order to support Sierra QMI modems like
MC73cxx. Identically to Huawei modems, these modems are parsed by
setup_sierra. If QMI interface is detected, the Gobi modem driver is
selected.

Unfortunately, MC73xx chips seem to have a broken QMI UIM interface.
The qmimodem-legacy is so forced in setup function.
2016-05-03 11:06:04 -05:00
Martin Chaplet d415265a69 udevng: Improve modem properties detection
* Add driver's subsystem information (net, usb, tty, ...)
 * Improve interface number extraction by scanning also device and
 parent attributes
2016-05-03 11:04:58 -05:00
Martin Chaplet be1190b2cf gobi: Enable SIM driver forcing
Some gobi devices do not actually support UIM interface.  So if the
"ForceSimLegacy" property is set, force the qmimodem-legacy SIM driver.
2016-05-03 11:03:41 -05:00
Martin Chaplet 9e50d14e40 udevng: Add usbmisc scan for QMI devices
cdc-wdm0 are now usbmisc devices
2016-05-02 10:11:24 -05:00
Denis Kenzior 55729d68fb ril_sofia3gr: Add quirk to radio_settings atom 2016-04-25 15:27:37 -05:00
John Ernberg 875968d270 smart-messaging: Use g_slist_free_full 2016-04-22 15:26:34 -05:00
John Ernberg 27b3d904ea bluez4: Remove unneeded casts 2016-04-22 15:25:54 -05:00
Caiwen Zhang 15a5660d58 plugins/ril: Move GPRS atom to 'post_online' state
At gprs atom 'probe' state, max cid query may fail due to rild
status isn't RADIO_STATUS_ON. It causes gprs atom is removed, gprs
feature is inavailable. Move gprs atom creating to 'post_online'
state to make sure rild status is RADIO_STATUS_ON when query max
cid.
2016-04-22 14:19:47 -05:00
Nishanth V 72eb1d7b5f plugins: Add allowed apn list 2016-04-21 10:01:53 -05:00
Kuba Pawlak dee50a7565 plugins/nokia-gpio: fix glibc 2.23.9+ issues
readdir_r’ is deprecated [-Werror=deprecated-declarations]
2016-04-18 09:58:21 -05:00
Nishanth V 8c88c307ca sofia3gr: Add netmon support 2016-03-31 10:00:27 -05:00
Denis Kenzior a57743ac25 sofia3gr: Fix style issue 2016-03-22 10:28:33 -05:00
Anirudh Gargi 28455e5cd7 sofia3gr: Enable vendor type in SMS driver 2016-03-22 10:27:57 -05:00
Dragos Tatulea 8d8333cc21 ublox: support more internet contexts
Create multiple gprs-context instances and let the gprs core use
them as it sees fit.

Only for Toby L2.
2016-03-17 09:53:51 -05:00
Dragos Tatulea 50133ac0f4 ublox: enable ubloxmodem driver when possible
Where possible means Toby L2 in high speed mode.

The bridge mode is set before enabling the modem because the
driver requires this.
2016-03-17 09:52:23 -05:00
Dragos Tatulea 82fb20d707 ublox: give names to model ids
To make it easier to understand the code.
2016-03-17 09:40:59 -05:00
Denis Kenzior 5b6ac8c14f ublox: devinfo atom driver has no vendor behavior 2016-03-16 13:18:28 -05:00
Dragos Tatulea c0c2ae87ab ublox: use vendor from structure instead of fixed
That's because we need to differentiate between multiple ublox
devices.
2016-03-16 13:12:49 -05:00
Dragos Tatulea ae74d4ccd6 ublox: allow enabling of TOBY L2 modems
For this we need to:
* Set the vendor family based on model id.
* Not use modem interface for the TOBY L2 family.
2016-03-16 13:10:29 -05:00
Dongsu Park 5d8f5228ca udevng: Support U-blox TOBY series of devices
Each modem expresses their interfaces with its own interface string,
which is composed of 3 different USB attributes:
"bInterfaceClass/bInterfaceSubClass/bInterfaceProtocol".
While the old models like LISA support only "2/2/1" for modem
interfaces, TOBY-L2 also supports an unique string for NetworkInterface
for each profile.

* low-medium throughput profile : 2/6/0
* fairly backward-compatible profile : 10/0/0
* high throughput profile : 224/1/3

Besides the condition for checking NULL for mdm/aux/net should be relaxed
a little bit.
2016-03-16 12:59:51 -05:00
Denis Kenzior b1017670f5 ril_sofia3gr: Fix warning 2016-03-16 12:59:51 -05:00
Samrat Guha Niyogi ef36ca7a24 ril_sofia3gr: add ussd atom to post_online 2016-03-16 12:51:26 -05:00
Denis Kenzior 5133bd2818 udevng: Move from setup_icera to setup_ublox
As intended by 126b04
2016-03-11 14:08:18 -06:00
Dragos Tatulea 126b0424d3 plugins/udevng: ublox: set model string
Necessary for supporting the ublox TOBY L2 modem.
2016-03-10 08:03:20 -06:00
Dongsu Park 56ff134721 plugins/udevng: support the U-Blox TOBY-L2 series
The newest generation of U-Blox TOBY-L2 series can be detected with
VID 0x1546 (the same as before), and one of the following PIDs:

* "0x1146" : high throughput profile
* "0x1141" : fairly back-compatible profile
* "0x1143" : low/medium throughput profile

This patch adds detection for high throughput mode.
2016-03-09 11:23:52 -06:00
Denis Kenzior 6df0655aa3 ril_sofia3gr: Add radio_settings atom 2016-01-05 10:38:54 -06:00
Tony Espy dd16d4d1b5 plugins: add upower battery monitor for bluetooth 2015-12-18 09:53:38 -06:00
Denis Kenzior d9ed2eab19 ril: Use g_ril_new_with_ucred 2015-12-16 11:39:53 -06:00
Denis Kenzior 1f98d96079 plugins: Add sofia3GR ril driver 2015-12-15 17:17:53 -06:00
Denis Kenzior f1f657b6da stktest: Remove usage of decode_at_error
Otherwise the build fails when building without atmodem support
2015-12-15 17:17:15 -06:00
Denis Kenzior 9c7856efa0 ril: Get rid of ril_gprs_context_data 2015-12-13 22:20:58 -06:00
Denis Kenzior b69bb1116e ril: Don't use ril_sim_data 2015-12-13 21:30:14 -06:00
Denis Kenzior d7cb11a363 ril: Don't include grilunsol.h 2015-12-04 13:43:28 -06:00
Denis Kenzior 001701caee ril: Get rid of gprs_driver_data 2015-12-03 13:08:48 -06:00
Denis Kenzior 6e0ce5ece5 ril: Don't include grilreply.h 2015-12-03 11:40:47 -06:00
Denis Kenzior 86d7a8d6f0 ril: Remove grilrequest.h 2015-12-03 10:20:24 -06:00
Tony Espy 72ddf14046 plugins: rm unneeded exits/sleeps from ril plugin 2015-11-19 16:30:32 -06:00
Tony Espy a35de9c0c9 ril: remove unecessary sleep from ril plugin 2015-11-17 20:50:17 -06:00
Denis Kenzior a07f7b7cf4 ril: Implement radio state changed parsing inline 2015-11-17 12:10:59 -06:00
Petr Vorel b8a9e0d5ec gobi: Add missing _GNU_SOURCE
as we're using O_CLOEXEC
2015-11-16 09:32:09 -06:00
Denis Kenzior de1aad2e11 ril: Don't use ril_voicecall_driver_data 2015-11-12 13:17:55 -06:00