OSDN Git Service

remove libnetutils dependency
authorSzymon Jakubczak <szym@google.com>
Wed, 9 Jun 2010 20:08:42 +0000 (16:08 -0400)
committerSzymon Jakubczak <szym@google.com>
Wed, 9 Jun 2010 20:08:42 +0000 (16:08 -0400)
Change-Id: I2b10ec7b9c8392bf9e64153406264a56b0ecbe30

wifi/Android.mk
wifi/wifi.c

index 5d94fb8..e181595 100644 (file)
@@ -14,5 +14,3 @@ LOCAL_CFLAGS += -DWIFI_FIRMWARE_LOADER=\"$(WIFI_FIRMWARE_LOADER)\"
 endif
 
 LOCAL_SRC_FILES += wifi/wifi.c
-
-LOCAL_SHARED_LIBRARIES += libnetutils
index 8719cac..1b5124f 100644 (file)
 static struct wpa_ctrl *ctrl_conn;
 static struct wpa_ctrl *monitor_conn;
 
-extern int do_dhcp();
-extern int ifc_init();
-extern void ifc_close();
-extern char *dhcp_lasterror();
-extern void get_dhcp_info();
 extern int init_module(void *, unsigned long, const char *);
 extern int delete_module(const char *, unsigned int);
 
@@ -111,28 +106,6 @@ static int rmmod(const char *modname)
     return ret;
 }
 
-int do_dhcp_request(int *ipaddr, int *gateway, int *mask,
-                    int *dns1, int *dns2, int *server, int *lease) {
-    /* For test driver, always report success */
-    if (strcmp(iface, WIFI_TEST_INTERFACE) == 0)
-        return 0;
-
-    if (ifc_init() < 0)
-        return -1;
-
-    if (do_dhcp(iface) < 0) {
-        ifc_close();
-        return -1;
-    }
-    ifc_close();
-    get_dhcp_info(ipaddr, gateway, mask, dns1, dns2, server, lease);
-    return 0;
-}
-
-const char *get_dhcp_error_string() {
-    return dhcp_lasterror();
-}
-
 static int check_driver_loaded() {
     char driver_status[PROPERTY_VALUE_MAX];
     FILE *proc;