Denis Kenzior [Tue, 30 Mar 2010 15:19:23 +0000 (10:19 -0500)]
Refactor: generic boolean parsers
Denis Kenzior [Tue, 30 Mar 2010 15:12:05 +0000 (10:12 -0500)]
Refactor: Don't repeat tag checking ad naseum
The tag checking can be done safely once inside the main parsing
function, no need to repeat it in the individual object parsers.
Denis Kenzior [Tue, 30 Mar 2010 15:13:31 +0000 (10:13 -0500)]
Style: More consistent indentation
Marcel Holtmann [Tue, 30 Mar 2010 01:13:01 +0000 (18:13 -0700)]
Fix use of g_checksum_get_digest() inout argument
Denis Kenzior [Mon, 29 Mar 2010 21:40:14 +0000 (16:40 -0500)]
Fix: measurement results are binary data
Yang Gu [Mon, 29 Mar 2010 16:24:36 +0000 (00:24 +0800)]
Add parser for network measurement results objects
Denis Kenzior [Mon, 29 Mar 2010 20:37:39 +0000 (15:37 -0500)]
Add call-forwarding to mbm driver
Pekka Pessi [Mon, 29 Mar 2010 18:17:51 +0000 (21:17 +0300)]
Fix: simplify isimodem call-barring driver.
Add support for lock codes AG and AC (MMI codes 333 and 353,
respectively). Use decimal MMI codes in <ss.h>.
Marcel Holtmann [Mon, 29 Mar 2010 18:06:04 +0000 (11:06 -0700)]
Check for capabilities support via libcap-ng
Denis Kenzior [Mon, 29 Mar 2010 05:18:04 +0000 (00:18 -0500)]
Style: braces are not needed
Denis Kenzior [Mon, 29 Mar 2010 05:09:10 +0000 (00:09 -0500)]
Fix: Use tech reported by MBM erinfo
Denis Kenzior [Mon, 29 Mar 2010 04:58:37 +0000 (23:58 -0500)]
Fix: Handle 2 and 3 argument versions of ERINFO
Denis Kenzior [Mon, 29 Mar 2010 04:30:32 +0000 (23:30 -0500)]
Move erinfo notify to atmodem netreg driver
Marcel Holtmann [Sun, 28 Mar 2010 16:15:02 +0000 (09:15 -0700)]
Enable PPP session suport for AT+CGDATA command
Kristen Carlson Accardi [Thu, 25 Mar 2010 20:04:36 +0000 (13:04 -0700)]
ppp: send PPP_FAIL when authentication fails
Denis Kenzior [Fri, 26 Mar 2010 20:33:19 +0000 (15:33 -0500)]
Add phonesim vendor quirk
Denis Kenzior [Fri, 26 Mar 2010 20:28:00 +0000 (15:28 -0500)]
Add mbm vendor
Denis Kenzior [Fri, 26 Mar 2010 20:26:10 +0000 (15:26 -0500)]
Refactor: Use CIND as default strength reporting
Many vendors seem to use CIND instead of CSQ / proprietary extensions.
Denis Kenzior [Fri, 26 Mar 2010 17:54:10 +0000 (12:54 -0500)]
Update atmodem gprs driver to the new API
Denis Kenzior [Fri, 26 Mar 2010 17:49:49 +0000 (12:49 -0500)]
Refactor: Simplify the internal GPRS API
We no longer expose lac/ci/tech attributes obtained from CGREG
(some modems, like ISI, do not even report them for GPRS separately).
Simplify the internal gprs driver api to only report the registration
status (e.g. home, roaming, searching, not registered, etc)
Denis Kenzior [Thu, 25 Mar 2010 21:23:35 +0000 (16:23 -0500)]
Refactor: Get rid of DCM properties
Be conformant with the API changes from the previous commit
Denis Kenzior [Thu, 25 Mar 2010 21:17:40 +0000 (16:17 -0500)]
Change the DataConnectionManager API
The various attributes obtained from CGREG are actually completely
useless and are not used internally for anything except computing the
Attached status. It makes sense to get rid of these properties since
they will be the same as reported by CREG in Dual-Transfer-Mode devices.
The only difference might be how hardware reports the technology used,
but frequently a vendor specific command is required anyway
Marcel Holtmann [Sat, 27 Mar 2010 02:41:06 +0000 (19:41 -0700)]
Fix some comments in dialer example
Marcel Holtmann [Sat, 27 Mar 2010 02:35:54 +0000 (19:35 -0700)]
Allow empty secrets for CHAP authentication
Marcel Holtmann [Sat, 27 Mar 2010 02:25:56 +0000 (19:25 -0700)]
Add support for NBNS server options
Kristen Carlson Accardi [Sat, 27 Mar 2010 01:34:30 +0000 (18:34 -0700)]
ppp: handle Config-Reject
if our peer sends us a Config-Reject packet, we must delete that
config item and not request that it be negotiated when we send our
next Config-Request.
Kristen Carlson Accardi [Sat, 27 Mar 2010 01:34:29 +0000 (18:34 -0700)]
ppp: use common code to get options from pppcp packet data
Kristen Carlson Accardi [Sat, 27 Mar 2010 01:34:28 +0000 (18:34 -0700)]
ppp: send Protocol-Reject
change ppp_decode to store the length of the decoded frame, so that
if we have a packet with a protocol we don't understand, we can send
Protocol-Reject packets. Modify ppp_cp code to add support for sending
Protocol-Reject packet.
Kristen Carlson Accardi [Sat, 27 Mar 2010 01:34:27 +0000 (18:34 -0700)]
ppp: comment fix
Put some additional clarification in comment for receiving Code-Reject
and Protocol-Reject packets.
Kristen Carlson Accardi [Sat, 27 Mar 2010 01:34:26 +0000 (18:34 -0700)]
ppp: fix segfault in pppcp_send_code_reject()
fix memory corruption caused by misplaced paren when memcpying
rejected packet data into Code-Reject packet.
Denis Kenzior [Thu, 25 Mar 2010 21:01:16 +0000 (16:01 -0500)]
Fix: The MCC / MNC Properties are actually strings
Kristen Carlson Accardi [Thu, 25 Mar 2010 17:59:34 +0000 (10:59 -0700)]
ppp: change debug output to include control protocol prefix
Denis Kenzior [Thu, 25 Mar 2010 16:39:45 +0000 (11:39 -0500)]
Fix: No need to malloc memory for this
Yang Gu [Thu, 25 Mar 2010 16:07:36 +0000 (00:07 +0800)]
Add parser for help request objects
Yang Gu [Thu, 25 Mar 2010 16:07:35 +0000 (00:07 +0800)]
Refactor: Use common bool to implement imm resp
Yang Gu [Thu, 25 Mar 2010 16:07:34 +0000 (00:07 +0800)]
Add parser for common bool object
Yang Gu [Thu, 25 Mar 2010 16:07:33 +0000 (00:07 +0800)]
Add parser for imei objects
Yang Gu [Thu, 25 Mar 2010 16:07:32 +0000 (00:07 +0800)]
Add parser for location information objects
Yang Gu [Thu, 25 Mar 2010 16:07:31 +0000 (00:07 +0800)]
Make the function to parse mcc and mnc public
Yang Gu [Thu, 25 Mar 2010 16:07:30 +0000 (00:07 +0800)]
Rename: stk data object enum names
Be more consistent
Denis Kenzior [Thu, 25 Mar 2010 15:58:16 +0000 (10:58 -0500)]
Update tests to new netreg API
Denis Kenzior [Thu, 25 Mar 2010 15:57:52 +0000 (10:57 -0500)]
Refactor: Rename netreg Operator property to Name
Denis Kenzior [Thu, 25 Mar 2010 15:43:17 +0000 (10:43 -0500)]
Update ISI radio settings driver to the new API
Denis Kenzior [Thu, 25 Mar 2010 15:42:48 +0000 (10:42 -0500)]
Refactor: Rename radio setting type names
Denis Kenzior [Thu, 25 Mar 2010 15:37:46 +0000 (10:37 -0500)]
Rename AvailableOperators to Operators
Denis Kenzior [Thu, 25 Mar 2010 15:29:01 +0000 (10:29 -0500)]
Refactor: Simplify Technology values
Applications don't really understand our current values very well and
would need to look up the spec. Instead we change to much more commonly
accepted terms.
Denis Kenzior [Thu, 25 Mar 2010 15:19:54 +0000 (10:19 -0500)]
Refactor: Remove MobileNetworkCodeLength property
Replaced by MNC/MCC properties which is more intuitive for use by
external applications.
Marcel Holtmann [Thu, 25 Mar 2010 15:20:19 +0000 (08:20 -0700)]
Fix some small copy-and-paste typos
Marcel Holtmann [Thu, 25 Mar 2010 14:33:41 +0000 (07:33 -0700)]
Check network status to handle auto-registration
Marcel Holtmann [Thu, 25 Mar 2010 14:20:03 +0000 (07:20 -0700)]
Check modem mode before tyring to change it
Kristen Carlson Accardi [Thu, 25 Mar 2010 04:41:55 +0000 (21:41 -0700)]
gsmdial: shutdown ppp link if we have one
If we have created a ppp link, shut it down when the signal handler
is called.
Kristen Carlson Accardi [Thu, 25 Mar 2010 04:41:54 +0000 (21:41 -0700)]
separate memory cleanup from PPP shutdown
don't free memory at PPP shutdown, because we need to be able to
send terminate traffic. Free memory when we have reached the
PPP_DEAD phase instead.
Kristen Carlson Accardi [Thu, 25 Mar 2010 04:41:53 +0000 (21:41 -0700)]
add tracing for PPP terminate path
Insert some calls to pppcp_trace() for future debugging needs.
Kristen Carlson Accardi [Thu, 25 Mar 2010 04:41:52 +0000 (21:41 -0700)]
remove unneeded debug statement
cleanup old debug print statement
Kristen Carlson Accardi [Thu, 25 Mar 2010 03:26:28 +0000 (20:26 -0700)]
use separate timers for PPP config and terminate
Prevent conflicts between config timer information and terminate timer
information by providing a new data structure which keeps timer information
for config and terminate requests separate.
Kristen Carlson Accardi [Thu, 25 Mar 2010 03:26:27 +0000 (20:26 -0700)]
switch to g_timeout_add_seconds()
we don't care that much about the exactness of our timer, so use
the more power efficient call.
Denis Kenzior [Thu, 25 Mar 2010 00:42:16 +0000 (19:42 -0500)]
Fix: Make CONNECT <baud> responses work
Denis Kenzior [Thu, 25 Mar 2010 00:40:59 +0000 (19:40 -0500)]
Refactor: Simplify parsing logic
It isn't actually necessary to check the basic command prefixes, if the
extended prefix doesn't match we try to parse it like a basic command.
That one does the same exact check anyway. If that fails, then this is
not a recognized command line anyway.
Denis Kenzior [Thu, 25 Mar 2010 00:37:18 +0000 (19:37 -0500)]
Refactor basic command parsing
Make more bullet proof and efficient
Denis Kenzior [Thu, 25 Mar 2010 00:34:33 +0000 (19:34 -0500)]
Fix: Use SO_REUSEADDR in test_server
Denis Kenzior [Wed, 24 Mar 2010 21:28:42 +0000 (16:28 -0500)]
Style: foo[0] is preferable to *foo
Denis Kenzior [Wed, 24 Mar 2010 21:28:19 +0000 (16:28 -0500)]
Fix: Be more paranoid in basic command parsing
Zhenhua Zhang [Wed, 24 Mar 2010 01:47:30 +0000 (09:47 +0800)]
Add basic command parsing
Denis Kenzior [Wed, 24 Mar 2010 20:17:57 +0000 (15:17 -0500)]
Style: No point to write a function to wrap g_free
Using casting magic works well enough, and more consistent with the rest
of the library.
Yang Gu [Wed, 24 Mar 2010 09:35:45 +0000 (17:35 +0800)]
Add enum for cdma sms tpdu data objects
Yang Gu [Wed, 24 Mar 2010 09:35:43 +0000 (17:35 +0800)]
Fix enum for more time proactive command
Kristen Carlson Accardi [Wed, 24 Mar 2010 17:13:25 +0000 (10:13 -0700)]
fix memory leak in ppp_auth
Free packet after calling ppp_transmit()
Kristen Carlson Accardi [Wed, 24 Mar 2010 17:13:24 +0000 (10:13 -0700)]
fix memory leaks after ppp_transmit
Free packets in ppp_cp after calling ppp_transmit()
Kristen Carlson Accardi [Wed, 24 Mar 2010 17:13:23 +0000 (10:13 -0700)]
fix memory leaks in option handling
free the data as well as the link when deleting options lists.
Marcel Holtmann [Wed, 24 Mar 2010 08:26:21 +0000 (01:26 -0700)]
Release 0.20
Denis Kenzior [Tue, 23 Mar 2010 18:43:55 +0000 (13:43 -0500)]
Fix: Handle broken modems that returns empty COPS
Denis Kenzior [Tue, 23 Mar 2010 18:35:58 +0000 (13:35 -0500)]
Move netreg interface definitions to dbus.h
Denis Kenzior [Tue, 23 Mar 2010 17:31:00 +0000 (12:31 -0500)]
Style: Fixup some style issues
- Large if statements should be handled as switchcase
- Avoid initialization of variables, even if code needs to be rearranged
Yang Gu [Tue, 23 Mar 2010 04:33:49 +0000 (12:33 +0800)]
Add parser for file list objects
Denis Kenzior [Tue, 23 Mar 2010 04:16:06 +0000 (23:16 -0500)]
Fix: trivial formatting fix in call settings api
Marcel Holtmann [Tue, 23 Mar 2010 04:43:46 +0000 (21:43 -0700)]
Remove pointless optimization attempt with g_list_length()
Marcel Holtmann [Tue, 23 Mar 2010 03:13:55 +0000 (20:13 -0700)]
Use password instead of passwd as variable name
Marcel Holtmann [Tue, 23 Mar 2010 03:10:17 +0000 (20:10 -0700)]
The g_free() function checks for NULL pointers
And so does even the free() function from glibc ;)
Marcel Holtmann [Tue, 23 Mar 2010 03:07:13 +0000 (20:07 -0700)]
Unnest some more functions in PPP CP implementation
Marcel Holtmann [Tue, 23 Mar 2010 03:01:28 +0000 (20:01 -0700)]
Some additional whitespace cleanup for PPP code
Marcel Holtmann [Tue, 23 Mar 2010 02:56:53 +0000 (19:56 -0700)]
Fix the broken PPP CP debug trace function
Marcel Holtmann [Tue, 23 Mar 2010 02:32:47 +0000 (19:32 -0700)]
Remove some heavy nesting that is not needed at all
Marcel Holtmann [Tue, 23 Mar 2010 02:29:34 +0000 (19:29 -0700)]
Fix another pointer casting issue on 32-bit systems
Marcel Holtmann [Tue, 23 Mar 2010 02:13:22 +0000 (19:13 -0700)]
Fix pointer casting with uint16 protocol variable
Marcel Holtmann [Tue, 23 Mar 2010 00:29:12 +0000 (17:29 -0700)]
Mention Kristen's contributions
Kristen Carlson Accardi [Tue, 23 Mar 2010 00:06:01 +0000 (17:06 -0700)]
Add PPP option to gsmdial
Implement new options for gsmdial to use PPP and set the user name and
password for authentication if needed.
Kristen Carlson Accardi [Tue, 23 Mar 2010 00:06:00 +0000 (17:06 -0700)]
IP support for PPP
Adds IPCP support, and creates a TUN interface for sending/receiving IP
packets.
Kristen Carlson Accardi [Tue, 23 Mar 2010 00:05:59 +0000 (17:05 -0700)]
CHAP with MD5 authentication support
Authentication support with CHAP and MD5
Kristen Carlson Accardi [Tue, 23 Mar 2010 00:05:58 +0000 (17:05 -0700)]
PPP LCP support
Implement LCP support for the PPP protocol.
Kristen Carlson Accardi [Tue, 23 Mar 2010 00:05:57 +0000 (17:05 -0700)]
Generic PPP control protocol support
Implement a generic protocol that can be shared by both the LCP and the
NCP implementation.
Kristen Carlson Accardi [Tue, 23 Mar 2010 00:05:56 +0000 (17:05 -0700)]
Basic PPP protocol support
This patch implements the basic PPP protocol. LCP, NCP etc. are handled in
a different patch.
Denis Kenzior [Mon, 22 Mar 2010 20:39:13 +0000 (15:39 -0500)]
Move sim manager interface definition to dbus.h
Denis Kenzior [Mon, 22 Mar 2010 20:36:04 +0000 (15:36 -0500)]
Move cbs interface definition to dbus.h
Denis Kenzior [Mon, 22 Mar 2010 20:33:56 +0000 (15:33 -0500)]
Move call volume interface definition to dbus.h
Denis Kenzior [Mon, 22 Mar 2010 20:31:03 +0000 (15:31 -0500)]
Move mwi interface definition to dbus.h
Denis Kenzior [Mon, 22 Mar 2010 20:29:03 +0000 (15:29 -0500)]
Move radio settings interface definition to dbus.h
Denis Kenzior [Mon, 22 Mar 2010 20:28:08 +0000 (15:28 -0500)]
Move sms interface definition to dbus.h
Denis Kenzior [Mon, 22 Mar 2010 20:27:08 +0000 (15:27 -0500)]
Move voicecall interface definitions to dbus.h
Denis Kenzior [Mon, 22 Mar 2010 20:16:43 +0000 (15:16 -0500)]
Add message-waiting api
Denis Kenzior [Mon, 22 Mar 2010 20:07:53 +0000 (15:07 -0500)]
Add call-volume api