diff options
| author | Michael Bestas <mikeioannina@gmail.com> | 2014-05-01 20:03:40 +0300 |
|---|---|---|
| committer | Michael Bestas <mikeioannina@gmail.com> | 2014-07-30 10:48:36 +0000 |
| commit | a1bc7444f734a3331463cffb517c8d4a36bc058d (patch) | |
| tree | 3599f20ccc3240872ab24e6bd93c2d8ee32a9b8f | |
| parent | 7b4ceed0292e1faa84549e5630be193573d1561b (diff) | |
| download | android_external_wpa_supplicant_8-a1bc7444f734a3331463cffb517c8d4a36bc058d.tar.gz android_external_wpa_supplicant_8-a1bc7444f734a3331463cffb517c8d4a36bc058d.tar.bz2 android_external_wpa_supplicant_8-a1bc7444f734a3331463cffb517c8d4a36bc058d.zip | |
Revert "wpa_supplicant_8 - Hostapd: Android related changes for sockets"
This is not present in wpa_supplicant_8_ti variant anymore.
Improves WiFi AP behaviour on wl12xx devices
This reverts commit 4d11042be9623f74660d930c7bcb82ae6e6fd4df.
Change-Id: I56da55fe63fb9417e142a19a7c3a9f3fad2f49a1
| -rw-r--r-- | hostapd/Android.mk | 4 | ||||
| -rw-r--r-- | hostapd/ctrl_iface.c | 16 |
2 files changed, 0 insertions, 20 deletions
diff --git a/hostapd/Android.mk b/hostapd/Android.mk index 07733575..bf2e2776 100644 --- a/hostapd/Android.mk +++ b/hostapd/Android.mk @@ -50,11 +50,7 @@ endif # Use Android specific directory for control interface sockets L_CFLAGS += -DCONFIG_CTRL_IFACE_CLIENT_DIR=\"/data/misc/wifi/sockets\" -ifdef USES_TI_MAC80211 -L_CFLAGS += -DCONFIG_CTRL_IFACE_DIR=\"/data/system/wpa_supplicant\" -else L_CFLAGS += -DCONFIG_CTRL_IFACE_DIR=\"/data/system/hostapd\" -endif # To force sizeof(enum) = 4 ifeq ($(TARGET_ARCH),arm) diff --git a/hostapd/ctrl_iface.c b/hostapd/ctrl_iface.c index 37d3fcdc..be941c44 100644 --- a/hostapd/ctrl_iface.c +++ b/hostapd/ctrl_iface.c @@ -14,10 +14,6 @@ #include <sys/stat.h> #include <stddef.h> -#ifdef USES_TI_MAC80211 -#include <cutils/sockets.h> -#endif /* USES_TI_MAC80211 */ - #include "utils/common.h" #include "utils/eloop.h" #include "common/version.h" @@ -1182,14 +1178,6 @@ int hostapd_ctrl_iface_init(struct hostapd_data *hapd) if (hapd->conf->ctrl_interface == NULL) return 0; -#ifdef USES_TI_MAC80211 - os_snprintf(addr.sun_path, sizeof(addr.sun_path), "wpa_%s", - hapd->conf->ctrl_interface); - s = android_get_control_socket(addr.sun_path); - if (s >= 0) - goto havesock; -#endif /* USES_TI_MAC80211 */ - if (mkdir(hapd->conf->ctrl_interface, S_IRWXU | S_IRWXG) < 0) { if (errno == EEXIST) { wpa_printf(MSG_DEBUG, "Using existing control " @@ -1300,10 +1288,6 @@ int hostapd_ctrl_iface_init(struct hostapd_data *hapd) } os_free(fname); -#ifdef USES_TI_MAC80211 -havesock: -#endif /* USES_TI_MAC80211 */ - hapd->ctrl_sock = s; eloop_register_read_sock(s, hostapd_ctrl_iface_receive, hapd, NULL); |
