+wifiscand (1.1-1) fremantle; urgency=low
+
+ * #5730 : fixed restoration of initial interface state
+
+ -- Javier Palacios <javiplx@gmail.com> Fri, 28 May 2010 18:47:22 +0200
+
wifiscand (1.0-1) fremantle; urgency=low
* First release
osso_context_t *osso_context;
};
+static GMainLoop *event_loop = NULL;
+static short int start_flags = 0;
+
/* Callback for normal D-BUS messages */
gint dbus_req_handler(const gchar * interface, const gchar * method,
GArray * arguments, gpointer data,
}
if ( strcmp(method,"stop")==0 ) {
+ struct ifreq frq;
+ strncpy(frq.ifr_name, appdata->iface.ifname, IFNAMSIZ);
+ if(!ioctl(appdata->iface.sock, SIOCGIFFLAGS, &frq)) {
+ frq.ifr_flags = start_flags;
+ ioctl(appdata->iface.sock, SIOCSIFFLAGS, &frq);
+ }
iw_sockets_close(appdata->iface.sock);
appdata->iface.sock = 0;
// osso_system_note_infoprint(appdata->osso_context, "Stopping WifiScan", NULL);
return OSSO_ERROR;
}
-static GMainLoop *event_loop = NULL;
-static short int start_flags = 0;
int main( void ) {