Commit Graph

7841 Commits

Author SHA1 Message Date
Dragos Tatulea 217efa7f25 test: add script for setting lte atom properties 2016-11-11 10:46:26 -06:00
Denis Kenzior 71a870cd98 include: Make lte method const correct 2016-11-11 10:34:33 -06:00
Dragos Tatulea ec7c109c9d include: add header file for lte atom 2016-11-11 10:14:09 -06:00
Dragos Tatulea a39bd6c47e include: add LTE dbus service define 2016-11-11 10:13:07 -06:00
Kuba Pawlak de58109933 bluez5: fix crash on DBus transport disconnection
Do not register dbus notification if message failed to be sent out
because transport was already disconnected
2016-11-10 10:18:26 -06:00
Kuba Pawlak 5a6fe84ec0 gatchat: Fix parsing fields with odd number of quotation marks
Events like +CLCC and +CCWA can have contact name attached to the
end of line. If this field contains odd number of quotation marks,
parser will eventually reject such message as malformatted.
2016-11-10 10:18:26 -06:00
Dragos Tatulea f750366261 src: add LTE atom define 2016-11-09 14:20:11 -06:00
Slava Monich 27a9428eec gprs: Check GPRS_FLAG_ATTACHED_UPDATE
... in pri_deactivate_callback

This prevents attached state from getting stuck at 0 like this:

1. Context deactivation is initiated over D-Bus, ctx->pending is set
2. Attached becomes FALSE, context is still marked as active
3. Attached becomes TRUE, gprs_attached_update sets GPRS_FLAG_ATTACHED_UPDATE
4. Deactivation completes, attached is 0, driver_attached is 1

Futher network status updates don't call gprs_attached_update because
driver_attached is still 1, so attached is staying 0 until we lose the
data registration again which may not happen for quite a long time.
2016-11-03 14:24:41 -05:00
Caiwen Zhang 20d8cf9495 gprs: fix crash removing a context being activated
If remove the context before context activation is completed, it may
cause a crash.
2016-11-01 11:29:37 -05:00
Marcel Holtmann e51b39e92c Release 1.19 2016-10-28 14:12:15 +02:00
Slava Monich 5c486138ba netmon: Fix corner cases in serving cell info
Make sure we don't pass NULL message to g_dbus_send_message
Also that we don't lose the reply message.
2016-10-25 14:41:53 -05:00
Alfonso Sánchez-Beato c31a27c180 gitignore: unit/test-rilmodem-gprs binary 2016-10-25 11:51:43 -05:00
Alfonso Sánchez-Beato 8da3726c83 build: add rilmodem gprs unit tests 2016-10-25 11:51:43 -05:00
Alfonso Sánchez-Beato 8062417071 unit: add rilmodem gprs tests
Add rilmodem gprs tests, which use the rilmodem test engine.
2016-10-25 11:51:43 -05:00
Alfonso Sánchez-Beato 6429e9178d unit: add rilmodem test engine
Add rilmodem test engine. This engine is an improvement on the rilmodem
test server that allows us to test generic interactions with the
rilmodem driver. Instead of just be able to check content of received/
sent bytes on the rild socket, we can now specify a set of steps for a
test that include interactions with the atom. The step types are

- TST_ACTION_SEND: The harness sends a parcel
- TST_ACTION_CALL: The harness calls a driver function
- TST_EVENT_RECEIVE: The driver sends a parcel
- TST_EVENT_CALL: The driver calls a harness (atom) function
2016-10-25 11:51:43 -05:00
Slava Monich 503775992d include: Remove unused field from primary_context 2016-10-10 17:09:32 -05:00
Denis Kenzior 1b2f52459f AUTHORS: Mention Antoine's contributions 2016-10-05 13:03:18 -05:00
Denis Kenzior a8d4e7960f gatchat: Fix style 2016-10-05 13:02:52 -05:00
Antoine Aubert da47398525 gatmux: fix read channel remove on error
In case of invalid IO, read_watch is not reset. This fix crash on
destroy gatmux.
2016-10-05 13:02:41 -05:00
Slava Monich 54fb56df24 main: Make -d option repeatable
Concatenating the patterns makes more sense than using the last
supplied value and leaking the previous allocated patterns.
2016-10-04 22:26:26 -05:00
Frédéric Dalleau 3079ccad45 udevng: Detect huawei E3372 modem and pcui
When the modes are modified with AT^SETPORT="FF;12,1,16", this modem
and pcui will appear using different ids. Update the interfaces
identifier accordingly.
2016-09-29 10:59:21 -05:00
Frédéric Dalleau 1978934740 udevng: Detect huawei E3372 pcui
The huawei E3372 exposes two USB tty at /dev/ttyUSB0 and /dev/ttyUSB1
/dev/ttyUSB1 is properly detected as modem.
/dev/ttyUSB0 is the pcui.

lsusb shows 12d1:1506 Huawei Technologies Co., Ltd. Modem/Networkcard
2016-09-29 10:58:47 -05:00
Denis Kenzior 80a71f32cd handsfree-audio: Fix crash
For HFP 1.5 devices the driver is always set to NULL.  So if the AG
establishes the SCO connection first, we might crash.
2016-08-23 20:34:52 -05:00
Santtu Lakkala 54c9068ff2 huaweimodem: Fix DHCP parsing on 32-bit platforms
strtol clamps returned value between INT_MIN and INT_MAX, causing
invalid value (255.255.255.127) being reported for any address
if last octet > 127 when sizeof(long) == 4.
2016-08-10 11:21:56 -05:00
Samrat Guha Niyogi 27f9da901f sim: remove locked_pin reset from sim_free_main_state 2016-08-08 21:17:22 -05:00
Samrat Guha Niyogi 2ba2ccbee4 rilmodem: fix cbd init in ril_query_facility_lock 2016-08-06 11:06:58 -05:00
Samrat Guha Niyogi cafd98778d rilmodem: fix num_params in query_facility_lock_cb 2016-08-06 11:06:14 -05:00
Denis Kenzior eaed7dd7e9 rilmodem: Co-locate the callback with invocation 2016-08-06 11:05:12 -05:00
Denis Kenzior d2ec4a2309 rilmodem: Co-locate the callback with invocation 2016-08-06 11:04:20 -05:00
Samrat Guha Niyogi 3047fbd87b rilmodem: split ril_pin_change_state_cb
split ril_pin_change_state_cb based on functionality w.r.t.
facility lock, puk and pin. Rename ril_pin_change_state to
more appropriate name ril_set_facility_lock and rename
ril_pin_change_state_cb to ril_enter_sim_pin_cb.
2016-08-06 10:58:29 -05:00
Samrat Guha Niyogi e3f1eae928 rilmodem: Remove unneeded pin sending logic 2016-08-06 10:53:40 -05:00
Denis Kenzior 3b5475d942 sim: Fix style 2016-08-06 10:52:30 -05:00
Samrat Guha Niyogi 162f6985e3 sim: query facility during initialization in chain manner
query facility during initialization is modified from back
to back invocation to chain manner to keep it inline with
RIL design. All vendor RIL does not support back to back
handling since RIL telephony framework sends the request
synchronously.
2016-08-06 10:50:27 -05:00
Denis Kenzior f4a90e5e0d sim: return false for SIM_PASSWORD_NONE 2016-07-20 16:26:42 -05:00
Ankit Navik b1baea9830 ril_sofia3gr: use vendor modem power down command 2016-07-07 11:59:47 -05:00
Slava Monich 103e8fd42e sim: Query the status of SC facility lock 2016-07-06 11:12:21 -05:00
Denis Kenzior ee98484193 test: Add cancel-sms script 2016-06-06 11:03:01 -05:00
Denis Kenzior 4f8d85665d test: Fix permissions 2016-06-06 11:02:18 -05:00
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
Anirudh Gargi 1cab1d554d gril: Fix print macros to use latest print_buf 2016-05-24 11:05:42 -05:00
Denis Kenzior e62708b0a2 AUTHORS: Mention Rajagopal's contributions 2016-05-24 11:04:39 -05:00
Rajagopal Aravindan deb8652c35 test: Added test to disable sofia 3gr tx throttling 2016-05-24 11:03:11 -05:00
Rajagopal Aravindan 06bc8c4160 test: Added test to enable sofia 3gr tx throttling 2016-05-24 11:02:18 -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
Nishanth V ba42155a2c rilmodem: fix WCDMA only in query rat mode 2016-05-20 10:16:23 -05:00
Caiwen Zhang b8a79b605e plugins/ril: enable cbs 2016-05-19 10:30:13 -05:00
Caiwen Zhang 1eec2fc46e rilmodem: add cell broadcast message support 2016-05-19 10:29:33 -05:00
Samrat Guha Niyogi 5a03102192 ril_sofia3gr: Return -EINPROGRESS on disable() 2016-05-18 12:15:41 -05:00
Denis Kenzior 348c8d0da9 AUTHORS: Mention Suman's contributions 2016-05-17 09:49:14 -05:00