summaryrefslogtreecommitdiffstats
path: root/plugins/huawei.c
AgeCommit message (Collapse)AuthorFilesLines
2013-04-01huawei: Use AlwaysOnline for CDMA modemsForest Bond1-0/+7
2012-01-12huawei: Select USSD atom driver based on firmware modeMarcel Holtmann1-8/+8
2012-01-12huawei: Setup CSCS after SIM card has been detectedMarcel Holtmann1-10/+10
2012-01-11huawei: Print and store NDIS support resultsMarcel Holtmann1-1/+39
2012-01-11huawei: Refactor logic slightlyDenis Kenzior1-13/+5
2012-01-11huawei: Create sim atom for cdma modemsGuillaume Zajac1-0/+12
Don't create atom if sim is embedded. Atom will use "atmodem-noef" drivers to support PIN management and IMSI retrieval.
2012-01-11huawei: Setup CSCS on both portsDenis Kenzior1-0/+10
2012-01-11huawei: Check for NDIS vs modem dial-up modeMarcel Holtmann1-0/+39
2012-01-06huawei: Adapt to changed atom driver name for CDMA netregMarcel Holtmann1-2/+1
2012-01-06huawei: Use CFUN=5 for CDMA offline state handlingMarcel Holtmann1-0/+6
The Huawei CDMA modems only support CFUN=5 for offline mode and so enforce this one if CDMA support has been detected. Even if the modem would indicate AT^RFSWITCH support.
2012-01-06huawei: Handle modems with ROM based SIM cardsMarcel Holtmann1-0/+2
Some modem contain ROM based SIM cards indicated by SIM state 240 and these need to be treated as SIM present.
2012-01-06huawei: Create CDMA atoms if support has been detectedMarcel Holtmann1-0/+13
In case the modem supports CDMA (+CIS707-A capability), then enable CDMA atoms. However only enable if GSM support is not detected.
2012-01-06huawei: Create GSM/UMTS atoms only if support has been detectedMarcel Holtmann1-18/+30
2012-01-06huawei: Check for supported modem capabilities firstMarcel Holtmann1-2/+34
Use ATI and +GCAP response to determine supported modem capabilities and check if modem does support GSM.
2012-01-06huawei: Change state variable name for voice supportMarcel Holtmann1-4/+4
2011-08-04huawei: Check for AT^RFSWITCH support to determine offline commandMarcel Holtmann1-38/+8
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-04huawei: Add TOO MANY PARAMETERS terminatorMarcel Holtmann1-0/+1
2011-08-03huawei: Fix race condition with enable pollingMarcel Holtmann1-0/+4
2011-08-03huawei: Fix race condition with online enable pollingMarcel Holtmann1-0/+9
2011-07-29huawei: Fix stale PCUI channel after hot-unplugMarcel Holtmann1-0/+3
2011-07-29huawei: Style cleanup for commentsMarcel Holtmann1-10/+10
2011-07-29huawei: Shutdown the modem within disable callbackMarcel Holtmann1-1/+5
2011-07-28huawei: Complete rewrite to better support state transitionsMarcel Holtmann1-258/+284
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-27huawei: add a debug info to help debugging.Bertrand Aygon1-0/+2
2011-07-25huawei: Remove leftover from HasVoice flagMarcel Holtmann1-3/+0
2011-07-25huawei: Remove broken handling for NDIS supportMarcel Holtmann1-26/+11
2011-07-24huawei: Check supported offline mode and fix error behaviorMarcel Holtmann1-23/+76
2011-07-24huawei: Set slave channel for NW DEACT notificationsMarcel Holtmann1-0/+2
2011-07-24huawei: Use AT&C0 to disable data carrier detectMarcel Holtmann1-111/+25
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-11huawei: Use correct command for setting offline modeMarcel Holtmann1-2/+2
According to some Huawei related documentation it is better to use AT+CFUN=7 for offline mode instead of AT+CFUN=5.
2011-06-02huawei: NDIS port doesn't depend on modem portCaiwen Zhang1-4/+3
When creating the NDIS gprs context, do not check the existence of the modem port.
2011-06-02huawei: Minor tweaks to debug messagesDenis Kenzior1-2/+4
2011-06-02huawei: reopen once if open device failedCaiwen Zhang1-1/+35
Sometimes when we try to open the modem (PPP) device, it may fail. If opening the tty failed, retry once one second later.
2011-05-27huawei: Remove usage of unused netreg variableMarcel Holtmann1-3/+1
2011-04-26huawei: Switch to offline mode only if offlineMartin Xu1-1/+2
2011-04-26huawei: Check that the modem device is openMartin Xu1-2/+3
Don't create the gprs atom if the modem device was not opened successfully. Otherwise ofonod will crash.
2011-03-15huawei: Fix huawei_disconnect function issueMartin Xu1-9/+32
huawei_disconnect is used to recovery the io and gprs context when io error happends, see commit 39382730d7758b093ca6271f4e9dea875fa04b3a However, io error not only happends at PPP disconnect, in theory it can happends at any situation. I also observed that it happens when modem go into offline mode at my Huawei EM770W modem. in this case, gprs should not be reopened.
2011-03-11ssn: remove SSN atom completelyAndras Domokos1-2/+0
2011-03-04huawei: do not check for NULL pointerLucas De Marchi1-4/+0
cb_data_new() uses g_new0(), hence there's no need to check the return value being NULL.
2011-01-29huawei: Move SMS support into post_sim stageMarcel Holtmann1-1/+2
2011-01-19huawei: do not query sim state on pre_simLucas De Marchi1-3/+0
Sim state is already known after modem is enabled and there's no need to query it again. Before this patch, query_sim_state() was called upon huawei_enable() and huawei_pre_sim(). Both functions might call notify_sim_state() with a valid state. Hence we could eventually end up sending AT+CFUN=5 command twice.
2011-01-19huawei: do not set timer more than onceLucas De Marchi1-1/+2
If a "^SYSINFO" arrives after the timer for query_sim_locked() has been set up, it'd would set a new timer, signaling a sim state change more than once.
2011-01-10huawei: use VENDOR_HUAWEI quirk on sim creationLucas De Marchi1-1/+1
2010-12-21huawei: cancel poll when going to a valid stateLucas De Marchi1-0/+5
2010-12-21huawei: Move radio_settings to post_simDenis Kenzior1-3/+1
2010-12-21huawei: Add support for radio settingsLucas De Marchi1-0/+4
2010-12-21huawei: fix SIM state notification when lockedLucas De Marchi1-0/+28
When SIM is locked, huawei modem does not send any notification about SIM state change because it does not differentiate 'invalid' from 'locked'. In order to be able to unlock the sim, this patch forces a notification of a valid state after a timeout.
2010-12-11huawei: Pass the HUAWEI vendor ID to gprs driverDenis Kenzior1-1/+3
2010-11-29plugins: explicitly compare pointers to NULLLucas De Marchi1-5/+5
This patch was generated by the following semantic patch (http://coccinelle.lip6.fr/) // <smpl> @fix disable is_null,isnt_null1@ expression *E; @@ - !E + E == NULL // </smpl>
2010-10-13huawei: Fixup whitespace corruptionDenis Kenzior1-2/+2