OSDN Git Service

Add ANDROID-related changes
[android-x86/external-wpa_supplicant_6.git] / wpa_supplicant / wpa_supplicant_i.h
index 5e4dcc1..30c8b41 100644 (file)
@@ -358,6 +358,13 @@ struct wpa_supplicant {
        struct wps_context *wps;
        int wps_success; /* WPS success event received */
        int blacklist_cleared;
+
+       int scan_ongoing; /* scan ongoing or not */
+       int link_speed;   /* current link speed */
+       int rssi;         /* current signal level */
+#ifdef ANDROID
+       int scan_interval; /* time between scans when no APs available */
+#endif
 };
 
 
@@ -760,4 +767,12 @@ static inline int wpa_drv_set_probe_req_ie(struct wpa_supplicant *wpa_s,
        return -1;
 }
 
+static inline int wpa_drv_driver_cmd(struct wpa_supplicant *wpa_s,
+                                         char *cmd, char *buf, size_t buf_len)
+{
+       if (wpa_s->driver->driver_cmd)
+               return wpa_s->driver->driver_cmd(wpa_s->drv_priv, cmd, buf, buf_len);
+       return -1;
+}
+
 #endif /* WPA_SUPPLICANT_I_H */