Denis Kenzior
228e1e735c
Fix: Minor style issues
2010-04-15 16:49:40 -05:00
Denis Kenzior
c63b2c9d44
Fix: Uncomplicate the logic for SIM initialization
...
If we get a sim inserted notify before we are registered, we need to
initialize the SIM once ofono_sim_register is called. The logic for
doing so is rather twisted, simplify it.
2010-04-15 16:49:40 -05:00
Andrzej Zaborowski
6dc4799d1b
Add SIM "Present" property.
2010-04-15 16:49:40 -05:00
Andrzej Zaborowski
ddfe8acf11
Drivers can notify core of SIM insertion / removal
...
Add ofono_sim_inserted_notify function to notify the core of SIM
insertion / removal.
Make every plugin generate a sim inserted event on start. For devices
with removable card, the event should be emitted after the
plugin detects such event. For devices that need to wait for SIM card
initialization, they can emit this event later.
2010-04-15 16:49:40 -05:00
Andrzej Zaborowski
22cbe98146
Extend sim-ready watch with card insert/eject
2010-04-15 16:49:40 -05:00
Marcel Holtmann
123b87de2c
No to check for NULL pointers with g_free
2010-04-15 04:42:03 -07:00
Kristen Carlson Accardi
60643ee287
ppp: nak unknown auth protocol
...
If we are sent a Config-Request for an auth proto other than
CHAP with MD5, send a NAK.
2010-04-14 17:16:03 -05:00
Denis Kenzior
962d2fff50
Fix: Use a union for other address objects
2010-04-14 13:10:45 -05:00
Yang Gu
f86c13ce8b
Add parser for other address objects
2010-04-14 12:57:28 -05:00
Yang Gu
db1e61cf3c
Add parser for card reader identifier objects
2010-04-14 12:52:09 -05:00
Yang Gu
c48a6f0c21
Add parser for channel status objects
2010-04-14 12:50:58 -05:00
Yang Gu
491832b907
Add parser for buffer size objects
2010-04-14 12:49:13 -05:00
Yang Gu
c25fba0f07
Add parser for channel data length objects
2010-04-14 12:41:33 -05:00
Yang Gu
4cf275ba8d
Add parser for channel data objects
2010-04-14 12:41:19 -05:00
Yang Gu
3bc3d985ab
Add parser for bearer description objects
2010-04-14 12:40:32 -05:00
Yang Gu
9b3d97d705
Add parser for browser termination cause objects
2010-04-14 12:38:58 -05:00
Yang Gu
03b6249f1e
Add parser for provisioning file reference objects
2010-04-14 12:36:52 -05:00
Yang Gu
b08d90c816
Refactor: Break out stk_file iterator
...
For use by other data object parsers besides file lists
2010-04-14 12:34:02 -05:00
Yang Gu
6780c0282a
Add parser for bearer objects
2010-04-14 12:25:08 -05:00
Denis Kenzior
d63e33d5e5
Fix: Handle NULL URLs
2010-04-14 12:23:42 -05:00
Yang Gu
97bd01ba1b
Add parser for url objects
2010-04-14 12:22:22 -05:00
Yang Gu
7fce623ea9
Fix the logic when parsing c-apdu objects
2010-04-14 12:16:08 -05:00
Denis Kenzior
15d93ad0b9
Fix: GAtMux channels should return EAGAIN
...
GAtChat uses non-blocking semantics, so the GAtMux channels should
return the EAGAIN status to make GAtChat work properly.
2010-04-14 10:39:47 -05:00
Daniel Wagner
7bbbb6949c
Add support for Option iCON 451
2010-04-14 03:36:24 -07:00
Denis Kenzior
c8aa645973
ppp: Refing the channel is actually not necessary
...
The read_watch and write_watches both take a ref
2010-04-13 15:57:07 -05:00
Denis Kenzior
8e15816ac1
Fix: Don't try to set channel flags if they're 0
2010-04-13 15:37:05 -05:00
Denis Kenzior
c74e2ab189
ppp: TUN channel should not be opened NONBLOCKING
...
We don't handle it as a nonblocking channel and getting it right would
be a nightmare.
2010-04-13 15:35:55 -05:00
Denis Kenzior
7085818f23
ppp: Cleanup function definitions in ppp.h
2010-04-13 15:32:35 -05:00
Kristen Carlson Accardi
b74a9342d2
ppp: remove pfc and acfc
...
We will not support pfc or acfc
2010-04-13 15:32:35 -05:00
Kristen Carlson Accardi
9c3631f24e
ppp: remove references to magic number
...
We will not support loopback detection.
2010-04-13 15:32:35 -05:00
Denis Kenzior
0aaf98a354
ppp: Get rid of net_open and net_close
...
There really isn't a need for these now
2010-04-13 15:14:40 -05:00
Denis Kenzior
1d939052fc
ppp: Introduce ppp_net_down_notify
2010-04-13 14:59:13 -05:00
Denis Kenzior
d1d73a75fc
ppp: Introduce ppp_net_up_notify and use it
...
This is slightly cleaner way than defining a weird callback function.
2010-04-13 14:55:10 -05:00
Denis Kenzior
6525826455
ppp: Hide ppp_net definition in ppp_net.c
2010-04-13 14:42:59 -05:00
Denis Kenzior
71ddfca269
ppp: Use chap functions directly, instead of auth
2010-04-13 14:21:16 -05:00
Denis Kenzior
18e5e26acb
ppp: Remove auth_ functions from ppp_auth.c
...
These really serve no purpose right now as we use only CHAP. So they
only take up space and make the code harder to read. If we implement
1-3 auth protocols, then they're easier handled inside gatppp.c. If we
have more, then a proper auth driver framework is required.
2010-04-13 14:21:16 -05:00
Denis Kenzior
42f6e8ec6e
ppp: introduce ppp_auth_notify
...
This function will be notified whenever authentication has succeeded /
failed. This can happen in the authentication phase or during the
network phase. If auth fails, then we should proceed to the terminate
phase.
2010-04-13 14:21:16 -05:00
Denis Kenzior
e21bb72df0
ppp: Add set / get password & username
...
Also refactor the set credentials function, we will be removing the auth
object shortly
2010-04-13 14:21:16 -05:00
Denis Kenzior
fed99b9265
ppp: Transition the phase directly
...
Use of the generate event function, while more 'pure' with regard to how
the spec views transitions, actually makes code more difficult to read.
Instead use phase transitions directly inside gatppp. This still bleeds
through a little into lcp code, and probably should be fixed in a better
way eventually.
2010-04-13 14:21:12 -05:00
Denis Kenzior
552db428ef
ppp: Refactor how tls/tlu/tld/tlf are used
...
With the upper layer driving these, the special handling is no longer
required.
2010-04-13 14:00:01 -05:00
Denis Kenzior
9116b7e8f8
ppp: Let the upper layer handle open / up events
...
This removes the need for the layer_started functions in lcp and ipcp.
For LCP the link is always up unless the socket has been closed, and for
IPCP the link should be opened as soon as LCP is ready anyway.
2010-04-13 13:58:12 -05:00
Denis Kenzior
87939c2fcf
Merge: make link
2010-04-13 13:57:03 -05:00
Denis Kenzior
dbbaa3c416
ppp: Reset the options whenever the layer is down
...
So we can re-negotiate the options if the layer is opened again.
2010-04-13 13:34:12 -05:00
Denis Kenzior
8c1677713f
ppp: Rename data to pppcp
2010-04-13 13:27:23 -05:00
Denis Kenzior
843db6f9a5
ppp: unref should mean a hard shutdown
...
This can happen when e.g. the modem is physically removed from the
system and it is not feasible to wait for the nice shutdown state to be
reached.
2010-04-13 12:03:32 -05:00
Denis Kenzior
b916f189f5
ppp: Signal Down & Close when socket is closed
2010-04-13 12:03:32 -05:00
Denis Kenzior
a661dd1583
ppp: Add pppcp_signal_down
...
For use when the link is abruptly terminated by the remote side
2010-04-13 12:03:32 -05:00
Denis Kenzior
f5270cc9bd
ppp: Use pppcp_signal functions directly
...
No real need to wrap them behind lcp_ functions
2010-04-13 12:03:32 -05:00
Denis Kenzior
36d15b4366
ppp: Keep track when read watcher dies
2010-04-13 12:03:32 -05:00
Denis Kenzior
79d81af431
ppp: Remove unused define
2010-04-13 12:03:32 -05:00