summaryrefslogtreecommitdiffstats
path: root/drivers/atmodem
AgeCommit message (Collapse)AuthorFilesLines
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
2010-05-26atmodem: fix crash during context deactivationKalle Valo1-5/+10
Ofono either crashed or busy looped with my Huawei E1552 3G modem when I tried to deactivate GPRS context. The reason was that gcd->chat was unreferenced already in setup_ppp() but the chat was still accessed later in at_gprs_deactivate_primary(). To fix the problem, change the logic instead to suspend chat session for PPP and resume when PPP has disconnected. Now it doesn't crash anymore. Deactivation still doesn't work properly with Huawei E1552, and most probably with other Huawei modems, because the modem hangs up the chat line after PPP deactivation. This needs to be fixed separately. The workaround is to reboot the modem, for example physically unplug and plug it in again.
2010-05-26atmodem: refactor context deactivationKalle Valo1-35/+16
The old way of using CGACT is no longer needed. It is enough that we shutdown PPP. Recommended by Denis.
2010-05-19netreg: Fix crash when CREG is reported too earlyDenis Kenzior1-17/+12
If we register for CREG notifications before the netreg atom is registered (e.g. in MBM due to CIND queries) we crash if the CREG notification arrives before the CIND is queried.
2010-05-19huawei: add gprs contextKalle Valo1-0/+4
Tested with Huawei E1552 HSDPA USB stick using a finnish Saunalahti prepaid SIM.
2010-05-19Move report_signal_strength to atutilKalle Valo2-16/+18
The function is needed in two different places, better to move it to atutil.h.
2010-05-12atmodem: Pass allowed response prefixes to gatchatAndrzej Zaborowski1-6/+9
Not doing this creates a race condition where any notification comming in in the middle of a sequence of commands may be counted as a response to one of the commands and get lost.
2010-05-11atmodem: Fix crashes related to unremoved timeoutsDenis Kenzior1-2/+12
Any timeouts set must be removed using g_source_remove. Failure to do so results in sigsegvs when the modem is randomly removed during the initialization cycle.
2010-04-30atmodem: Port gprs-context to new PPP apiDenis Kenzior1-12/+8
2010-04-28Fix: For now calling g_at_chat_unref is fineDenis Kenzior1-1/+1
Same as g_at_chat_shutdown in this case
2010-04-15Rename ofono_atmodem_poll_enableDenis Kenzior2-2/+2
This is not official oFono API
2010-04-15Implement STATUS polling in atmodem driver.Andrzej Zaborowski2-0/+341
2010-04-15Fix: should be unsigned char not guint8Denis Kenzior1-1/+1
2010-04-15Style: Proper indentationDenis Kenzior1-6/+6
2010-04-15Add AT driver for STK atom.Andrzej Zaborowski3-0/+263