diff options
| author | Jan Engelmohr <jan.engelmohr@mailbox.tu-dresden.de> | 2016-08-16 00:14:11 +0200 |
|---|---|---|
| committer | Jan Engelmohr <jan.engelmohr@mailbox.tu-dresden.de> | 2016-08-16 00:14:11 +0200 |
| commit | e0c91d78fa907e09d3ba09bc501a1389961a268b (patch) | |
| tree | 341400470cf7516d3eed776371c121caf747c39d /patches/system_netd | |
| parent | 08936b818719f708631f36a81265df4ae9836e9d (diff) | |
move most of patches to common tree
Diffstat (limited to 'patches/system_netd')
| -rw-r--r-- | patches/system_netd/hotpost-fix.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/patches/system_netd/hotpost-fix.patch b/patches/system_netd/hotpost-fix.patch new file mode 100644 index 0000000..ac8369d --- /dev/null +++ b/patches/system_netd/hotpost-fix.patch @@ -0,0 +1,30 @@ +diff -ur netd/server/SoftapController.cpp netd_mtk/server/SoftapController.cpp +--- netd/server/SoftapController.cpp 2016-01-22 15:55:47.409331000 -0800 ++++ netd_mtk/server/SoftapController.cpp 2016-01-23 05:24:28.098782000 -0800 +@@ -48,7 +48,7 @@ + #endif + + #ifdef LIBWPA_CLIENT_EXISTS +-static const char HOSTAPD_UNIX_FILE[] = "/data/misc/wifi/hostapd/wlan0"; ++static const char HOSTAPD_UNIX_FILE[] = "/data/misc/wifi/hostapd/ap0"; + static const char HOSTAPD_SOCKETS_DIR[] = "/data/misc/wifi/sockets"; + static const char HOSTAPD_DHCP_DIR[] = "/data/misc/dhcp"; + #endif +@@ -161,7 +161,7 @@ + + if (!pid) { + ensure_entropy_file_exists(); +- if (execl(HOSTAPD_BIN_FILE, HOSTAPD_BIN_FILE, ++ if (execl(HOSTAPD_BIN_FILE, HOSTAPD_BIN_FILE, "-d", + "-e", WIFI_ENTROPY_FILE, + HOSTAPD_CONF_FILE, (char *) NULL)) { + ALOGE("execl failed (%s)", strerror(errno)); +@@ -246,7 +246,7 @@ + asprintf(&wbuf, "interface=%s\ndriver=nl80211\nctrl_interface=" + "/data/misc/wifi/hostapd\nssid=%s\nchannel=%d\nieee80211n=1\n" + "hw_mode=g\nignore_broadcast_ssid=%d\nwowlan_triggers=any\n", +- argv[2], argv[3], channel, hidden); ++ /*argv[2]*/"ap0", argv[3], channel, hidden); + + if (argc > 7) { + if (!strcmp(argv[6], "wpa-psk")) { |
