Commit Graph

989 Commits

Author SHA1 Message Date
Marcel Holtmann 63a65e73ba zte: Use own vendor quirk for SMS atom driver 2011-10-06 15:29:52 -07:00
Gustavo F. Padovan ee2ba5b256 sap: also accept err = 0 in enable() 2011-09-29 14:03:45 -05:00
Gustavo F. Padovan 0e4a351282 telit: fix shutdown of bluetooth socket 2011-09-29 14:03:45 -05:00
Gustavo F. Padovan 53e005b200 sap: add sap modem disable() support 2011-09-29 14:03:45 -05:00
Gustavo F. Padovan 77aa9ef9d1 sap: clean up extra blank line 2011-09-29 11:21:57 -05:00
Gustavo F. Padovan 7a30f2e431 sap: add full support to SAP modem
Add pre_sim, post_sim, set_online and post_online calls
2011-09-29 11:21:54 -05:00
Gustavo F. Padovan fa56fe78c5 telit: add post_online to SAP Client 2011-09-29 11:19:22 -05:00
Gustavo F. Padovan fde698c2a5 telit: add set_online to SAP Client 2011-09-29 11:19:03 -05:00
Gustavo F. Padovan 9c7f0aa45e telit: add post_sim to SAP Client 2011-09-29 11:18:51 -05:00
Gustavo F. Padovan 93fd2afd02 telit: add pre_sim support to SAP Client 2011-09-29 11:18:40 -05:00
Gustavo F. Padovan e07b4217aa telit: init modem normally once SAP was enabled 2011-09-29 11:17:12 -05:00
Gustavo F. Padovan deca4a32d3 telit: add suport the disable SAP client 2011-09-29 11:13:05 -05:00
Gustavo F. Padovan d4da014f6f sap: enable SAP modem, when BlueZ replies 2011-09-29 10:49:47 -05:00
Denis Kenzior 019f0c9265 telit: Reflow sap_enable logic
To cover some conditions where we do not clean up properly
2011-09-29 10:48:23 -05:00
Denis Kenzior c035b1af48 telit: Remove unneeded if 2011-09-29 10:02:33 -05:00
Gustavo F. Padovan b722540594 telit: add support the enable the SAP client modem 2011-09-29 09:57:29 -05:00
Gustavo F. Padovan 06544a4c4d sap: remove connect callback if enable fails 2011-09-29 09:11:34 -05:00
Gustavo F. Padovan 02a6d7b3a9 sap: clean up sap modem destruction 2011-09-28 02:24:36 -05:00
Gustavo F. Padovan 4f54a18539 sap: remove server_path
We use ofono_modem_set_string() instead to store it.
This also remove the need to have sap_data allocation on
bluetooth_sap_probe().
2011-09-28 02:24:04 -05:00
Gustavo F. Padovan 1f774bc1de sap: fix sap modem remove
prefix NULL means that the modem needs to be removed
2011-09-27 23:43:27 -05:00
Gustavo F. Padovan e73244a4a3 sap: retrigger bluetooth GetProperties call
When plugging a SAP capable modem, GetProperties need to be called again
to fetch the SAP Server devices from BlueZ.
2011-09-27 23:36:23 -05:00
Gustavo F. Padovan 9667db0b14 telit: add #RSEN notify
RSEN URC tells if the SAP Client was enabled or not
2011-09-26 13:38:19 -05:00
Gustavo F. Padovan c30e7265d9 sap: add support to connect the RFCOMM link 2011-09-26 13:38:12 -05:00
Gustavo F. Padovan 4f3b9ff36c telit: add support to enable SAP client 2011-09-26 13:37:55 -05:00
Denis Kenzior 7771fa07c8 sap: Fix minor whitespace issues 2011-09-26 13:37:06 -05:00
Gustavo F. Padovan 64e2b33465 sap: Add basic sap plugin 2011-09-25 11:45:54 -05:00
Gustavo F. Padovan 39f39b37c9 bluetooth: track DBus call pending 2011-09-13 00:14:15 -05:00
Mikel Astiz 4b2b707a30 hfp_hf: add handsfree atom 2011-09-09 01:05:47 -05:00
Denis Kenzior a33c546694 plugins: Fix unused var warning 2011-09-09 00:10:06 -05:00
Denis Kenzior cbe83ead62 plugins: Add mobile-broadband-provider-info parser 2011-09-08 23:50:19 -05:00
Marcel Holtmann 036707e42a hso: Switch modem to use error numbers instead of strings 2011-08-22 17:42:36 -07:00
Daniel Wagner 75603a546f udev: Fix typo for Huawei diagnostic interfaces 2011-08-17 17:16:00 -07:00
Denis Kenzior 9fb9d2385c sim-poll: Remove unused code 2011-08-14 22:56:45 -05:00
Marcel Holtmann de8b4621c2 udev: Add automatic detection for Linktop devices 2011-08-11 15:27:33 -07:00
Marcel Holtmann 8240fe9684 udev: Detect Diagnostic (QCDM) port for Telit devices 2011-08-11 10:53:54 -07:00
Marcel Holtmann 5d6ac7342f udev: Add automatic detection for Telit modems 2011-08-11 10:40:59 -07:00
Marcel Holtmann f5c4be8160 udev: Add support for automatic ISI USB modem detection 2011-08-11 10:28:48 -07:00
Marcel Holtmann ea8e97bdc8 udev: Prepare for supporting different bus types 2011-08-11 10:03:25 -07:00
Marcel Holtmann a38231b949 udev: Remove modem object when setup procedure fails 2011-08-11 07:48:47 -07:00
Marcel Holtmann 6d9d991a39 udev: Fix typo in Option HSO setup function 2011-08-10 21:53:22 -07:00
Marcel Holtmann 3742162017 udev: Add automatic detection for Ericsson MBM based devices 2011-08-10 21:52:40 -07:00
Marcel Holtmann 7fd6d3d0ef udev: Add support for Huawei E160 based devices with only two TTY 2011-08-10 21:50:11 -07:00
Marcel Holtmann ee19210585 udev: Fix minor whitespace mistakes 2011-08-09 16:50:30 -07:00
Marcel Holtmann f0f3a57091 nokiacdma: Fix minor whitespace mistakes 2011-08-09 16:50:30 -07:00
Marcel Holtmann 7ca5ded9c6 nokia: Fix minor whitespace mistakes 2011-08-09 16:50:30 -07:00
Marcel Holtmann 99a53ca653 ifx: Fix minor whitespace mistakes 2011-08-09 16:50:30 -07:00
Marcel Holtmann 75f06e792c hso: Fix minor whitespace mistakes 2011-08-09 16:50:30 -07:00
Marcel Holtmann 7f627b4034 mbm: Fix minor whitespace mistakes 2011-08-09 16:50:30 -07:00
Marcel Holtmann dc65e2d3c1 phonesim: Fix minor whitespace mistakes 2011-08-09 16:50:30 -07:00
Marcel Holtmann b20949002c ste: Fix minor whitespace mistakes 2011-08-09 16:50:29 -07:00
Marcel Holtmann c1d150071b tc65: Fix minor whitespace mistakes 2011-08-09 16:50:29 -07:00
Marcel Holtmann 83eb63083c zte: Fix minor whitespace mistakes 2011-08-09 16:50:29 -07:00
Marcel Holtmann d79850f215 udev: Use standard modem properties for Novatel devices 2011-08-09 16:50:29 -07:00
Marcel Holtmann bf0a062e69 novatel: Use more standard values for control and modem channels 2011-08-09 16:50:29 -07:00
Marcel Holtmann 1881e7c61c udev: Detect Diagnostic (QCDM) port for Huawei devices 2011-08-09 16:50:29 -07:00
Marcel Holtmann 9152d56291 udev: Detect QCDM port for ZTE devices 2011-08-09 16:50:29 -07:00
Marcel Holtmann 4c52de55b7 udev: Detect GPS and QCDM port for Gobi cards 2011-08-09 16:50:29 -07:00
Marcel Holtmann a36065bbc7 udev: Add debug output for special system attribute 2011-08-09 16:50:29 -07:00
Marcel Holtmann 549c298b61 udev: udev: Add automatic detection for Nokia data cards 2011-08-09 16:50:29 -07:00
Marcel Holtmann bfe5731cd6 nokia: Use post_online callback even without onfline/offline support 2011-08-09 16:50:29 -07:00
Marcel Holtmann b27b7ff309 udev: Add automatic detection for Olive V-ME101 HSIA modem 2011-08-09 16:50:29 -07:00
Marcel Holtmann 0f6f9081a1 samsung: Add skeleton driver for Samsung LTE device 2011-08-09 16:50:29 -07:00
Marcel Holtmann a7e4b2e59a alcatel: Add skeleton driver for Alcatel X220L device 2011-08-09 16:50:29 -07:00
Marcel Holtmann c7e43e54ed udev: Add automatic detection for Alcatel X220L 2011-08-09 16:50:29 -07:00
Marcel Holtmann 6682379cf8 speedup: Use post_online callback even without onfline/offline support 2011-08-09 16:50:28 -07:00
Marcel Holtmann d0fa99678b speedup: Fix minor whitespace issue 2011-08-09 16:50:28 -07:00
Marcel Holtmann a1087ef1f1 udev: Use automatic detection for all SpeedUp modems 2011-08-09 16:50:28 -07:00
Bertrand Aygon 65f4f14f52 huaweicdma: Enable netreg atom 2011-08-09 13:01:48 -05:00
Frédéric Danis 02db6119f2 hfp_hf: retrieve AG version 2011-08-08 10:16:21 -05:00
Frédéric Danis b8730eb47d hfpmodem: fix hf features
check audio gateway version and only set right features
2011-08-08 10:16:21 -05:00
Marcel Holtmann 41c8b30ce6 udev: Use semi-automatic detection for SpeedUp devices 2011-08-08 17:09:42 +02:00
Marcel Holtmann 996d720b88 udev: Use fully automatic detection for Samsung LTE devices 2011-08-07 16:35:43 +02:00
Marcel Holtmann bc63209b90 udev: Fix network interface detection for Option HSO 2011-08-06 14:12:37 +02:00
Marcel Holtmann 4cabdedafd udev: Use fully automatic detection for Option HSO devices 2011-08-06 14:06:16 +02:00
Marcel Holtmann 9ef2e27b11 udev: Add support for automatic tagging of network interfaces 2011-08-06 13:28:45 +02:00
Marcel Holtmann 3d9b547257 udev: Sort devices by interface number and not device node 2011-08-06 13:18:28 +02:00
Marcel Holtmann 19e4dc97c1 udev: Add support for default driver assignments
If devices are not tagged with OFONO_DRIVER, then the driver will be
figured out based on kernel module name, vendor and/or product IDs.

Of course the manual tagging with OFONO_DRIVER as part of an udev
rule can always overwrite the default assignment.
2011-08-06 13:08:33 +02:00
Marcel Holtmann 40cf7449fe udev: Use ID_USB_INTERFACE_NUM property instead bInterfaceNumber 2011-08-06 13:07:37 +02:00
Marcel Holtmann 787f14229a udev: Prioritize labeled interfaces over discovered ones 2011-08-06 12:53:50 +02:00
Marcel Holtmann 64d90e9fa7 udev: Add warning in case channel gets disconnected 2011-08-06 12:53:50 +02:00
Denis Kenzior 52ac1749e0 udevng: Fix minor whitespace violation 2011-08-05 20:05:33 -05:00
Marcel Holtmann b337d18560 udev: Add support for cleaner modem detection 2011-08-06 03:01:23 +02:00
Marcel Holtmann 8bb22cf740 udev: Remove outdated modem detection support 2011-08-06 03:00:35 +02:00
Marcel Holtmann 7e852420e8 zte: Set vendor quirk also for GPRS context atom 2011-08-05 22:51:02 +02:00
Marcel Holtmann bb227dbe33 udev: Fix rules for Huawei E352 dongle 2011-08-05 19:17:55 +02:00
Marcel Holtmann 6b6e8816dd udev: Add rules for Alcatel X220L devices 2011-08-05 17:59:55 +02:00
Marcel Holtmann d17ebf1bbd udev: Add rule for 4G Systems P14 dongle 2011-08-05 17:59:55 +02:00
Marcel Holtmann 1c0f549074 zte: Use AT+ZOPRT for online/offline mode changes
The ZTE modems work a lot more reliable when using AT+ZOPRT for switching
between online and offline mode.

In addition transition to offline mode also for enabling modem and switch
device into offline first before switching it off.
2011-08-05 17:59:55 +02:00
Marcel Holtmann 79e1638b40 zte: Set options for TTY port configuration
Seems like the ZTE modems are a bit more picky than others, so set
proper default options here. At least of the ZTE modems work a lot
more reliable this way.
2011-08-05 17:59:55 +02:00
Bertrand Aygon 4b896ee834 udev: add support for Olive HSDPA modem, which seems to be a SpeedUP. 2011-08-04 18:07:14 +02:00
Marcel Holtmann 59b4f99fec udev: Switch control and modem channel for 4G Systems W14 device
This device is rather funny with some commands and insists on sending
the response to the other channel, but not the one it got executed on.

Aux: > AT+CPNNUM\r
Modem: < \r\nPIN1=3; PUK1=10; PIN2=3; PUK2=10\r\r\nOK\r\n
2011-08-04 16:02:17 +02:00
Marcel Holtmann 0eb0fd96eb speedup: Use own vendor quirk for SIM atom 2011-08-04 15:54:57 +02:00
Marcel Holtmann e0148bef6f huawei: Check for AT^RFSWITCH support to determine offline command
Using AT+CFUN=7 (if supported) to switch into offline mode has a problem
with older modems. Sending AT+CFUN=7 with a data connection active has
the problem that it never terminates with OK or ERROR.

Devices that support AT^RFSWITCH are known to handle this properly. So
only when that command is supported, use AT+CFUN=7 for offline mode. If
it is not supported, then keep using AT+CFUN=5 to switch the device into
offline mode.
2011-08-04 14:01:03 +02:00
Marcel Holtmann 93186f6939 huawei: Add TOO MANY PARAMETERS terminator 2011-08-04 13:27:29 +02:00
Marcel Holtmann 5adacbaebd zte: Switch to offline mode first before disabling modem 2011-08-04 02:43:06 +02:00
Marcel Holtmann a7d7d24e4e zte: Blacklist the NO CARRIER terminator for control channel
The ZTE cards will send NO CARRIER to all channels. This confuses
setting device into offline mode while still having a data connection.
2011-08-04 02:15:56 +02:00
Marcel Holtmann 7c204dafe9 udev: For ZTE modems with 5 interfaces, use 4th one for PPP 2011-08-04 02:14:46 +02:00
Marcel Holtmann 1566067d63 zte: Request PCB information when modem gets enabled 2011-08-04 00:07:03 +02:00
Marcel Holtmann 160940e34a zte: Set ZTE vendor quirk for SIM atom 2011-08-03 23:55:06 +02:00
Marcel Holtmann 402534b290 zte: Use vendor quirk for GPRS atom 2011-08-03 23:12:55 +02:00
Marcel Holtmann fbed01d9b8 speedup: Use vendor quirk for network registration and GPRS atoms 2011-08-03 22:39:11 +02:00
Marcel Holtmann f6572725bc udev: Add rule for 4G Systems W14 dongle 2011-08-03 18:54:27 +02:00
Mario Tokarz 949c129e17 bluetooth: Add UUID for DUN. 2011-08-03 14:43:38 +02:00
Marcel Holtmann 868b4489f9 mbm: Don't bother with NULL checking for SIM state query free 2011-08-03 14:31:56 +02:00
Marcel Holtmann 0d460ce2a3 zte: Fix race condition with SIM state polling and removal 2011-08-03 14:30:41 +02:00
Marcel Holtmann b7a6739e92 speedup: Fix race condition with SIM state polling and removal 2011-08-03 14:29:32 +02:00
Marcel Holtmann 8cfab5328c huawei: Fix race condition with enable polling 2011-08-03 14:26:23 +02:00
Marcel Holtmann 0ac3ccfa9b huawei: Fix race condition with online enable polling 2011-08-03 14:23:21 +02:00
Bertrand Aygon 0504fc56ff udev: switch ttys for SpeedUp 8000.
On SpeedUp 8000, notifications are received only on ttyUSB1.
So we must use this tty for aux, and use ttyUSB3 for modem.
2011-08-02 15:01:41 +02:00
Marcel Holtmann 90ee6542e6 novatel: Enable support for SIM phonebook 2011-07-29 17:36:08 +02:00
Guillaume Zajac 5029b906aa connman: Fix crash due to uninitialized path 2011-07-28 00:12:13 -05:00
Guillaume Zajac ae4ed8541c connman: Fix crash in request_reply 2011-07-28 00:12:13 -05:00
Guillaume Zajac 446ee3443c connman: Fix crash in parse_reply 2011-07-28 00:12:13 -05:00
Bertrand Aygon 6133d538c2 zte: delay the sending of &C0 after SIM is ready. 2011-07-29 16:01:24 +02:00
Bertrand Aygon c9c531c913 udev: add support for Olive V-ME101 HSIA modem 2011-07-29 15:31:39 +02:00
Bertrand Aygon fde5f0c951 udev: add support for Vodafone K3570-Z modem 2011-07-29 15:30:21 +02:00
Marcel Holtmann 3d305df9ad huaweicdma: Fix stale PCUI channel after hot-unplug 2011-07-29 15:26:13 +02:00
Marcel Holtmann 98d448e7c4 speedupcdma: Fix stale control channel after hot-unplug 2011-07-29 15:25:24 +02:00
Marcel Holtmann bc329be0e2 gobi: Fix stale control channel after hot-unplug 2011-07-29 15:24:33 +02:00
Marcel Holtmann 1b804183a8 nokia: Fix stale control channel after hot-unplug 2011-07-29 15:22:51 +02:00
Marcel Holtmann ffa66e919a novatel: Fix stale control channel after hot-unplug 2011-07-29 15:21:28 +02:00
Marcel Holtmann 3e73ffebff speedup: Fix stale control channel after hot-unplug 2011-07-29 15:21:25 +02:00
Marcel Holtmann e604e5065c zte: Fix stale control channel after hot-unplug 2011-07-29 15:21:11 +02:00
Marcel Holtmann d998989e9c huawei: Fix stale PCUI channel after hot-unplug 2011-07-29 15:20:53 +02:00
Marcel Holtmann 43c5b442b2 huawei: Style cleanup for comments 2011-07-29 15:20:31 +02:00
Marcel Holtmann 3055bc112b huawei: Shutdown the modem within disable callback 2011-07-29 14:56:41 +02:00
Marcel Holtmann 342a5bbd1a udev: Add extra debug statements for device actions 2011-07-29 14:55:56 +02:00
Marcel Holtmann a5be01c0c8 udev: Report problems with the udev monitor channel 2011-07-29 14:08:28 +02:00
Denis Kenzior ceb2ea8735 udev: Assign 12d1:140b to Huawei CDMA modem driver
A simple Google search revealed that 12d1:140b is only used by CDMA
devices from Huawei. Mainly the EC1260 and EC126 and so just assign
the CDMA driver to it.
2011-07-28 23:02:55 +02:00
Bertrand Aygon e233d87104 speedup: delay &C0. 2011-07-28 22:09:49 +02:00
Bertrand Aygon 9527bfb9af speedup: remove online/offline mechanism. 2011-07-28 22:09:15 +02:00
Marcel Holtmann 158b8331bd huawei: Complete rewrite to better support state transitions
When switching from offline into online mode, the SIM card access
gets temporarily disabled by the modem firmware. To work around
this limitation poll the SIM card state.
2011-07-28 22:06:29 +02:00
Bertrand Aygon e256a6b7c8 udev: Add support for SpeedUp 7300 EVDO modem. 2011-07-28 14:50:57 +02:00
Marcel Holtmann 48c495241e gobi: Add support for simplified dialup mode 2011-07-28 00:03:46 +02:00
Marcel Holtmann 3180a4f5b1 speedup: Send CFUN=4 when enabling the modem 2011-07-27 20:45:03 +02:00
Bertrand Aygon d63d74b356 zte: Use at_util's cpin polling implementation. 2011-07-27 20:08:17 +02:00
Bertrand Aygon 946e30abb2 speedup: Use at_util's cpin polling implementation. 2011-07-27 20:05:23 +02:00
Marcel Holtmann 77ab26c61c zte: Delay sending of AT&C0 to disable data carrier detect
The &C0 can not be send as part of the initial modem init string
since then it return with an error. Also sending it right after seems
to end up in a race condition with the modem init.

So send AT&C0 on both channel after AT+CFUN completed.
2011-07-27 18:02:32 +02:00
Marcel Holtmann 357499597e gobi: Add timeout for modem enabling handling
Some GOBI cards stop responding to AT commands when RFKILL has been
enabled. In that case just timeout after 5 seconds.
2011-07-27 16:29:52 +02:00
Marcel Holtmann 1143f228f5 gobi: Fix error handling with device enabling and disabling 2011-07-27 16:09:11 +02:00
Bertrand Aygon 4179c87069 huawei: add a debug info to help debugging. 2011-07-27 15:54:09 +02:00
Bertrand Aygon 8a3b76272c huaweicdma: open 2 ttys, to use a dedicated one for PPP. 2011-07-27 15:53:16 +02:00
Bertrand Aygon 10cf8a4a06 speedupcdma: open 2 ttys, to use a dedicated one for PPP. 2011-07-27 15:52:40 +02:00
Marcel Holtmann c3e78fc827 novatel: Fix missing error handling for CFUN failure 2011-07-27 15:47:16 +02:00
Marcel Holtmann 1a23051d0f sierra: Fix disable and enable error handling 2011-07-27 15:41:37 +02:00
Marcel Holtmann 6d9d9558fb nokia: Remove some unneeded NULL pointer checks 2011-07-27 15:37:21 +02:00
Marcel Holtmann c6e25f65fc speedup: Use AT&C0 to disable data carrier detect
When the DCD is disabled the modem does not hangup anymore after the
data connection. So all workarounds due to TTY hangup can be removed.
2011-07-26 13:32:46 +02:00
Marcel Holtmann b7e8db6dab linktop: Use AT&C0 to disable data carrier detect
When the DCD is disabled the modem does not hangup anymore after the
data connection. So all workarounds due to TTY hangup can be removed.
2011-07-26 13:25:23 +02:00
Marcel Holtmann 60736a6e06 zte: Use AT&C0 to disable data carrier detect
When the DCD is disabled the modem does not hangup anymore after the
data connection. So all workarounds due to TTY hangup can be removed.
2011-07-26 13:14:29 +02:00
Bertrand Aygon d81ca13097 huaweicdma: remove unneeded include. 2011-07-26 12:05:50 +02:00