summaryrefslogtreecommitdiff
path: root/plugins
AgeCommit message (Collapse)AuthorFilesLines
2012-01-09nokia: fix PPP port for CSxx Internet SticksDan Williams1-13/+13
USB interface 0 isn't a serial interface; it's probably a custom Nokia PhoNet port or a custom Icera pseudo-ethernet port. But it's not a CDC-ACM serial port, at least on the CS17. Reported by Uwe Geuder.
2012-01-03cdma: fixes for libqcdm changesDan Williams1-9/+7
2011-12-31sierra: add support for Icera based devices (USB305, AT&T Lightning)Dan Williams2-14/+186
2011-12-07core: don't crash on error if response is NULLDan Williams3-3/+7
Various bits of the code didn't check if response was valid or not during error conditions, and when an error occurs sometimes it'll be NULL (since not all errors are translated errors from the modem, some are serial or general ones). We have to make sure we don't try to use response->str when response doesn't exist. Found in the generic CDMA code likely as a result of d5d9eec2b52363a7460aeec0c020b1c6a7af6b03 but was a bug long before that commit happened anyway.
2011-12-01mbm: add USB IDs for HP hs2340Dan Williams1-0/+3
2011-11-17nokia: add port tags for CS-xx Internet SticksDan Williams3-3/+50
They appear to always want PPP to happen on interface 0, according to the Windows .INF files.
2011-11-16core: keep track of all PIN retry countsEric Shienbrood3-142/+68
Added a PinRetryCounts property on org.freedesktop.ModemManager.Modem. This is dictionary that records the number of PIN tries remaining for each of the possible PIN code types for which the modem is capable of reporting the count. Also, these counts are kept up to date across ChangePin and EnablePin operations, not just when an unlock is attempted.
2011-11-15huawei: remove padding from USSD responsesGraham Inggs1-2/+5
Probably needed in generic USSD code.
2011-11-14huawei: pad USSD requests if necessaryGraham Inggs1-0/+10
ModemManager currently encodes the USSD command *141*0# (for MTN South Africa) as "AA182DA6828D00". While this works on some modems, for example the E1820, other modems, for example the E160, require USSD commands that are a multiple of 7 characters long to be padded with 0x0d. Huawei Mobile Partner dashboard software for Windows encodes *141*0# as "AA182DA6828D1A" which works on both the E1820 and the E160. The attached patch pads the USSD command with 0x0d before encoding if it is a multiple of 7 characters long.
2011-10-12huawei: Gobi devices should be driven by gobi not huawei (bgo #660998)Dan Williams1-1/+6
2011-09-28zte: update port hints for Onda MSA110 and othersDan Williams1-0/+15
2011-09-27core: ensure that GMatchInfo and GRegex objects are freed properlyNathan Williams8-16/+27
In particular, g_regex_match() and g_regex_match_full() allocate a match_info structure on both success and failure, so calling g_match_info_free() only in the success case is insufficient. BUG=None TEST=Inspection Change-Id: Iea76b5b5dc3ec48120e15601a5e2dd45322133d8
2011-08-25nokia: use E1 E0 when initializing the modemAleksander Morgado2-0/+31
Passing E1 and E0 afterwards seems to properly disable the echo in Nokia modems (N900 and C7 at least)
2011-08-25mbm: add more Ericsson and Dell vid/pidsTorgny Johansson1-0/+24
Add the vid/pid for Ericsson H5321gw/w, F5321gw/w, C5621gw/w, C3304w and Dell DW5560.
2011-08-19api: use common ModemManager.h for API, core and pluginsAleksander Morgado2-23/+62
2011-08-14core: when probing mark ports as AT capable tooDan Williams1-0/+2
On a ZTE MF626, sometimes the aux port will respond only with "ERROR" to probing commands (while the SIM is starting up) and previously we'd lose the port because we were only looking for valid probe responses. But if the port returns ERROR or CME ERROR etc we know it's an AT port and that we can use it once we've gotten the type response (CDMA or GSM) from the main port.
2011-08-02sierra: fix possible double-freeDan Williams1-1/+1
Need to reset password to NULL after freeing it.
2011-08-02mbm: don't flash serial ports on disconnect (bgo #650740)Dan Williams1-6/+23
The F5521gw resets various port properties like echo when the port is flashed, which was happening on disconnect. Since MM had already turned of echo with ATE0, and the AT parser in-use expected no echo, this confused MM when the port magically started echoing commands back. We don't need flashing on the Ericsson devices because there will always be a free AT port even if PPP is used for a secondary PDP context, so we can just skip flashing entirely for these devices.
2011-07-25option/hso: check generic access tech first, then specific techDan Williams1-23/+107
During the explicit access technology check, the plugin would request specific 2G (OCTI) and 3G (OWCTI) technologies explicitly. Some devices (like Nozomi) don't support the AT_OWCTI command, which leaves us with only AT_OSSYS for determining whether the device is registered with the 3G network or the 2G network. So like the unsolicited mode change handling code, when requesting access technology explicitly, ask for generic 2G/3G tech first, and then get the specific tech. If the device doesn't support explicit 3G tech then at least we have the generic 3G tech from OSSYS to use.
2011-07-25option: plugin is supposed to support Nozomi devices tooDan Williams1-4/+5
The Nozomi cards were early CardBus devices that used a direct PCI interface (instead of the more usual PCI<->USB controller) and the 'nozomi' kernel driver. They use the same command set as most other early Option NV modems. Nozomi was always supposed to be driven by the option plugin, but apparently that got broken when adding some of the driver/vendor checks.
2011-07-21zte: skip hex encoding (bgo #652682)Guido Günther1-1/+24
2011-07-21huawei: implement ussd encoding/decodingGuido Günther1-2/+49
Huawei wants the USSD as packed GSM.
2011-07-07Revert "cinterion: bail earlier if the plugin doesn't support the port"Dan Williams1-17/+0
This reverts commit 1e1bfbf1d808e557441afdae44447af457dae7ff. Aleksander says this might break RS232<->USB converter connected Cinterion modems, so we'll need to handle this issue another way.
2011-07-06cinterion: bail earlier if the plugin doesn't support the portDan Williams1-0/+17
Caused a crash with the Sierra plugin due to an assertion failure; the Cinterion plugin shouldn't claim to possibly support ports it knows it won't support. In this case, it claimed to support Sierra modems, so it would try to run probing after Sierra had done so. Ideally this should work, but for now just make sure the Cinterion plugin doesn't claim to support these ports when it knows it doesn't.
2011-07-06nokia: N900 doesn't really need additional inter-character timeDan Williams1-4/+0
See 46d757faa768db7d7bb23d51cc2af3196f7a7e30: gsm: send init command twice to make the N900 happy (rh #583691) (lp:765516) for what I think is the real workaround for this bug.
2011-07-06cinterion, wavecom: update copyright infoAleksander Morgado8-8/+16
2011-07-05gobi: support access technology reportingDan Williams1-0/+53
Obviously only works while disconnected since the Gobi devices only provide one AT-compatible tty.
2011-06-30Merge remote-tracking branch 'lanedo/power-up-check-needed'Aleksander Morgado3-50/+267
2011-06-30samsung: add product ID for the Y3400 module.Eric Shienbrood1-1/+1
The Y3400 is functionally nearly identical to the Y3300.
2011-06-22cinterion: always try to use RTS/CTS flow controlAleksander Morgado1-0/+39
Otherwise, power-up after going to standby will not work properly
2011-06-22cinterion: enable power-off command to go to sleep/standby modeAleksander Morgado1-5/+92
AT+CFUN=4 will be used when available to go to standby mode. If not supported, (as in EGS5) AT+CFUN=7 will be used instead, which enables a CYCLIC SLEEP mode. Flow control setup was updated to RCS/CTS so that waking up from sleep mode works properly.
2011-06-22sierra: do not send power-up command if not neededAleksander Morgado1-0/+60
2011-06-22wavecom: enable power-off command to go to sleep/standby modeAleksander Morgado1-0/+9
AT+CFUN=4 will be used to go to standby mode.
2011-06-22wavecom: try to power-up without rebootingAleksander Morgado1-4/+4
Using AT+CFUN=1,0 so that we request to avoid resetting (<rst>=0). Works properly when powering up after having put the modem in standby mode with AT+CFUN=4. Note that the power-up command will only be sent if the check to see if power-up is needed requests it.
2011-06-22wavecom: do not send power-up command if not neededAleksander Morgado1-41/+63
2011-06-14build: place together samsung plugin compilation optionsAleksander Morgado1-3/+3
2011-06-14cinterion: check probed caps from supports taskAleksander Morgado1-0/+1
2011-06-13icera: report connected access technology when connectedEric Shienbrood1-2/+14
The NWSTATE field reports both available access technology and the actual access technology in-use when a PS connection is active, so report the actual access tech when it's available.
2011-06-09icera: request specific network error codes on connect errorsEric Shienbrood1-9/+42
For connection failures, get additional error detail. Currently, the only error codes that are mapped are the 3GPP TS 24.008 codes for "Unknown or missing access point name" and "Requested service option not subscribed" (which is sometimes returned for an invalid APN). (random fixes and cleanups by dcbw)
2011-06-09build: ensure Samsung plugin includes common Icera codeEric Shienbrood1-0/+3
Otherwise make can't find build-time dependencies.
2011-06-09icera: add more access technology stringsEric Shienbrood1-3/+5
2011-06-09samsung: disable should use CFUN=4Eric Shienbrood1-2/+6
CFUN=4 disables the radios but still allows useful operations like getting PIN lock status. So use that instead.
2011-06-06plugins: propagate cached probing result to supports taskAleksander Morgado18-81/+136
We need to ensure that the supports task always has the results of the probing, no matter if the probing was just launched by the plugin grabbing the port, or by a previous plugin. We do this during supports_port(), by propagating to the supports task any possible previously cached probing results.
2011-06-06cinterion: set modem disabled if 3 consecutive AT commands get timed outAleksander Morgado1-0/+1
2011-06-06cinterion: enable reprobing on ports without cached capabilitiesAleksander Morgado1-2/+6
2011-06-06cinterion: always sort last the pluginAleksander Morgado1-0/+1
This is because the cinterion plugin can handle RS232 modes, and checking support for them needs to have the vendor ID probed with AT commands, so probing is almost always issued in this plugin. By sorting last, we let other plugins check support first.
2011-06-06cinterion: handle RS232 modemsAleksander Morgado1-31/+77
2011-06-06cinterion: override CMER enabling commandAleksander Morgado1-0/+11
2011-06-06cinterion: override SMS indications setup commandsAleksander Morgado1-0/+46
2011-06-06cinterion: if modem removed don't process responseAleksander Morgado1-8/+51