is not in use at all at the moment. It also is not attempting to connect
or do anything else.
-With Ethernet services a special "carrier" state is available. It indicates
-that the cable has been plugged in. This state is only used when the device
-is from type Ethernet.
-
The "association" state indicates that this service tries to establish a
low-level connection to the network. For example associating/connecting
with a WiFi access point.
+---------------+
| idle |<-------------------------------+
+---------------+ |
- | | |
- | +----------------------+ |
- | | |
- | V |
- | +-------------+ |
- +----------------------| carrier |<----+
- | +-------------+ |
| |
| +-------------+ |
+----------------------| failure | |
enum connman_service_state {
CONNMAN_SERVICE_STATE_UNKNOWN = 0,
CONNMAN_SERVICE_STATE_IDLE = 1,
- CONNMAN_SERVICE_STATE_CARRIER = 2,
- CONNMAN_SERVICE_STATE_ASSOCIATION = 3,
- CONNMAN_SERVICE_STATE_CONFIGURATION = 4,
- CONNMAN_SERVICE_STATE_READY = 5,
+ CONNMAN_SERVICE_STATE_ASSOCIATION = 2,
+ CONNMAN_SERVICE_STATE_CONFIGURATION = 3,
+ CONNMAN_SERVICE_STATE_READY = 4,
CONNMAN_SERVICE_STATE_DISCONNECT = 6,
CONNMAN_SERVICE_STATE_FAILURE = 7,
};
break;
case CONNMAN_SERVICE_STATE_IDLE:
return "idle";
- case CONNMAN_SERVICE_STATE_CARRIER:
- return "carrier";
case CONNMAN_SERVICE_STATE_ASSOCIATION:
return "association";
case CONNMAN_SERVICE_STATE_CONFIGURATION:
switch (service->state) {
case CONNMAN_SERVICE_STATE_UNKNOWN:
case CONNMAN_SERVICE_STATE_IDLE:
- case CONNMAN_SERVICE_STATE_CARRIER:
case CONNMAN_SERVICE_STATE_FAILURE:
case CONNMAN_SERVICE_STATE_DISCONNECT:
case CONNMAN_SERVICE_STATE_READY: