remote: close file on usteer_init_local_id fread fail
[project/usteer.git] / remote.h
index 6cc5e30cc87a8cc409c6e426cb737fc2a7725634..a1486e7fa1491f8d641825559dd3c91c0d691e02 100644 (file)
--- a/remote.h
+++ b/remote.h
@@ -26,6 +26,7 @@ enum {
        APMSG_ID,
        APMSG_SEQ,
        APMSG_NODES,
+       APMSG_HOST_INFO,
        __APMSG_MAX
 };
 
@@ -33,6 +34,7 @@ struct apmsg {
        uint32_t id;
        uint32_t seq;
        struct blob_attr *nodes;
+       struct blob_attr *host_info;
 };
 
 enum {
@@ -45,21 +47,27 @@ enum {
        APMSG_NODE_SSID,
        APMSG_NODE_MAX_ASSOC,
        APMSG_NODE_RRM_NR,
-       APMSG_NODE_SCRIPT_DATA,
+       APMSG_NODE_NODE_INFO,
+       APMSG_NODE_BSSID,
+       APMSG_NODE_CHANNEL,
+       APMSG_NODE_OP_CLASS,
        __APMSG_NODE_MAX
 };
 
 struct apmsg_node {
        const char *name;
        const char *ssid;
+       const char *bssid;
        int freq;
+       int channel;
+       int op_class;
        int n_assoc;
        int max_assoc;
        int noise;
        int load;
        struct blob_attr *stations;
        struct blob_attr *rrm_nr;
-       struct blob_attr *script_data;
+       struct blob_attr *node_info;
 };
 
 enum {
@@ -68,6 +76,7 @@ enum {
        APMSG_STA_TIMEOUT,
        APMSG_STA_SEEN,
        APMSG_STA_CONNECTED,
+       APMSG_STA_LAST_CONNECTED,
        __APMSG_STA_MAX
 };
 
@@ -78,6 +87,7 @@ struct apmsg_sta {
        int signal;
        int timeout;
        int seen;
+       int last_connected;
 };
 
 bool parse_apmsg(struct apmsg *msg, struct blob_attr *data);