2018-04-23 13:45:47 +00:00
|
|
|
diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c
|
2018-07-04 15:13:16 +00:00
|
|
|
index 5cff47fab..af08177b2 100644
|
2014-11-22 14:13:43 +00:00
|
|
|
--- a/src/drivers/driver_nl80211.c
|
|
|
|
+++ b/src/drivers/driver_nl80211.c
|
2018-07-04 15:13:16 +00:00
|
|
|
@@ -1682,13 +1682,13 @@ static void wpa_driver_nl80211_rfkill_blocked(void *ctx)
|
|
|
|
{
|
|
|
|
struct wpa_driver_nl80211_data *drv = ctx;
|
|
|
|
|
|
|
|
- wpa_printf(MSG_DEBUG, "nl80211: RFKILL blocked");
|
|
|
|
+ wpa_printf(MSG_INFO, "nl80211: RFKILL blocked");
|
|
|
|
|
|
|
|
/*
|
|
|
|
* rtnetlink ifdown handler will report interfaces other than the P2P
|
|
|
|
* Device interface as disabled.
|
|
|
|
*/
|
|
|
|
- if (drv->nlmode == NL80211_IFTYPE_P2P_DEVICE)
|
|
|
|
+ // if (drv->nlmode == NL80211_IFTYPE_P2P_DEVICE)
|
|
|
|
wpa_supplicant_event(drv->ctx, EVENT_INTERFACE_DISABLED, NULL);
|
|
|
|
}
|
|
|
|
|
|
|
|
@@ -1696,7 +1696,7 @@ static void wpa_driver_nl80211_rfkill_blocked(void *ctx)
|
|
|
|
static void wpa_driver_nl80211_rfkill_unblocked(void *ctx)
|
|
|
|
{
|
|
|
|
struct wpa_driver_nl80211_data *drv = ctx;
|
|
|
|
- wpa_printf(MSG_DEBUG, "nl80211: RFKILL unblocked");
|
|
|
|
+ wpa_printf(MSG_INFO, "nl80211: RFKILL unblocked");
|
|
|
|
if (i802_set_iface_flags(drv->first_bss, 1)) {
|
|
|
|
wpa_printf(MSG_DEBUG, "nl80211: Could not set interface UP "
|
|
|
|
"after rfkill unblock");
|
|
|
|
@@ -1710,7 +1710,7 @@ static void wpa_driver_nl80211_rfkill_unblocked(void *ctx)
|
|
|
|
* rtnetlink ifup handler will report interfaces other than the P2P
|
|
|
|
* Device interface as enabled.
|
|
|
|
*/
|
|
|
|
- if (drv->nlmode == NL80211_IFTYPE_P2P_DEVICE)
|
|
|
|
+ // if (drv->nlmode == NL80211_IFTYPE_P2P_DEVICE)
|
|
|
|
wpa_supplicant_event(drv->ctx, EVENT_INTERFACE_ENABLED, NULL);
|
|
|
|
}
|
|
|
|
|
2018-04-23 13:45:47 +00:00
|
|
|
@@ -7645,7 +7645,7 @@ static void * nl80211_global_init(void *ctx)
|
2014-11-22 14:13:43 +00:00
|
|
|
if (wpa_driver_nl80211_init_nl_global(global) < 0)
|
|
|
|
goto err;
|
|
|
|
|
|
|
|
- global->ioctl_sock = socket(PF_INET, SOCK_DGRAM, 0);
|
|
|
|
+ global->ioctl_sock = 42;
|
|
|
|
if (global->ioctl_sock < 0) {
|
|
|
|
wpa_printf(MSG_ERROR, "nl80211: socket(PF_INET,SOCK_DGRAM) failed: %s",
|
|
|
|
strerror(errno));
|
2018-04-23 13:45:47 +00:00
|
|
|
diff --git a/src/drivers/netlink.c b/src/drivers/netlink.c
|
|
|
|
index 0e960f48c..38fb26c18 100644
|
2014-11-22 14:13:43 +00:00
|
|
|
--- a/src/drivers/netlink.c
|
|
|
|
+++ b/src/drivers/netlink.c
|
|
|
|
@@ -13,6 +13,8 @@
|
|
|
|
#include "priv_netlink.h"
|
|
|
|
#include "netlink.h"
|
|
|
|
|
|
|
|
+#define PF_NETLINK 16
|
|
|
|
+#define AF_NETLINK PF_NETLINK
|
|
|
|
|
|
|
|
struct netlink_data {
|
|
|
|
struct netlink_config *cfg;
|
2018-07-04 15:13:16 +00:00
|
|
|
diff --git a/src/utils/common.c b/src/utils/common.c
|
|
|
|
index 1eb33705b..e4447306a 100644
|
|
|
|
--- a/src/utils/common.c
|
|
|
|
+++ b/src/utils/common.c
|
|
|
|
@@ -498,12 +498,12 @@ void printf_encode(char *txt, size_t maxlen, const u8 *data, size_t len)
|
|
|
|
*txt++ = 't';
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
- if (data[i] >= 32 && data[i] <= 126) {
|
|
|
|
+ // if (data[i] >= 32 && data[i] <= 126) {
|
|
|
|
*txt++ = data[i];
|
|
|
|
- } else {
|
|
|
|
- txt += os_snprintf(txt, end - txt, "\\x%02x",
|
|
|
|
- data[i]);
|
|
|
|
- }
|
|
|
|
+ // } else {
|
|
|
|
+ // txt += os_snprintf(txt, end - txt, "\\x%02x",
|
|
|
|
+ // data[i]);
|
|
|
|
+ // }
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
2018-04-23 13:45:47 +00:00
|
|
|
diff --git a/src/utils/eloop.c b/src/utils/eloop.c
|
2018-07-04 15:13:16 +00:00
|
|
|
index 436bc8c99..f5ff4facb 100644
|
2014-11-22 14:13:43 +00:00
|
|
|
--- a/src/utils/eloop.c
|
|
|
|
+++ b/src/utils/eloop.c
|
2018-04-23 13:45:47 +00:00
|
|
|
@@ -28,7 +28,7 @@
|
2014-11-22 14:13:43 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_ELOOP_POLL
|
|
|
|
-#include <poll.h>
|
|
|
|
+#include <sys/poll.h>
|
|
|
|
#endif /* CONFIG_ELOOP_POLL */
|
|
|
|
|
|
|
|
#ifdef CONFIG_ELOOP_EPOLL
|