aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd/hostapd.c
diff options
context:
space:
mode:
authorMichael Bernhard <michael.bernhard@bfh.ch>2008-04-16 11:40:32 (GMT)
committerJouni Malinen <j@w1.fi>2008-04-16 11:40:32 (GMT)
commitb717ee2ab25c2ace29098bc720f4117c008ca1b6 (patch)
tree8c00894dbfc6d3f994250a49bbad6f6c9a5f0b0b /hostapd/hostapd.c
parentfe2b7dda0265d81412292cda9d31edb2252482d9 (diff)
downloadhostap-06-b717ee2ab25c2ace29098bc720f4117c008ca1b6.zip
hostap-06-b717ee2ab25c2ace29098bc720f4117c008ca1b6.tar.gz
hostap-06-b717ee2ab25c2ace29098bc720f4117c008ca1b6.tar.bz2
Disable functionality in hostapd_deauth_all_stas for hostap driver only
Signed-off-by: Michael Bernhard <michael.bernhard@bfh.ch>
Diffstat (limited to 'hostapd/hostapd.c')
-rw-r--r--hostapd/hostapd.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/hostapd/hostapd.c b/hostapd/hostapd.c
index 64e5b99..e8d8460 100644
--- a/hostapd/hostapd.c
+++ b/hostapd/hostapd.c
@@ -166,17 +166,18 @@ static void hostapd_logger_cb(void *ctx, const u8 *addr, unsigned int module,
static void hostapd_deauth_all_stas(struct hostapd_data *hapd)
{
-#if 0
u8 addr[ETH_ALEN];
- os_memset(addr, 0xff, ETH_ALEN);
- hostapd_sta_deauth(hapd, addr, WLAN_REASON_PREV_AUTH_NOT_VALID);
-#else
/* New Prism2.5/3 STA firmware versions seem to have issues with this
* broadcast deauth frame. This gets the firmware in odd state where
- * nothing works correctly, so let's skip sending this for a while
- * until the issue has been resolved. */
-#endif
+ * nothing works correctly, so let's skip sending this for the hostap
+ * driver. */
+
+ if (os_strcmp(hapd->driver->name, "hostap") != 0) {
+ os_memset(addr, 0xff, ETH_ALEN);
+ hostapd_sta_deauth(hapd, addr,
+ WLAN_REASON_PREV_AUTH_NOT_VALID);
+ }
}