aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/drivers/driver_nl80211.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c
index 9dc2494..df309c5 100644
--- a/src/drivers/driver_nl80211.c
+++ b/src/drivers/driver_nl80211.c
@@ -43,9 +43,6 @@
#if defined(ANDROID_BRCM_P2P_PATCH) && !defined(HOSTAPD)
#include "wpa_supplicant_i.h"
#endif
-#ifdef ANDROID
-#define WPA_EVENT_DRIVER_STATE "CTRL-EVENT-DRIVER-STATE "
-#endif
#ifdef CONFIG_LIBNL20
/* libnl 2.0 compatibility code */
#define nl_handle nl_sock
@@ -1519,15 +1516,9 @@ static int process_event(struct nl_msg *msg, void *arg)
}
drv->associated = 0;
os_memset(&data, 0, sizeof(data));
- if (tb[NL80211_ATTR_REASON_CODE]) {
+ if (tb[NL80211_ATTR_REASON_CODE])
data.disassoc_info.reason_code =
nla_get_u16(tb[NL80211_ATTR_REASON_CODE]);
-#ifdef ANDROID
- if (data.disassoc_info.reason_code == WLAN_REASON_UNSPECIFIED)
- wpa_msg(drv->ctx, MSG_INFO,
- WPA_EVENT_DRIVER_STATE "HANGED");
-#endif
- }
wpa_supplicant_event(drv->ctx, EVENT_DISASSOC, &data);
break;
case NL80211_CMD_MICHAEL_MIC_FAILURE: