Disable functionality in hostapd_deauth_all_stas for hostap driver only
Signed-off-by: Michael Bernhard <michael.bernhard@bfh.ch>
This commit is contained in:
parent
fe2b7dda02
commit
b717ee2ab2
1 changed files with 8 additions and 7 deletions
|
@ -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)
|
static void hostapd_deauth_all_stas(struct hostapd_data *hapd)
|
||||||
{
|
{
|
||||||
#if 0
|
|
||||||
u8 addr[ETH_ALEN];
|
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
|
/* New Prism2.5/3 STA firmware versions seem to have issues with this
|
||||||
* broadcast deauth frame. This gets the firmware in odd state where
|
* broadcast deauth frame. This gets the firmware in odd state where
|
||||||
* nothing works correctly, so let's skip sending this for a while
|
* nothing works correctly, so let's skip sending this for the hostap
|
||||||
* until the issue has been resolved. */
|
* driver. */
|
||||||
#endif
|
|
||||||
|
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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue