diff options
author | The Android Open Source Project <initial-contribution@android.com> | 2010-06-15 11:38:05 -0700 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2010-06-15 11:38:05 -0700 |
commit | edfaa7eca961176bee1ff46b50a4fc1330199278 (patch) | |
tree | b388d729beb96a8e30f7226050d2d32619abe920 /wifi | |
parent | 28739a81dbdeb046adc9e31ffadbe65cb45563b3 (diff) | |
parent | 7c6051a4990d9c55245c90a233bb23e5cc5cb544 (diff) | |
download | hardware_libhardware_legacy-edfaa7eca961176bee1ff46b50a4fc1330199278.zip hardware_libhardware_legacy-edfaa7eca961176bee1ff46b50a4fc1330199278.tar.gz hardware_libhardware_legacy-edfaa7eca961176bee1ff46b50a4fc1330199278.tar.bz2 |
merge from open-source master
Change-Id: Iff5f59c3bf645911730bfa7defee848e5b54a4a1
Diffstat (limited to 'wifi')
-rw-r--r-- | wifi/Android.mk | 2 | ||||
-rw-r--r-- | wifi/wifi.c | 27 |
2 files changed, 0 insertions, 29 deletions
diff --git a/wifi/Android.mk b/wifi/Android.mk index 5d94fb8..e181595 100644 --- a/wifi/Android.mk +++ b/wifi/Android.mk @@ -14,5 +14,3 @@ LOCAL_CFLAGS += -DWIFI_FIRMWARE_LOADER=\"$(WIFI_FIRMWARE_LOADER)\" endif LOCAL_SRC_FILES += wifi/wifi.c - -LOCAL_SHARED_LIBRARIES += libnetutils diff --git a/wifi/wifi.c b/wifi/wifi.c index 3f8708d..5fdf99b 100644 --- a/wifi/wifi.c +++ b/wifi/wifi.c @@ -36,11 +36,6 @@ 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); @@ -113,28 +108,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; |