Andrzej Zaborowski
b450efafec
atmodem: Don't unregister *EPEV in *EPEV handler.
...
Handlers are called when looping over the unsolicited responses hash,
registering or unregistering modifies that hash and confuses glib.
2010-06-29 13:59:13 -05:00
Zhenhua Zhang
8246463ef3
atmodem: Update to the new PPP API
2010-06-28 10:19:32 -05:00
Denis Kenzior
52da988816
atmodem: Add CGSMS support to sms driver
2010-06-25 14:25:46 -05:00
Denis Kenzior
7f1a923ebf
hso: Don't query tech if not registered or roaming
...
{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-24 20:54:36 -05:00
Denis Kenzior
054ed2653a
atmodem: Support CDS indicators for MBM
...
MBM does not advertise support for CNMA, yet only supports CDS style
notifications which do not need to be acknowledged.
2010-06-21 15:21:40 -05:00
Yang Gu
c80432bfde
Refactor ussd parser
2010-06-21 09:19:01 -05:00
Denis Kenzior
681aaef1ab
atmodem: Use a switch/case in sim.c
2010-06-18 14:24:18 -05:00
Andrzej Zaborowski
a2dc7dfee0
atmodem: Add PIN entry quirk for mbm.
...
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-18 14:14:39 -05:00
Andrzej Zaborowski
713805ae57
mbmmodem: Allow no response data for envelope.
...
Partially reverts
http://git.kernel.org/?p=network/ofono/ofono.git;a=commitdiff;h=f98c6dc91702c0d14c0afa2a4e32102d3105568d
2010-06-18 14:11:11 -05:00
Denis Kenzior
412ed596b9
Fix: potential to crash in atmodem
...
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-17 04:26:16 -05:00
Marcel Holtmann
6719c0b93f
Use PROFILE DOWNLOAD to detect SIM Toolkit support for MBM
2010-06-16 10:38:08 +02:00
Denis Kenzior
5a1c7eef08
atmodem: Couple tiny style fixes
2010-06-14 12:46:11 -05:00
Daniel Wagner
b7401489b5
Report cell technology capability for Option HSO modems
...
Option modem use OCTI and OUWCTI commands
for reporting the cell capability.
2010-06-14 12:46:11 -05:00
Marcel Holtmann
f566935f7a
Fix memory leak introduced by HSO quirk
2010-06-13 11:46:29 +02:00
Marcel Holtmann
66c50b6a72
Add nasty quirk to allow HSO devices to read network code length
...
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-13 08:10:13 +02:00
Denis Kenzior
76dc7e4acd
atmodem: Shutdown ppp cleanly on remove
...
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-11 09:20:05 -05:00
Denis Kenzior
c3dddcb5b3
atmodem: Always unref ppp when context is down
2010-06-11 09:20:05 -05:00
Marcel Holtmann
45c1bcb1d9
Disable CNMA support for Novatel based devices
2010-06-10 21:06:48 -07:00
Denis Kenzior
6c8d2f0e5b
atmodem: Allow ME & SM for status report store
2010-06-10 22:23:05 -05:00
Denis Kenzior
a128cbff8b
atmodem: Force CDSI delivery for Novatel devices
2010-06-10 20:21:33 -05:00
Denis Kenzior
d8e7a7b5e3
atmodem: Add support for status report via CDSI
2010-06-10 20:13:50 -05:00
Denis Kenzior
39391cf32b
atmodem: Use atutil based functions
2010-06-10 20:08:10 -05:00
Denis Kenzior
1b36d1cd43
atmodem: Add utility for parsing CMTI/CDSI/CBMI
2010-06-10 20:06:26 -05:00
Denis Kenzior
5a883d1c76
atmodem: Register for notifications after CMGL
2010-06-10 18:43:30 -05:00
Denis Kenzior
150c1e753f
atmodem: Split out the +CPMS sender
...
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-10 18:41:29 -05:00
Gustavo F. Padovan
160161e6bc
Remove hfpmodem's header guard
2010-06-10 16:17:21 -05:00
Marcel Holtmann
2aeb7df627
And some more minor coding style cleanup in SMS driver
2010-06-09 19:13:57 -07:00
Marcel Holtmann
1125ffa7f6
Fix coding style for one comment in SMS driver
2010-06-09 19:12:24 -07:00
Marcel Holtmann
a774d9ed49
Add quirk for Qualcomm issues with setting CBS topic ranges
2010-06-09 18:40:59 -07:00
Marcel Holtmann
88d083c4fd
Coding style fix for the PIN type table
2010-06-09 18:23:05 -07:00
Denis Kenzior
1d8bb1bab6
atmodem: Fix CPUC parser
...
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-07 20:36:40 -05:00
Denis Kenzior
588b689d2b
netreg: whitespace style
2010-06-07 19:06:57 -05:00
Denis Kenzior
6a480bb861
netreg: Add Huawei RSSI unsolicited callback
2010-06-07 19:06:36 -05:00
Denis Kenzior
11c8156543
atmodem: Optimize cops queries
...
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-07 12:57:50 -05:00
Marcel Holtmann
45ba3b9a7c
Add special SMS handling for Huawei based devices
2010-06-06 18:21:30 -07:00
Marcel Holtmann
f1c209d973
Move AT_ODO quirk into HSO driver instead of network registration
2010-06-06 15:27:34 -07:00
Marcel Holtmann
360abb0f5b
Use hsomodem instead of hso for Option HSO GPRS atom driver
2010-06-06 15:20:48 -07:00
Marcel Holtmann
30b054d0e0
Add support for Option specific radio settings
2010-06-06 15:18:57 -07:00
Marcel Holtmann
5340901ad3
Use unquoted strings for cell information of Novatel devices
2010-06-06 13:14:57 -07:00
Marcel Holtmann
45bf4cf396
Add support for handling CNTI=0 request with Novatel devices
2010-06-06 13:12:37 -07:00
Marcel Holtmann
5b504e8a0d
Add support for Novatel specific radio settings
2010-06-06 11:08:16 -07:00
Marcel Holtmann
e2024acebd
Add Novatel Wireless (NW) specific modem driver
2010-06-06 11:05:48 -07:00
Denis Kenzior
2b1c433daa
hso: Enable OUWCTI notifications
2010-06-04 14:21:58 -05:00
Denis Kenzior
56d14e1fe1
atmodem: Put some common code into a utility
2010-06-04 14:21:57 -05:00
Pasi Miettinen
6220c01f4a
Change in at_cds_notify for status report
2010-06-04 14:21:57 -05:00
Marcel Holtmann
50a7d3d741
Send OWCTI query when bringing up Option based devices
2010-06-04 12:17:35 -07:00
Marcel Holtmann
1f5432abd6
Use AT_OUWCTI instead of AT_OWCTI as expected
...
The Option firmware is so funny. It has a typo in the AT command :)
2010-06-04 12:13:27 -07:00
Marcel Holtmann
a4fda8a378
Enable Option specific OWCTI unsolicited notifications
2010-06-04 12:08:21 -07:00
Marcel Holtmann
48d210bac6
The ack pdu support is not working on Novatel or Option devices
2010-06-03 18:15:27 -07:00
Marcel Holtmann
23d97f2c0a
Quirk SMS handling for Novatel based devices
...
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-03 08:54:08 -07:00