@@ -64,7 +64,7 @@ static void pkt_status_notify(struct qmi_result *result, void *user_data)
DBG("ip family %d", ip_family);
switch (status->status) {
- case QMI_WDS_CONN_STATUS_DISCONNECTED:
+ case QMI_WDS_CONNECTION_STATUS_DISCONNECTED:
if (data->pkt_handle) {
/* The context has been disconnected by the network */
ofono_gprs_context_deactivated(gc, data->active_context);
@@ -38,15 +38,19 @@ struct qmi_wds_notify_conn_status {
uint8_t reconf;
} __attribute__((__packed__));
-#define QMI_WDS_CONN_STATUS_DISCONNECTED 0x01
-#define QMI_WDS_CONN_STATUS_CONNECTED 0x02
-#define QMI_WDS_CONN_STATUS_SUSPENDED 0x03
-#define QMI_WDS_CONN_STATUS_AUTHENTICATING 0x04
+enum qmi_wds_connection_status {
+ QMI_WDS_CONNECTION_STATUS_DISCONNECTED = 0x01,
+ QMI_WDS_CONNECTION_STATUS_CONNECTED = 0x02,
+ QMI_WDS_CONNECTION_STATUS_SUSPENDED = 0x03,
+ QMI_WDS_CONNECTION_STATUS_AUTHENTICATING = 0x04,
+};
-#define QMI_WDS_PDP_TYPE_IPV4 0x00
-#define QMI_WDS_PDP_TYPE_PPP 0x01
-#define QMI_WDS_PDP_TYPE_IPV6 0x02
-#define QMI_WDS_PDP_TYPE_IPV4V6 0x03
+enum qmi_wds_pdp_type {
+ QMI_WDS_PDP_TYPE_IPV4 = 0x00,
+ QMI_WDS_PDP_TYPE_PPP = 0x01,
+ QMI_WDS_PDP_TYPE_IPV6 = 0x02,
+ QMI_WDS_PDP_TYPE_IPV4V6 = 0x03,
+};
enum qmi_wds_ip_family {
QMI_WDS_IP_FAMILY_UNKNOWN = 0,