Commit Graph

2874 Commits

Author SHA1 Message Date
Andrzej Zaborowski 516a9b06c5 Add __ofono_sms_submit for other atoms to submit SMs. 2010-07-08 14:27:33 -05:00
Andrzej Zaborowski 6de5b7f5bb stkutil: Timer Value is conditional, not optional.
Make the parser check that the value is present when necessary,
so that stk.c doesn't have to check this.
2010-07-08 14:27:33 -05:00
Andrzej Zaborowski c451994139 sktutil: Use the Mandatory flag in parse_dataobj.
We need to look at the Mandatory flag and not at the Minimum flag
when parsing CTLVs.  The Minimum flag is important when encoding CTLVs
because CR bit is set according to it.
2010-07-08 14:27:33 -05:00
Andrzej Zaborowski 23c5f28569 Add Dbus interface names for STK. 2010-07-08 14:27:33 -05:00
Andrzej Zaborowski de587870d2 stk: Handle ENVELOPEs in a queue, retry on sim busy.
Some envelope types need to be retried when sim reports busy status.
Then envelopes such as Event Download need to be returned in the
order of the event occurences, so need to be handled in a queue.
2010-07-08 14:27:33 -05:00
Andrzej Zaborowski 79372d26f5 atmodem: Make sim operations return sim error codes. 2010-07-08 14:27:33 -05:00
Andrzej Zaborowski 30e16fb5ca Add OFONO_ERROR_TYPE_SIM for negative SIM statuses
Expected value of the .error field is status word 1 and status word 2
in bits 8:15 and 0:7 of the field.
2010-07-08 14:27:33 -05:00
Andrzej Zaborowski 9d46dbc7a5 stk: Handle MoreTime command as a no-op 2010-07-08 14:27:33 -05:00
Andrzej Zaborowski 4344c7423f mbmmodem: End session on *STKEND. 2010-07-08 14:27:33 -05:00
Andrzej Zaborowski cbdb7278ac stk: Utilities for proactive command/envelope handling. 2010-07-08 14:27:33 -05:00
Denis Kenzior e6d6f802a5 smsutil: Fix valgrind complaint
SMS cannot be split over GSM extension chars, however on the last
segment this code was causing us to overflow the buffer and resulted in
valgrind complaining.
2010-07-08 14:27:33 -05:00
Denis Kenzior 98a8b4ecff test-sms: Fix a memory leak 2010-07-08 14:27:33 -05:00
Denis Kenzior f0a343e482 TODO: Add CDIP support task 2010-07-08 14:27:32 -05:00
Marcel Holtmann 0cb1ead37e Release 0.24 2010-07-07 17:41:05 -03:00
Pekka Pessi e1733df4b5 TODO: Voicecall gaps 2010-07-07 11:45:17 -05:00
Pekka Pessi 00d4fbf5b0 doc: clarify VoiceCallManager SendTones method 2010-07-07 11:33:20 -05:00
Zhenhua Zhang b3c35db955 gatppp: Unset disconnect function when unref PPP
Unset IO disconnect function when we try to destroy GAtPPP instance.
After freeing the instance, the IO disconnect function should not be
invoked.
2010-07-07 11:26:55 -05:00
Zhenhua Zhang e70b1f0abd gatserver: Restore GAtServer disconnect handling
Restore GAtServer disconnect handling when resuming a server session
2010-07-07 11:26:55 -05:00
Zhenhua Zhang 1badaf741a test-server: Refactor set_raw_mode
Rename variable 'options' to 'ti' and use sizeof(ti).
2010-07-06 22:30:32 -03:00
Zhenhua Zhang 2d219d37f9 gatserver: Don't free twice after user disconnect
It's possible to free gatserver in user disconnect function. So we
should not free it again.
2010-07-06 11:24:44 -05:00
Zhenhua Zhang 4ec07e9443 test-server: Use cfmakeraw to set TTY raw mode
Use cfmakeraw to disable echoing and special characters processing. If
we don't turn off ICRNL, TTY layer translates \r\n to \n\n.
2010-07-06 09:49:48 -03:00
Zhenhua Zhang b86b2d3299 gatppp: Check ppp instance before unref it 2010-07-06 09:47:15 -03:00
Marcel Holtmann 07b26d2dee Also add another rule for Pekka to .mailmap 2010-07-05 10:25:33 -03:00
Marcel Holtmann e95ccfff97 Update .mailmap rules 2010-07-05 10:23:52 -03:00
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