summaryrefslogtreecommitdiffstats
path: root/drivers/atmodem
AgeCommit message (Collapse)AuthorFilesLines
2010-08-06atutil: Parse CMS and CME error codesAndrzej Zaborowski1-0/+6
2010-08-02Fix busylooped in ppp_disconnect for huawei modemZhenhua Zhang1-2/+7
Huawei modem closes the modem port after PPP disconnect. So the channel of gatchat is NULL in ppp_disconnect. In such case, we resume the chat and it causes huawei_disconnect() get called and the gprs context is removed later. Before removing this gprs context, we should reply the pending DBus message to the client.
2010-07-30phonesim: Introduce End Session notificationDenis Kenzior1-2/+14
2010-07-13atmodem: phonesim proactive command notificationYang Gu1-0/+24
2010-07-13atmodem: Make fetch command function as externalYang Gu3-53/+75
2010-07-08atmodem: Make sim operations return sim error codes.Andrzej Zaborowski2-15/+37
2010-06-29atmodem: Don't unregister *EPEV in *EPEV handler.Andrzej Zaborowski1-2/+20
Handlers are called when looping over the unsolicited responses hash, registering or unregistering modifies that hash and confuses glib.
2010-06-28atmodem: Update to the new PPP APIZhenhua Zhang1-2/+3
2010-06-25atmodem: Add CGSMS support to sms driverDenis Kenzior1-0/+88
2010-06-24hso: Don't query tech if not registered or roamingDenis Kenzior1-0/+4
{NetworkRegistration} [/hso0] LocationAreaCode = 34591 {NetworkRegistration} [/hso0] CellId = 5903759 {NetworkRegistration} [/hso0] Strength = 32 {NetworkRegistration} [/hso0] Strength = 22 {PrimaryDataContext} [/hso0/primarycontext1] Settings = dbus.Dictionary({}, signature=dbus.Signature('sv'), variant_level=1) {PrimaryDataContext} [/hso0/primarycontext1] Active = 0 {DataConnectionManager} [/hso0] Attached = 0 {NetworkRegistration} [/hso0] Status = searching {NetworkRegistration} [/hso0] Technology = umts <--- Oops {NetworkOperator} [/hso0/operator/26201] Status = available {NetworkRegistration} [/hso0] Name = {NetworkRegistration} [/hso0] Status = registered {NetworkRegistration} [/hso0] LocationAreaCode = 35342 {NetworkRegistration} [/hso0] CellId = 5903759 {NetworkRegistration} [/hso0] Technology = edge
2010-06-21atmodem: Support CDS indicators for MBMDenis Kenzior1-7/+9
MBM does not advertise support for CNMA, yet only supports CDS style notifications which do not need to be acknowledged.
2010-06-18atmodem: Use a switch/case in sim.cDenis Kenzior1-2/+8
2010-06-18atmodem: Add PIN entry quirk for mbm.Andrzej Zaborowski1-1/+45
Wait for *EPEV unsolicited response after PIN entered, otherwise the next AT+CPIN? query still returns the old value for a fraction of a second and ofono gets stuck until the next PIN entry attempt.
2010-06-17Fix: potential to crash in atmodemDenis Kenzior1-14/+20
Some callbacks in call-meter were assuming that a modem follows 27.007 and actually returns a string. Some modems don't return a string that is properly formatted (e.g. in quotes). The strtol was thus accessing uninitialized memory and crashing ofono.
2010-06-14atmodem: Couple tiny style fixesDenis Kenzior1-4/+4
2010-06-14Report cell technology capability for Option HSO modemsDaniel Wagner1-62/+122
Option modem use OCTI and OUWCTI commands for reporting the cell capability.
2010-06-13Fix memory leak introduced by HSO quirkMarcel Holtmann1-4/+2
2010-06-13Add nasty quirk to allow HSO devices to read network code lengthMarcel Holtmann1-0/+9
The AT+CRSM=192 commands are failing on HSO devices and thus it might be needed to return its details from a predefined database. Start with testing this for reading the network code length.
2010-06-11atmodem: Shutdown ppp cleanly on removeDenis Kenzior1-0/+7
There is a race condition from udev / kernel when a USB dongle is removed. Sometimes all ports are removed first (and the io channels for those ports are signaled as hupped) while other times the udev remove event fires first. If the latter happens, then gprs_context remove is called with a potentially live ppp object. This patch shuts it down cleanly.
2010-06-11atmodem: Always unref ppp when context is downDenis Kenzior1-0/+2
2010-06-10Disable CNMA support for Novatel based devicesMarcel Holtmann1-1/+2
2010-06-10atmodem: Allow ME & SM for status report storeDenis Kenzior1-5/+13
2010-06-10atmodem: Force CDSI delivery for Novatel devicesDenis Kenzior1-1/+15
2010-06-10atmodem: Add support for status report via CDSIDenis Kenzior1-2/+30
2010-06-10atmodem: Use atutil based functionsDenis Kenzior1-35/+20
2010-06-10atmodem: Add utility for parsing CMTI/CDSI/CBMIDenis Kenzior2-0/+52
2010-06-10atmodem: Register for notifications after CMGLDenis Kenzior1-12/+14
2010-06-10atmodem: Split out the +CPMS senderDenis Kenzior1-26/+31
Just before sending a CMGR for +CMTI notification, use need to optionally send a CPMS to select the proper storage. This should be done in a separate function for potential re-use by CDSI
2010-06-09And some more minor coding style cleanup in SMS driverMarcel Holtmann1-3/+3
2010-06-09Fix coding style for one comment in SMS driverMarcel Holtmann1-1/+1
2010-06-09Add quirk for Qualcomm issues with setting CBS topic rangesMarcel Holtmann1-0/+14
2010-06-09Coding style fix for the PIN type tableMarcel Holtmann1-16/+16
2010-06-07atmodem: Fix CPUC parserDenis Kenzior1-6/+12
Apparently some modems are extra stupid: AT+CPUC?\r \r\n+CPUC: \r\nOK\r\n So if we fail to parse the response, return an error
2010-06-07netreg: whitespace styleDenis Kenzior1-2/+2
2010-06-07netreg: Add Huawei RSSI unsolicited callbackDenis Kenzior1-4/+20
2010-06-07atmodem: Optimize cops queriesDenis Kenzior1-20/+25
This patch is meant to do two things: - Some modems, like the Novatel, report bogus operator information when not registered, as opposed to simply returning empty strings. In this case we're a little bit more explicit about checking the returned mcc/mnc string - If we determine that the mcc/mnc string is bogus, we don't schedule the alphanumeric cops query and return early.
2010-06-06Add special SMS handling for Huawei based devicesMarcel Holtmann1-2/+10
2010-06-06Move AT_ODO quirk into HSO driver instead of network registrationMarcel Holtmann1-17/+0
2010-06-06Use unquoted strings for cell information of Novatel devicesMarcel Holtmann1-0/+2
2010-06-06Add support for handling CNTI=0 request with Novatel devicesMarcel Holtmann2-11/+61
2010-06-04hso: Enable OUWCTI notificationsDenis Kenzior1-3/+3
2010-06-04atmodem: Put some common code into a utilityDenis Kenzior1-20/+17
2010-06-04Change in at_cds_notify for status reportPasi Miettinen1-4/+15
2010-06-04Send OWCTI query when bringing up Option based devicesMarcel Holtmann1-0/+2
2010-06-04Use AT_OUWCTI instead of AT_OWCTI as expectedMarcel Holtmann1-1/+1
The Option firmware is so funny. It has a typo in the AT command :)
2010-06-04Enable Option specific OWCTI unsolicited notificationsMarcel Holtmann1-0/+2
2010-06-03The ack pdu support is not working on Novatel or Option devicesMarcel Holtmann1-1/+6
2010-06-03Quirk SMS handling for Novatel based devicesMarcel Holtmann1-2/+3
The Novatel based devices with Qualcomm chips seems to have various problems. First they advertise CNMI mode 2, but don't support it. And second they don't support CNMA acknowledgement with a PDU. So fall back to acks without PDU.
2010-06-03Add special quirk for Novatel based devicesMarcel Holtmann2-0/+7
2010-06-03The default PPP netmask should be 255.255.255.255Marcel Holtmann1-1/+1