Pekka Pessi [Mon, 28 Jun 2010 18:20:12 +0000 (21:20 +0300)]
Documented Present property in sim-api.txt.
Denis Kenzior [Tue, 29 Jun 2010 17:15:44 +0000 (12:15 -0500)]
gsmdial: Wait for a no carrier before sending CFUN
Denis Kenzior [Tue, 29 Jun 2010 17:12:42 +0000 (12:12 -0500)]
test-server: Send a NO_CARRIER when ppp is done
Denis Kenzior [Tue, 29 Jun 2010 17:01:34 +0000 (12:01 -0500)]
test-server: Update to the new API
Denis Kenzior [Tue, 29 Jun 2010 16:55:18 +0000 (11:55 -0500)]
ppp: Don't accept 0 ip-addr/dns1/dns2
Denis Kenzior [Tue, 29 Jun 2010 16:53:11 +0000 (11:53 -0500)]
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.
Denis Kenzior [Tue, 29 Jun 2010 16:50:25 +0000 (11:50 -0500)]
test-server: Update to the new API
Denis Kenzior [Tue, 29 Jun 2010 16:49:40 +0000 (11:49 -0500)]
ppp: Tweak set_server_info API some more
Denis Kenzior [Tue, 29 Jun 2010 16:46:40 +0000 (11:46 -0500)]
hdlc: Stop recording packets to stdout (fd = 0)
Denis Kenzior [Tue, 29 Jun 2010 16:46:20 +0000 (11:46 -0500)]
hdlc: Don't bother recording empty packets
Zhenhua Zhang [Fri, 25 Jun 2010 03:19:09 +0000 (11:19 +0800)]
gsmdial: Configure network interface for PPP
Zhenhua Zhang [Fri, 25 Jun 2010 03:19:08 +0000 (11:19 +0800)]
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.
Denis Kenzior [Mon, 28 Jun 2010 22:38:54 +0000 (17:38 -0500)]
ppp: Tweak the set_server_info API
Zhenhua Zhang [Fri, 25 Jun 2010 03:19:07 +0000 (11:19 +0800)]
test-server: Add PPP server support
So that gsmdial and wvdial could talk to test-server and establish PPP
connection.
Denis Kenzior [Mon, 28 Jun 2010 17:13:24 +0000 (12:13 -0500)]
ppp: Refactor server RCR action
We need to generate the Conf-Rej / Conf-Nak in the same order as the
client sent us.
Denis Kenzior [Mon, 28 Jun 2010 16:16:20 +0000 (11:16 -0500)]
ppp: Refactor client RCR action
Denis Kenzior [Mon, 28 Jun 2010 16:15:44 +0000 (11:15 -0500)]
ppp: Simplify the logic by re-using code
Denis Kenzior [Mon, 28 Jun 2010 15:21:33 +0000 (10:21 -0500)]
ppp: Minor style tweaks
Zhenhua Zhang [Fri, 25 Jun 2010 03:19:05 +0000 (11:19 +0800)]
atmodem: Update to the new PPP API
Zhenhua Zhang [Fri, 25 Jun 2010 03:19:05 +0000 (11:19 +0800)]
gsmdial: Update to the new API
Zhenhua Zhang [Fri, 25 Jun 2010 03:19:05 +0000 (11:19 +0800)]
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.
Denis Kenzior [Fri, 25 Jun 2010 22:53:12 +0000 (17:53 -0500)]
sms: Update doc about the default Bearer setting
Denis Kenzior [Fri, 25 Jun 2010 22:49:36 +0000 (17:49 -0500)]
sms: Tweak the Bearer API
Denis Kenzior [Fri, 25 Jun 2010 19:24:10 +0000 (14:24 -0500)]
Update TODO & overview.txt
Denis Kenzior [Fri, 25 Jun 2010 19:21:48 +0000 (14:21 -0500)]
atmodem: Add CGSMS support to sms driver
Denis Kenzior [Fri, 25 Jun 2010 19:21:35 +0000 (14:21 -0500)]
sms: Add support for SMS Bearer settings
Denis Kenzior [Fri, 25 Jun 2010 19:20:23 +0000 (14:20 -0500)]
sms: Add driver API for SMS bearer settings
Denis Kenzior [Fri, 25 Jun 2010 19:25:22 +0000 (14:25 -0500)]
TODO: Add owner
Denis Kenzior [Fri, 25 Jun 2010 17:18:14 +0000 (12:18 -0500)]
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
Denis Kenzior [Fri, 25 Jun 2010 19:12:32 +0000 (14:12 -0500)]
sms: Update API with UseDeliveryReports property
Denis Kenzior [Fri, 25 Jun 2010 01:51:59 +0000 (20:51 -0500)]
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
Denis Kenzior [Thu, 24 Jun 2010 19:24:00 +0000 (14:24 -0500)]
sms: minor style fix
Denis Kenzior [Thu, 24 Jun 2010 19:13:04 +0000 (14:13 -0500)]
sms: Don't bother setting SCA if we can't query
Zhenhua Zhang [Wed, 23 Jun 2010 09:46:37 +0000 (17:46 +0800)]
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.
Andrzej Zaborowski [Wed, 23 Jun 2010 04:13:50 +0000 (06:13 +0200)]
stkutil: Alpha Id is optional for Select Item.
Andrzej Zaborowski [Tue, 22 Jun 2010 11:20:44 +0000 (13:20 +0200)]
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.
Marcel Holtmann [Tue, 22 Jun 2010 15:15:06 +0000 (17:15 +0200)]
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]
Denis Kenzior [Tue, 22 Jun 2010 14:46:25 +0000 (09:46 -0500)]
Fix huawei udev rules
Denis Kenzior [Tue, 22 Jun 2010 03:53:05 +0000 (22:53 -0500)]
hfp: Fix style issues
Gustavo F. Padovan [Sun, 20 Jun 2010 08:51:23 +0000 (05:51 -0300)]
hfp: use bluetooth helpers and remove similar code
Denis Kenzior [Tue, 22 Jun 2010 03:48:15 +0000 (22:48 -0500)]
bluetooth: Various style issues
Gustavo F. Padovan [Sun, 20 Jun 2010 08:51:22 +0000 (05:51 -0300)]
bluetooth: add PropertyChanged watch
This one is a bit diferent from the hfp.c one, so a separated patch for
it.
Gustavo F. Padovan [Sun, 20 Jun 2010 08:51:21 +0000 (05:51 -0300)]
bluetooth: add watches for service and adapters
Exactly the same code from hfp.c
Gustavo F. Padovan [Sun, 20 Jun 2010 08:51:20 +0000 (05:51 -0300)]
bluetooth: add device_properties_cb() and has_uuid()
Gustavo F. Padovan [Sun, 20 Jun 2010 08:51:19 +0000 (05:51 -0300)]
bluetooth: Move functions from hfp.c to bluetooth.c
The part that call device_properties_cb is commented to permit this patch
compile.
device_properties_cb() will be changed, so it will have separated patch.
Denis Kenzior [Mon, 21 Jun 2010 20:40:14 +0000 (15:40 -0500)]
storage: whitespace issue
Denis Kenzior [Mon, 21 Jun 2010 20:33:13 +0000 (15:33 -0500)]
smsutil: Fix up some comment style
Andrzej Zaborowski [Mon, 21 Jun 2010 08:41:10 +0000 (10:41 +0200)]
test-common: Avoid accessing an unitialised variable.
Fixes a segfault, reported by valrgind as:
[...]
==6300== Use of uninitialised value of size 4
==6300== at 0x8048B4D: test_invalid (test-common.c:81)
Andrzej Zaborowski [Mon, 21 Jun 2010 08:41:11 +0000 (10:41 +0200)]
stkutil: Remove obsolete comment.
Denis Kenzior [Mon, 21 Jun 2010 20:03:42 +0000 (15:03 -0500)]
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.
Denis Kenzior [Mon, 21 Jun 2010 18:39:17 +0000 (13:39 -0500)]
sms: Only emit property if value actually differs
Denis Kenzior [Mon, 21 Jun 2010 18:38:57 +0000 (13:38 -0500)]
test: Fix the no-argument case
Denis Kenzior [Mon, 21 Jun 2010 20:04:43 +0000 (15:04 -0500)]
unit: Add unit tests for status report assembly
Denis Kenzior [Mon, 21 Jun 2010 17:48:55 +0000 (12:48 -0500)]
smsutil: Take ton_npi into account in sr assembly
Denis Kenzior [Mon, 21 Jun 2010 17:42:23 +0000 (12:42 -0500)]
smsutil: More code cleanup
- Change the flow of the code a bit, in the case that all fragments have
been sent and an udelivered sr arrives, we can simply remove the node
and signal undelivered up
- We ignore temporary and temporary final status reports
Denis Kenzior [Mon, 21 Jun 2010 17:03:14 +0000 (12:03 -0500)]
smsutil: Make code flow easier to understand
Denis Kenzior [Mon, 21 Jun 2010 16:29:51 +0000 (11:29 -0500)]
smsutil: multiline comments to preferred style
Denis Kenzior [Mon, 21 Jun 2010 16:28:56 +0000 (11:28 -0500)]
smsutil: Minor code style & indentation fixes
Denis Kenzior [Mon, 21 Jun 2010 16:24:30 +0000 (11:24 -0500)]
sms: Fixup minor style issues with status reports
Pasi Miettinen [Thu, 17 Jun 2010 13:14:57 +0000 (16:14 +0300)]
sms: Status report notify
Denis Kenzior [Mon, 21 Jun 2010 16:20:56 +0000 (11:20 -0500)]
smsutil: memcpy is preferable to struct assignment
Denis Kenzior [Mon, 21 Jun 2010 16:18:26 +0000 (11:18 -0500)]
smsutil: Streamline flow of sr add_fragment
Denis Kenzior [Mon, 21 Jun 2010 20:20:10 +0000 (15:20 -0500)]
Fix: Make distcheck pass
No need to include history.h anyway
Denis Kenzior [Mon, 21 Jun 2010 20:11:30 +0000 (15:11 -0500)]
history: Make example_history use Delivery Reports
Pasi Miettinen [Thu, 17 Jun 2010 13:14:56 +0000 (16:14 +0300)]
history: API change for status report notify
Pasi Miettinen [Thu, 17 Jun 2010 13:14:54 +0000 (16:14 +0300)]
smsutil: Status report assembly
Denis Kenzior [Mon, 21 Jun 2010 14:32:33 +0000 (09:32 -0500)]
Mention Arun's contributions
Arun Ravindran [Fri, 18 Jun 2010 20:12:12 +0000 (23:12 +0300)]
Enabling PDP Context support in atmodem.
Zhenhua Zhang [Mon, 21 Jun 2010 01:49:19 +0000 (09:49 +0800)]
TODO: PPP server support owner
Zhenhua Zhang [Mon, 21 Jun 2010 09:25:39 +0000 (17:25 +0800)]
ppp: Fix leak in pppcp_send_protocol_reject
Free the reject pppcp packet after ppp_transmit.
Yang Gu [Thu, 17 Jun 2010 10:35:10 +0000 (18:35 +0800)]
Refactor ussd parser
Marcel Holtmann [Sat, 19 Jun 2010 18:17:05 +0000 (20:17 +0200)]
Add test script for scanning networks
Denis Kenzior [Fri, 18 Jun 2010 19:24:18 +0000 (14:24 -0500)]
atmodem: Use a switch/case in sim.c
Andrzej Zaborowski [Thu, 17 Jun 2010 13:42:14 +0000 (15:42 +0200)]
mbm: Use MBM vendor quirk of the sim driver.
Andrzej Zaborowski [Thu, 17 Jun 2010 13:42:13 +0000 (15:42 +0200)]
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.
Andrzej Zaborowski [Thu, 17 Jun 2010 13:42:12 +0000 (15:42 +0200)]
mbm: Register stk driver post sim.
Andrzej Zaborowski [Thu, 17 Jun 2010 13:42:11 +0000 (15:42 +0200)]
mbmmodem: Allow no response data for envelope.
Partially reverts
http://git.kernel.org/?p=network/ofono/ofono.git;a=commitdiff;h=
f98c6dc91702c0d14c0afa2a4e32102d3105568d
Andrzej Zaborowski [Thu, 17 Jun 2010 13:42:10 +0000 (15:42 +0200)]
test-stkutil: Add a More Time response builder test
Andrzej Zaborowski [Thu, 17 Jun 2010 13:42:09 +0000 (15:42 +0200)]
stkutil: Add More Time terminal response builder
Denis Kenzior [Fri, 18 Jun 2010 18:59:15 +0000 (13:59 -0500)]
stkutil: USSD max len is 160
Yang Gu [Thu, 17 Jun 2010 10:35:11 +0000 (18:35 +0800)]
stk: Add parser for timing advance objects
Yang Gu [Thu, 17 Jun 2010 10:35:07 +0000 (18:35 +0800)]
teststk: Add test for send ussd parser
Yang Gu [Thu, 17 Jun 2010 10:35:07 +0000 (18:35 +0800)]
smsutil: Add a decoder for ussd pdus
Yang Gu [Thu, 17 Jun 2010 10:35:07 +0000 (18:35 +0800)]
stk: Add parser for send ussd commands
Florian Steinel [Sun, 13 Jun 2010 11:18:35 +0000 (13:18 +0200)]
huawei: Import Huawei rules
From 10-Huawei-Datacard.rules (Linux Driver 4.08.01.108.tar.gz)
Denis Kenzior [Fri, 18 Jun 2010 17:23:10 +0000 (12:23 -0500)]
gathdlc: Don't crash if unreffed in callback
Zhenhua Zhang [Sat, 12 Jun 2010 05:50:48 +0000 (13:50 +0800)]
gsmdial: Unref ppp when we get disconnected
Zhenhua Zhang [Sat, 12 Jun 2010 05:50:44 +0000 (13:50 +0800)]
test-server: Fix GIOChannel leak in create_tty
Remove client_io and unref server_io after creating GAtServer.
Zhenhua Zhang [Sat, 12 Jun 2010 05:50:41 +0000 (13:50 +0800)]
gatserver: Check for disconnection when resuming
If the internal GAtIO is no longer valid, treat it as if our channel was
disconnected.
Zhenhua Zhang [Sat, 12 Jun 2010 05:50:40 +0000 (13:50 +0800)]
gatserver: Suspend/resume GAtServer with GAtIO
Support g_at_server_suspend and g_at_server_resume operation by using
GAtIO to handle IO related function.
Denis Kenzior [Thu, 17 Jun 2010 10:31:05 +0000 (05:31 -0500)]
hfp: Use bluetooth_parse_properties
Instead of the local version
Denis Kenzior [Thu, 17 Jun 2010 10:30:25 +0000 (05:30 -0500)]
bluetooth: Rename & expose parse_properties
Denis Kenzior [Thu, 17 Jun 2010 10:23:11 +0000 (05:23 -0500)]
hfp: Use the bluetooth_send_with_reply
Instead of send_method_call_with_reply
Denis Kenzior [Thu, 17 Jun 2010 10:22:05 +0000 (05:22 -0500)]
bluetooth: Rename send_method_call_with_reply
Gustavo F. Padovan [Mon, 14 Jun 2010 18:04:26 +0000 (15:04 -0300)]
Remove send_method_call from hfp.c
Gustavo F. Padovan [Mon, 14 Jun 2010 18:04:27 +0000 (15:04 -0300)]
Move create_path() to bluetooth plugin
Gustavo F. Padovan [Mon, 14 Jun 2010 18:04:24 +0000 (15:04 -0300)]
Add parse properties stuff to bluetooth.c
Gustavo F. Padovan [Mon, 14 Jun 2010 18:04:23 +0000 (15:04 -0300)]
Add send_method_call_with_reply to bluetooth.c
Gustavo F. Padovan [Mon, 14 Jun 2010 18:04:22 +0000 (15:04 -0300)]
Add bluetooth plugin skeleton.
The bluetooth plugin has bluetooth_resgister_uuid() and
bluetooth_unresgister_uuid() where bluetooth profiles plugins such as HFP
and DUN can register themselves to get know about BlueZ stuff ( new
devices, bluetoothd shutdown, etc..)
Denis Kenzior [Thu, 17 Jun 2010 09:24:08 +0000 (04:24 -0500)]
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.