Marcel Holtmann
e38f834807
Add .mailmap file to fix Luiz's name spelling in git shortlog
2010-07-05 10:18:25 -03:00
Inaky Perez-Gonzalez
b2739c05ab
documentation: add note about referencing standards
2010-07-02 15:32:20 -05:00
Andrzej Zaborowski
3ce1f11446
test-stkutil: Fix always true condition.
2010-07-02 14:50:21 -05:00
Denis Kenzior
b7badc74ad
test-stkutil: Fix some memory leaks
2010-07-02 14:50:05 -05:00
Andrzej Zaborowski
365183d5a0
stkutil: Move scaddr field to gsm_sms
2010-07-02 14:13:45 -05:00
Zhenhua Zhang
bf562fd639
huawei: Add Huawei EM770 modem support
...
Huawei EM770W is a 3G WCDMA modem that supports HSPA/UMTS/EDGE/GPRS/GSM
data service and WCDMA/GSM short message services. It also has voice
call capability that supports both 2G and 3G network.
2010-07-02 10:40:13 -05:00
Zhenhua Zhang
7d42e4782d
huawei: Remove existing Huawei EM770 plugin
2010-07-02 10:38:59 -05:00
Denis Kenzior
494ce09c49
huawei: cleanup warnings from the previous patch
2010-06-29 14:44:20 -05:00
Kalle Valo
19945aba6c
PPP GPRS context is now done, update documentation
2010-06-29 14:03:00 -05:00
Kalle Valo
39382730d7
huawei: reopen the GPRS context on hup
...
Huawei always closes the tty port after PPP disconnect. Handle this in
huawei plugin, similarly as done with novatel. Now there's no need
to unplug the modem after disconnection.
Tested with Huawei E1552.
Based on a patch by Marcel Holtmann:
commit 0329a6ceaf
Author: Marcel Holtmann <marcel@holtmann.org>
Date: Mon Jun 7 02:36:12 2010 -0700
Reopen the GPRS context channel when the modem closes it after PPP
2010-06-29 14:01:16 -05:00
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
Pekka Pessi
e8965f5f8c
mbm: use CPIN? to check if SIM is missing
...
AT+CRSM=242 is not supported by all mbm models.
2010-06-29 12:24:51 -05:00
Pekka Pessi
7d4ae198d0
Documented Present property in sim-api.txt.
2010-06-29 12:21:44 -05:00
Denis Kenzior
a92d37454a
gsmdial: Wait for a no carrier before sending CFUN
2010-06-29 12:15:44 -05:00
Denis Kenzior
3a6b3bcd0c
test-server: Send a NO_CARRIER when ppp is done
2010-06-29 12:12:42 -05:00
Denis Kenzior
2955c206e4
test-server: Update to the new API
2010-06-29 12:01:34 -05:00
Denis Kenzior
674625ebe2
ppp: Don't accept 0 ip-addr/dns1/dns2
2010-06-29 11:55:18 -05:00
Denis Kenzior
820b1f55c8
ppp: Refactor server-side API
...
The biggest update here is that the server needs to be in dormant mode
by default, so as not to send a Configure-Req to the peer until the peer
is ready. This requires adding special constructor for LCP to
initialize it to Stopped state instead of initial state.
Along with this, we pass the server local IP directly to the ppp server
constructor.
2010-06-29 11:53:11 -05:00
Denis Kenzior
969862337a
test-server: Update to the new API
2010-06-29 11:50:25 -05:00
Denis Kenzior
d7c0640412
ppp: Tweak set_server_info API some more
2010-06-29 11:49:40 -05:00
Denis Kenzior
295270b4be
hdlc: Stop recording packets to stdout (fd = 0)
2010-06-29 11:46:40 -05:00
Denis Kenzior
aca0fdf87f
hdlc: Don't bother recording empty packets
2010-06-29 11:46:20 -05:00
Zhenhua Zhang
1afd51a8c7
gsmdial: Configure network interface for PPP
2010-06-28 17:39:23 -05:00
Zhenhua Zhang
0725aba03f
test-server: Configure network interface
...
Require ROOT priviledge to:
1. Run external command to configure and bring up network interface.
2. Enable kernel IP forwarding.
2010-06-28 17:39:18 -05:00
Denis Kenzior
90d240820b
ppp: Tweak the set_server_info API
2010-06-28 17:38:54 -05:00
Zhenhua Zhang
b6601bfeed
test-server: Add PPP server support
...
So that gsmdial and wvdial could talk to test-server and establish PPP
connection.
2010-06-28 16:37:20 -05:00
Denis Kenzior
ae24477801
ppp: Refactor server RCR action
...
We need to generate the Conf-Rej / Conf-Nak in the same order as the
client sent us.
2010-06-28 15:58:03 -05:00
Denis Kenzior
c5c7a229d2
ppp: Refactor client RCR action
2010-06-28 15:30:15 -05:00
Denis Kenzior
d5c963f5d8
ppp: Simplify the logic by re-using code
2010-06-28 11:15:44 -05:00
Denis Kenzior
cff81df606
ppp: Minor style tweaks
2010-06-28 10:21:33 -05:00
Zhenhua Zhang
8246463ef3
atmodem: Update to the new PPP API
2010-06-28 10:19:32 -05:00
Zhenhua Zhang
8be0707ab0
gsmdial: Update to the new API
2010-06-28 10:19:14 -05:00
Zhenhua Zhang
588db02354
gatppp: Add PPP server extension
...
1. Add interface to set PPP server info by g_at_ppp_set_server_info.
2. Pass local and peer address through IPCP handshaking.
2010-06-28 10:17:58 -05:00
Denis Kenzior
ca41d63a30
sms: Update doc about the default Bearer setting
2010-06-25 17:53:12 -05:00
Denis Kenzior
20da18ca8b
sms: Tweak the Bearer API
2010-06-25 17:49:36 -05:00
Denis Kenzior
04a25a4058
Update TODO & overview.txt
2010-06-25 14:26:27 -05:00
Denis Kenzior
52da988816
atmodem: Add CGSMS support to sms driver
2010-06-25 14:25:46 -05:00
Denis Kenzior
8ff599c691
sms: Add support for SMS Bearer settings
2010-06-25 14:25:46 -05:00
Denis Kenzior
11cc3ee922
sms: Add driver API for SMS bearer settings
2010-06-25 14:25:46 -05:00
Denis Kenzior
a28c22e27f
TODO: Add owner
2010-06-25 14:25:45 -05:00
Denis Kenzior
f3e0e466c7
gprs: Fix to attachment race condition
...
Sometimes we get unsolicited attachment status before our query
finishes. If the client is fast enough they can attempt to attach
and get the AttachInProgress error
2010-06-25 14:19:08 -05:00
Denis Kenzior
bd8930579b
sms: Update API with UseDeliveryReports property
2010-06-25 14:12:32 -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
17de318c76
sms: minor style fix
2010-06-24 14:24:00 -05:00
Denis Kenzior
10e3ca440b
sms: Don't bother setting SCA if we can't query
2010-06-24 14:13:04 -05:00
Zhenhua Zhang
28b2c32dc7
ppp: Fix incorrect packet length for little-endian
...
packet->length is in TCP/IP network byte order. It needs to call ntohs()
to convert to host byte order, which is little-endian.
2010-06-23 16:45:28 -05:00
Andrzej Zaborowski
557f4cdb16
stkutil: Alpha Id is optional for Select Item.
2010-06-23 14:45:46 -05:00
Andrzej Zaborowski
ab7f88233d
stkutil: Refactor command parser error handling
...
When parsing the full command fails but Command Details has been parsed,
return a struct stk_command containing this information and the type of
parsing problem found. We need the command details to be able to
even respond to the command.
This patch also makes the parser skip over unknown data objects found
in the BER-TLV, if they don't have Comprehension Required set.
2010-06-23 14:23:06 -05:00
Marcel Holtmann
1fedd096a0
Check sanity the MNC length value from the SIM card
...
In case the SIM entry is wrong or we force reading of it, nasty things
like this can happen:
ofonod[12456]: Control:> AT+CRSM=176,28589,0,0,4\r
ofonod[12456]: Control:< +CRSM: 144,0,"00FFFF"\r\n\r\nOK\r\n
*** buffer overflow detected ***: ./src/ofonod terminated
======= Backtrace: =========
/lib64/libc.so.6(__fortify_fail+0x37)[0x3e42efb417]
/lib64/libc.so.6[0x3e42ef9310]
/lib64/libc.so.6(__strncpy_chk+0x17b)[0x3e42ef85cb]
2010-06-22 17:21:03 +02:00
Denis Kenzior
6f08920c1a
Fix huawei udev rules
2010-06-22 09:46:25 -05:00