Denis Kenzior [Wed, 28 Apr 2010 20:29:22 +0000 (15:29 -0500)]
ppp: Make ppp_net_process_packet const correct
Denis Kenzior [Wed, 28 Apr 2010 14:49:58 +0000 (09:49 -0500)]
gathdlc: Add recording support, ported from PPP
For protocol examination using wireshark
Denis Kenzior [Wed, 28 Apr 2010 04:37:53 +0000 (23:37 -0500)]
gathdlc: Add receive ACCM support
Denis Kenzior [Wed, 28 Apr 2010 04:25:28 +0000 (23:25 -0500)]
gathdlc: Support transmit ACCM
Denis Kenzior [Wed, 28 Apr 2010 03:46:46 +0000 (22:46 -0500)]
gatchat: Don't try to cleanup twice
In case we get unrefed from the disconnect callback
Denis Kenzior [Wed, 28 Apr 2010 03:46:23 +0000 (22:46 -0500)]
gatchat: Use GAtIO for write watchers
Denis Kenzior [Wed, 28 Apr 2010 03:43:25 +0000 (22:43 -0500)]
gatio: support for blocking / nonblocking writes
Denis Kenzior [Wed, 28 Apr 2010 01:29:50 +0000 (20:29 -0500)]
gatchat: get_channel should return one from GAtIO
Denis Kenzior [Wed, 28 Apr 2010 01:28:59 +0000 (20:28 -0500)]
gatchat: Channel is now setup by GAtIO
Denis Kenzior [Wed, 28 Apr 2010 01:07:47 +0000 (20:07 -0500)]
gatchat: Better re-entrancy handling
Denis Kenzior [Tue, 27 Apr 2010 22:20:10 +0000 (17:20 -0500)]
gsmdial: Get rid of g_at_chat_shutdown usage
Denis Kenzior [Tue, 27 Apr 2010 22:10:42 +0000 (17:10 -0500)]
gsmdial: Unref the chat instead of using shutdown
Denis Kenzior [Tue, 27 Apr 2010 22:10:18 +0000 (17:10 -0500)]
gatmux: Unref the chat instead of using shutdown
Denis Kenzior [Tue, 27 Apr 2010 22:09:37 +0000 (17:09 -0500)]
Fix: For now calling g_at_chat_unref is fine
Same as g_at_chat_shutdown in this case
Denis Kenzior [Tue, 27 Apr 2010 22:09:22 +0000 (17:09 -0500)]
Fix: g_at_chat_shutdown usage in test-mux
Denis Kenzior [Tue, 27 Apr 2010 22:07:37 +0000 (17:07 -0500)]
Fix: Remove easy uses of g_at_chat_shutdown
Denis Kenzior [Tue, 27 Apr 2010 22:06:53 +0000 (17:06 -0500)]
gatchat: Only set debug on IO if we have it
Denis Kenzior [Tue, 27 Apr 2010 22:05:58 +0000 (17:05 -0500)]
gatchat: Replace shutdown by suspend/resume
Shutdown was actually pointless and according to Marcel he only had it
in mind for PPP useage.
Denis Kenzior [Tue, 27 Apr 2010 21:28:10 +0000 (16:28 -0500)]
gatchat: port gatchat to use gatio
Denis Kenzior [Tue, 27 Apr 2010 21:26:54 +0000 (16:26 -0500)]
gatio: Remove g_at_io_shutdown
Denis Kenzior [Tue, 27 Apr 2010 19:48:11 +0000 (14:48 -0500)]
gatio: Get re-entrancy correct
Denis Kenzior [Tue, 27 Apr 2010 19:47:38 +0000 (14:47 -0500)]
gatio: Style fix for gsource id comparisons
Denis Kenzior [Tue, 27 Apr 2010 19:46:54 +0000 (14:46 -0500)]
gatio: Kill the reader when no more space
Denis Kenzior [Tue, 27 Apr 2010 17:32:40 +0000 (12:32 -0500)]
gatchat: Remove g_at_chat_set_syntax
Never used and too unsafe in its current form
Denis Kenzior [Tue, 27 Apr 2010 16:07:53 +0000 (11:07 -0500)]
gatchat: Add initial GAtIO implementation
Aki Niemi [Tue, 27 Apr 2010 12:12:57 +0000 (15:12 +0300)]
Add sane default to dial-number script
Aki Niemi [Tue, 27 Apr 2010 12:12:32 +0000 (15:12 +0300)]
gisi: remove misplaced define
Aki Niemi [Tue, 27 Apr 2010 12:12:17 +0000 (15:12 +0300)]
gisi: refactor client implementation
Aki Niemi [Tue, 27 Apr 2010 20:08:10 +0000 (23:08 +0300)]
Fix typo in gprs driver
Aki Niemi [Tue, 27 Apr 2010 12:11:53 +0000 (15:11 +0300)]
Fix faulty logic in netreg driver
Also add missing tech param.
Aki Niemi [Tue, 27 Apr 2010 12:10:55 +0000 (15:10 +0300)]
Fix remove ops in isimodem drivers
Aki Niemi [Sat, 24 Apr 2010 01:58:01 +0000 (04:58 +0300)]
Fix style issues in isimodem
Yang Gu [Tue, 27 Apr 2010 09:47:12 +0000 (17:47 +0800)]
stkutil: Make get inkey parser use its own struct
Yang Gu [Tue, 27 Apr 2010 09:47:11 +0000 (17:47 +0800)]
stkutil: Use char* instead of char**
char ** should only be used for character arrays that are allocated by
the parser. Static buffers should be passed as char*
Yang Gu [Tue, 27 Apr 2010 09:47:10 +0000 (17:47 +0800)]
test-stkutil: Add unit test for more time parser
Yang Gu [Tue, 27 Apr 2010 09:47:09 +0000 (17:47 +0800)]
stkutil: Add 'more time' proactive command parser
Yang Gu [Tue, 27 Apr 2010 09:47:08 +0000 (17:47 +0800)]
test-stkutil: Refactor display text unit tests
Yang Gu [Tue, 27 Apr 2010 09:47:07 +0000 (17:47 +0800)]
stkutil: Use struct to represent frame id
Use a field has_id to indicate if we have frame id or not. Originally
we use 0xFF to indicate we don't have frame id. But in that way, we
have to initialize each test case of proactive command when it doesn't
have this comprehension tlv to be 0xFF. To use has_id will save this
effort, and keep consistency with other implementations.
Yang Gu [Tue, 27 Apr 2010 09:47:06 +0000 (17:47 +0800)]
stkutil: Move advance of ctlv to parse_dataobj
Not all the proactive commands have comprehension tlv other than
command details and device identities. So the appropriate code should
be moved to parse_dataobj() from stk_command_new_from_pdu().
Kristen Carlson Accardi [Mon, 26 Apr 2010 18:44:36 +0000 (11:44 -0700)]
ppp: use default ACCM when sending LCP codes 1-7
According to the spec, you must transmit all Link Configuration,
Termination, and Code-Reject packets as if no options had been
negotiated. This requires that when encoding we use the
default ACCM of 0xffffffff when sending these types of packets.
Kristen Carlson Accardi [Mon, 26 Apr 2010 17:28:41 +0000 (10:28 -0700)]
ppp: discard non-LCP packets in ESTABLISHMENT phase
Yang Gu [Mon, 26 Apr 2010 10:29:21 +0000 (18:29 +0800)]
stkutil: Fix the assignment to minimum set
Pekka Pessi [Fri, 23 Apr 2010 15:17:16 +0000 (18:17 +0300)]
Fix: transaction id usage in gisi/server.c
Marcel Holtmann [Sat, 24 Apr 2010 17:12:30 +0000 (19:12 +0200)]
Fix broken HDLC flag handling
Marcel Holtmann [Sat, 24 Apr 2010 17:02:04 +0000 (19:02 +0200)]
Fix wrong escape character check in HDLC transmit
Marcel Holtmann [Sat, 24 Apr 2010 17:00:54 +0000 (19:00 +0200)]
Allow real wrapping around of HDLC transmit ring buffer
Marcel Holtmann [Sat, 24 Apr 2010 16:59:44 +0000 (18:59 +0200)]
Add offset parameter to ring_buffer_write_ptr() function
Marcel Holtmann [Sat, 24 Apr 2010 16:54:34 +0000 (18:54 +0200)]
Add support for wrapping of HDLC transmit ring buffer
Yang Gu [Thu, 22 Apr 2010 15:12:30 +0000 (23:12 +0800)]
stkutil: Add parser for broadcast network info
Yang Gu [Thu, 22 Apr 2010 15:12:29 +0000 (23:12 +0800)]
stkutil: Add parser for activate descriptor
Yang Gu [Thu, 22 Apr 2010 15:12:28 +0000 (23:12 +0800)]
stkutil: Add parser for registry app data objects
Yang Gu [Thu, 22 Apr 2010 15:12:27 +0000 (23:12 +0800)]
stkutil: Add parser for last envelope objects
Yang Gu [Thu, 22 Apr 2010 15:12:26 +0000 (23:12 +0800)]
stkutil: Add parser for MMS notification objects
Yang Gu [Thu, 22 Apr 2010 15:12:25 +0000 (23:12 +0800)]
stkutil: Add parser for mm cid objects
Yang Gu [Thu, 22 Apr 2010 15:12:24 +0000 (23:12 +0800)]
stkutil: Add parser for MMS transfer status
Yang Gu [Thu, 22 Apr 2010 15:12:23 +0000 (23:12 +0800)]
stkutil: Add parser for MMS identifier objects
Yang Gu [Thu, 22 Apr 2010 15:12:22 +0000 (23:12 +0800)]
stkutil: Add parser for MMS reference objects
Yang Gu [Thu, 22 Apr 2010 15:12:21 +0000 (23:12 +0800)]
stkutil: Add parser for meid objects
Yang Gu [Thu, 22 Apr 2010 15:12:20 +0000 (23:12 +0800)]
stkutil: Add parser for frames information objects
Yang Gu [Thu, 22 Apr 2010 15:12:19 +0000 (23:12 +0800)]
stkutil: Add parser for frame layout objects
Yang Gu [Thu, 22 Apr 2010 15:12:18 +0000 (23:12 +0800)]
stkutil: Add parser for browsing status objects
Zhenhua Zhang [Fri, 23 Apr 2010 02:01:40 +0000 (10:01 +0800)]
Fix a typo in telephony_error_to_str
Marcel Holtmann [Fri, 23 Apr 2010 15:22:56 +0000 (17:22 +0200)]
Use HDLC_FCS helper where possible
Marcel Holtmann [Fri, 23 Apr 2010 15:21:49 +0000 (17:21 +0200)]
Use HDLC constants instead of magic numbers
Marcel Holtmann [Fri, 23 Apr 2010 15:18:30 +0000 (17:18 +0200)]
Add support for wrapping of HDLC receive ring buffer
Denis Kenzior [Thu, 22 Apr 2010 22:58:29 +0000 (17:58 -0500)]
ppp: Fix trivial style error
Kristen Carlson Accardi [Thu, 22 Apr 2010 22:49:15 +0000 (15:49 -0700)]
ppp: change MTU on TUN device when MRU option received
Andrzej Zaborowski [Thu, 22 Apr 2010 09:13:04 +0000 (11:13 +0200)]
Fix CTLV three-byte tag parsing.
Denis Kenzior [Thu, 22 Apr 2010 20:08:05 +0000 (15:08 -0500)]
ppp: Request MRU if we ever get NAKed with it
Huawei E160G hardware seems to NAK our configure request and suggest
that it will never send packets bigger than 1440 bytes. Since we don't
particularly care (our receive ring buffer is 4K, so it can handle 2048
byte packets), we just re-send the Configure Request with the preferred
value.
Denis Kenzior [Thu, 22 Apr 2010 20:07:42 +0000 (15:07 -0500)]
ppp: Fix trivial copy paste error
Denis Kenzior [Thu, 22 Apr 2010 20:05:18 +0000 (15:05 -0500)]
ppp: Shut off IPCP when entering TERMINATING phase
Kristen Carlson Accardi [Wed, 21 Apr 2010 22:26:30 +0000 (15:26 -0700)]
ppp: implement MRU option
If the peer requests a MRU option, set the mtu for the network
phase. When we are in link establishment phase, we should
continue to behave as if no option has been set and the peer
should use the default MRU.
This option is required for the Huawei E160G modem.
Zhenhua Zhang [Mon, 19 Apr 2010 01:39:49 +0000 (09:39 +0800)]
mbm: Add Dell 5530 modem port suffix
Dell 5530 seems to have three tty ports labeled:
"Dell Wireless 5530 HSPA Mobile Broadband Minicard Modem"
"Dell Wireless 5530 HSPA Mobile Broadband Minicard Modem 2"
"Dell Wireless 5530 HSPA Mobile Broadband Minicard GPS Port"
Denis Kenzior [Wed, 21 Apr 2010 15:29:27 +0000 (10:29 -0500)]
stkutil: Another trivial indentation fix
Yang Gu [Wed, 21 Apr 2010 04:55:59 +0000 (12:55 +0800)]
Add parser for battery state objects
Yang Gu [Wed, 21 Apr 2010 04:55:58 +0000 (12:55 +0800)]
Add parser for network search mode objects
Yang Gu [Wed, 21 Apr 2010 04:55:57 +0000 (12:55 +0800)]
Add parser for imeisv objects
Yang Gu [Wed, 21 Apr 2010 04:55:56 +0000 (12:55 +0800)]
Add parser for item text attribute list objects
Yang Gu [Wed, 21 Apr 2010 04:55:55 +0000 (12:55 +0800)]
Add parser for cdma sms tpdu objects
Denis Kenzior [Wed, 21 Apr 2010 15:23:56 +0000 (10:23 -0500)]
stkutil: Refactor network access name
Don't allow 0 byte objects
Yang Gu [Wed, 21 Apr 2010 04:55:54 +0000 (12:55 +0800)]
Add parser for network access name objects
Denis Kenzior [Wed, 21 Apr 2010 15:17:20 +0000 (10:17 -0500)]
stkutil: Trivial indentation fix
Yang Gu [Wed, 21 Apr 2010 04:55:53 +0000 (12:55 +0800)]
Add parser for esn objects
Denis Kenzior [Wed, 21 Apr 2010 15:14:04 +0000 (10:14 -0500)]
stkutil: Refactor remote entity address
Don't assign to the return structure until we know we can successfully
parse.
Yang Gu [Wed, 21 Apr 2010 04:55:52 +0000 (12:55 +0800)]
Add parser for remote entity address objects
Yang Gu [Wed, 21 Apr 2010 04:55:51 +0000 (12:55 +0800)]
Add parser for service availability objects
Denis Kenzior [Wed, 21 Apr 2010 15:09:12 +0000 (10:09 -0500)]
stkutil: Refactor attribute information
Only Bluetooth & IRDA are really defined by the specification
Yang Gu [Wed, 21 Apr 2010 04:55:50 +0000 (12:55 +0800)]
Add parser for attribute information objects
Denis Kenzior [Wed, 21 Apr 2010 15:07:32 +0000 (10:07 -0500)]
stkutil: Refactor service search
Only Bluetooth & IRDA are really defined by the specification
Yang Gu [Wed, 21 Apr 2010 04:55:49 +0000 (12:55 +0800)]
Add parser for service search objects
Denis Kenzior [Wed, 21 Apr 2010 15:04:13 +0000 (10:04 -0500)]
stkutil: refactor device filter
Only Bluetooth & IRDA are really defined by the specification
Yang Gu [Wed, 21 Apr 2010 04:55:48 +0000 (12:55 +0800)]
Add parser for device filter objects
Yang Gu [Wed, 21 Apr 2010 04:55:47 +0000 (12:55 +0800)]
Add parser for service record objects
Yang Gu [Wed, 21 Apr 2010 04:55:46 +0000 (12:55 +0800)]
Add parser for display parameters objects
Yang Gu [Wed, 21 Apr 2010 04:55:45 +0000 (12:55 +0800)]
Add parser for access technology objects
Aki Niemi [Wed, 21 Apr 2010 07:47:16 +0000 (10:47 +0300)]
gisi: move g_isi_modem_by_name to separate file
This fixes build warnings that resulted from conflicts between
linux/if.h and net/if.h.
Yang Gu [Tue, 20 Apr 2010 06:14:57 +0000 (14:14 +0800)]
Add parser for aid objects
Yang Gu [Tue, 20 Apr 2010 06:14:56 +0000 (14:14 +0800)]
Add parser for UICC/TE transport interface level
Denis Kenzior [Tue, 20 Apr 2010 17:15:27 +0000 (12:15 -0500)]
build: Upate test script list and sort
Denis Kenzior [Tue, 20 Apr 2010 17:06:06 +0000 (12:06 -0500)]
Mention Daniel's contributions