Yang Gu
3ae32b6e51
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.
2010-04-27 09:30:59 -05:00
Yang Gu
def5c38094
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().
2010-04-27 09:30:39 -05:00
Kristen Carlson Accardi
a9c0be7339
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.
2010-04-26 15:31:17 -05:00
Kristen Carlson Accardi
fce78feb54
ppp: discard non-LCP packets in ESTABLISHMENT phase
2010-04-26 12:38:31 -05:00
Yang Gu
30644d8195
stkutil: Fix the assignment to minimum set
2010-04-26 11:30:52 -05:00
Pekka Pessi
7bf2dc9707
Fix: transaction id usage in gisi/server.c
2010-04-24 14:09:58 -05:00
Marcel Holtmann
cc1975270c
Fix broken HDLC flag handling
2010-04-24 19:12:30 +02:00
Marcel Holtmann
057bd9f0b3
Fix wrong escape character check in HDLC transmit
2010-04-24 19:02:04 +02:00
Marcel Holtmann
46839fbd15
Allow real wrapping around of HDLC transmit ring buffer
2010-04-24 19:00:54 +02:00
Marcel Holtmann
8f05535bb2
Add offset parameter to ring_buffer_write_ptr() function
2010-04-24 18:59:44 +02:00
Marcel Holtmann
9fd7d841c8
Add support for wrapping of HDLC transmit ring buffer
2010-04-24 18:54:34 +02:00
Yang Gu
89d19b37d9
stkutil: Add parser for broadcast network info
2010-04-23 11:52:18 -05:00
Yang Gu
aa3c5807ad
stkutil: Add parser for activate descriptor
2010-04-23 11:52:18 -05:00
Yang Gu
82f907e0bd
stkutil: Add parser for registry app data objects
2010-04-23 11:52:18 -05:00
Yang Gu
fe042d8036
stkutil: Add parser for last envelope objects
2010-04-23 11:52:18 -05:00
Yang Gu
a6b7618478
stkutil: Add parser for MMS notification objects
2010-04-23 11:52:18 -05:00
Yang Gu
e5ce1bb8eb
stkutil: Add parser for mm cid objects
2010-04-23 11:52:18 -05:00
Yang Gu
61d89f7a73
stkutil: Add parser for MMS transfer status
2010-04-23 11:52:18 -05:00
Yang Gu
18ee08e598
stkutil: Add parser for MMS identifier objects
2010-04-23 11:52:18 -05:00
Yang Gu
b1b75d90d5
stkutil: Add parser for MMS reference objects
2010-04-23 11:52:17 -05:00
Yang Gu
d6c5def964
stkutil: Add parser for meid objects
2010-04-23 11:52:17 -05:00
Yang Gu
150e5f3f66
stkutil: Add parser for frames information objects
2010-04-23 11:52:17 -05:00
Yang Gu
642a7ed3ec
stkutil: Add parser for frame layout objects
2010-04-23 11:52:17 -05:00
Yang Gu
b0d9e6df17
stkutil: Add parser for browsing status objects
2010-04-23 11:52:17 -05:00
Zhenhua Zhang
7111325311
Fix a typo in telephony_error_to_str
2010-04-23 11:52:17 -05:00
Marcel Holtmann
d2c8f124e6
Use HDLC_FCS helper where possible
2010-04-23 17:22:56 +02:00
Marcel Holtmann
2a609f9054
Use HDLC constants instead of magic numbers
2010-04-23 17:21:49 +02:00
Marcel Holtmann
a31870f542
Add support for wrapping of HDLC receive ring buffer
2010-04-23 17:18:30 +02:00
Denis Kenzior
fa5e8cf56b
ppp: Fix trivial style error
2010-04-22 17:58:29 -05:00
Kristen Carlson Accardi
e98fb9a6bd
ppp: change MTU on TUN device when MRU option received
2010-04-22 17:56:31 -05:00
Andrzej Zaborowski
6e28fd9396
Fix CTLV three-byte tag parsing.
2010-04-22 17:44:20 -05:00
Denis Kenzior
fde23f113a
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.
2010-04-22 15:08:05 -05:00
Denis Kenzior
07280e1bff
ppp: Fix trivial copy paste error
2010-04-22 15:07:42 -05:00
Denis Kenzior
226865272c
ppp: Shut off IPCP when entering TERMINATING phase
2010-04-22 15:05:18 -05:00
Kristen Carlson Accardi
71775550fe
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.
2010-04-22 07:00:40 +02:00
Zhenhua Zhang
e1daf20651
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"
2010-04-21 12:46:47 -05:00
Denis Kenzior
a7fb1624fd
stkutil: Another trivial indentation fix
2010-04-21 10:29:27 -05:00
Yang Gu
29e03d316b
Add parser for battery state objects
2010-04-21 10:28:43 -05:00
Yang Gu
3e52bb0503
Add parser for network search mode objects
2010-04-21 10:28:21 -05:00
Yang Gu
cabb1c89a8
Add parser for imeisv objects
2010-04-21 10:27:58 -05:00
Yang Gu
e374b558a2
Add parser for item text attribute list objects
2010-04-21 10:26:04 -05:00
Yang Gu
3e5bf2f6bb
Add parser for cdma sms tpdu objects
2010-04-21 10:25:38 -05:00
Denis Kenzior
fdfff04073
stkutil: Refactor network access name
...
Don't allow 0 byte objects
2010-04-21 10:23:56 -05:00
Yang Gu
ee85ca8d7a
Add parser for network access name objects
2010-04-21 10:18:16 -05:00
Denis Kenzior
d2830249c6
stkutil: Trivial indentation fix
2010-04-21 10:17:20 -05:00
Yang Gu
6ac8188ce2
Add parser for esn objects
2010-04-21 10:16:57 -05:00
Denis Kenzior
d211da15b2
stkutil: Refactor remote entity address
...
Don't assign to the return structure until we know we can successfully
parse.
2010-04-21 10:14:04 -05:00
Yang Gu
fdfb64d9f1
Add parser for remote entity address objects
2010-04-21 10:12:41 -05:00
Yang Gu
f78de0f762
Add parser for service availability objects
2010-04-21 10:10:56 -05:00
Denis Kenzior
24aee7a6b0
stkutil: Refactor attribute information
...
Only Bluetooth & IRDA are really defined by the specification
2010-04-21 10:09:12 -05:00