Denis Kenzior
d994ed1111
Add mbm vendor
2010-03-26 23:00:28 -05:00
Denis Kenzior
14f296075e
Refactor: Use CIND as default strength reporting
...
Many vendors seem to use CIND instead of CSQ / proprietary extensions.
2010-03-26 23:00:28 -05:00
Denis Kenzior
36a8801115
Update atmodem gprs driver to the new API
2010-03-26 23:00:28 -05:00
Denis Kenzior
7972f844c7
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)
2010-03-26 23:00:28 -05:00
Denis Kenzior
88994bbe81
Refactor: Get rid of DCM properties
...
Be conformant with the API changes from the previous commit
2010-03-26 23:00:28 -05:00
Denis Kenzior
616b00aab5
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
2010-03-26 23:00:28 -05:00
Marcel Holtmann
834f3af1dc
Fix some comments in dialer example
2010-03-26 19:41:06 -07:00
Marcel Holtmann
fb043af678
Allow empty secrets for CHAP authentication
2010-03-26 19:35:54 -07:00
Marcel Holtmann
95bceddba4
Add support for NBNS server options
2010-03-26 19:25:56 -07:00
Kristen Carlson Accardi
c31bee9fff
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.
2010-03-26 19:19:46 -07:00
Kristen Carlson Accardi
8777e778f3
ppp: use common code to get options from pppcp packet data
2010-03-26 19:19:46 -07:00
Kristen Carlson Accardi
5260379d98
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.
2010-03-26 19:19:46 -07:00
Kristen Carlson Accardi
3772a6401c
ppp: comment fix
...
Put some additional clarification in comment for receiving Code-Reject
and Protocol-Reject packets.
2010-03-26 19:19:46 -07:00
Kristen Carlson Accardi
909ab154a4
ppp: fix segfault in pppcp_send_code_reject()
...
fix memory corruption caused by misplaced paren when memcpying
rejected packet data into Code-Reject packet.
2010-03-26 19:19:46 -07:00
Denis Kenzior
9bb65275eb
Fix: The MCC / MNC Properties are actually strings
2010-03-25 16:01:47 -05:00
Kristen Carlson Accardi
af63a2b8ee
ppp: change debug output to include control protocol prefix
2010-03-25 12:38:57 -07:00
Denis Kenzior
59a2bcd380
Fix: No need to malloc memory for this
2010-03-25 11:39:45 -05:00
Yang Gu
b42248b480
Add parser for help request objects
2010-03-25 11:37:09 -05:00
Yang Gu
765861b82b
Refactor: Use common bool to implement imm resp
2010-03-25 11:36:49 -05:00
Yang Gu
77747fbc4f
Add parser for common bool object
2010-03-25 11:36:11 -05:00
Yang Gu
dcb62b8df1
Add parser for imei objects
2010-03-25 11:36:11 -05:00
Yang Gu
cf38ef05ba
Add parser for location information objects
2010-03-25 11:36:11 -05:00
Yang Gu
a13db81229
Make the function to parse mcc and mnc public
2010-03-25 11:36:11 -05:00
Yang Gu
8ecf7fd24d
Rename: stk data object enum names
...
Be more consistent
2010-03-25 11:35:32 -05:00
Denis Kenzior
9a149834e0
Update tests to new netreg API
2010-03-25 10:58:16 -05:00
Denis Kenzior
e05318aa5a
Refactor: Rename netreg Operator property to Name
2010-03-25 10:57:52 -05:00
Denis Kenzior
92beff2839
Update ISI radio settings driver to the new API
2010-03-25 10:43:17 -05:00
Denis Kenzior
538cd6a1cb
Refactor: Rename radio setting type names
2010-03-25 10:42:48 -05:00
Denis Kenzior
77693b697d
Rename AvailableOperators to Operators
2010-03-25 10:37:46 -05:00
Denis Kenzior
1e783b33d9
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.
2010-03-25 10:29:01 -05:00
Denis Kenzior
9390dbaf31
Refactor: Remove MobileNetworkCodeLength property
...
Replaced by MNC/MCC properties which is more intuitive for use by
external applications.
2010-03-25 10:21:37 -05:00
Marcel Holtmann
1e33e5339d
Fix some small copy-and-paste typos
2010-03-25 08:20:19 -07:00
Marcel Holtmann
c84cb16edd
Check network status to handle auto-registration
2010-03-25 07:33:41 -07:00
Marcel Holtmann
ada2c7f986
Check modem mode before tyring to change it
2010-03-25 07:20:03 -07:00
Kristen Carlson Accardi
5b656cdf34
gsmdial: shutdown ppp link if we have one
...
If we have created a ppp link, shut it down when the signal handler
is called.
2010-03-25 06:50:17 -07:00
Kristen Carlson Accardi
f720a27a1f
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.
2010-03-25 06:50:10 -07:00
Kristen Carlson Accardi
06ae2b2c98
add tracing for PPP terminate path
...
Insert some calls to pppcp_trace() for future debugging needs.
2010-03-25 06:50:10 -07:00
Kristen Carlson Accardi
bde388e0d5
remove unneeded debug statement
...
cleanup old debug print statement
2010-03-25 06:50:10 -07:00
Kristen Carlson Accardi
060a195432
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.
2010-03-24 23:04:45 -05:00
Kristen Carlson Accardi
fb40115bf2
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.
2010-03-24 23:04:42 -05:00
Denis Kenzior
1905d4deda
Fix: Make CONNECT <baud> responses work
2010-03-24 19:42:16 -05:00
Denis Kenzior
9ed01bfecd
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.
2010-03-24 19:41:19 -05:00
Denis Kenzior
a9c089ab34
Refactor basic command parsing
...
Make more bullet proof and efficient
2010-03-24 19:37:18 -05:00
Denis Kenzior
1f99435a42
Fix: Use SO_REUSEADDR in test_server
2010-03-24 19:34:33 -05:00
Denis Kenzior
644d5922b2
Style: foo[0] is preferable to *foo
2010-03-24 16:28:42 -05:00
Denis Kenzior
005ecd5dd9
Fix: Be more paranoid in basic command parsing
2010-03-24 16:28:19 -05:00
Zhenhua Zhang
7c8fa919fa
Add basic command parsing
2010-03-24 16:02:10 -05:00
Denis Kenzior
c1c3b5502e
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.
2010-03-24 15:24:06 -05:00
Yang Gu
dd2a1e648b
Add enum for cdma sms tpdu data objects
2010-03-24 15:23:50 -05:00
Yang Gu
6e70b6eeea
Fix enum for more time proactive command
2010-03-24 15:23:49 -05:00