mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-17 18:34:03 -05:00
Do not start CSA flow when CSA is not supported by the driver
Signed-hostap: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
This commit is contained in:
parent
2d6ee86f9b
commit
d66873f5cf
@ -2367,6 +2367,12 @@ int hostapd_switch_channel(struct hostapd_data *hapd,
|
||||
struct csa_settings *settings)
|
||||
{
|
||||
int ret;
|
||||
|
||||
if (!(hapd->iface->drv_flags & WPA_DRIVER_FLAGS_AP_CSA)) {
|
||||
wpa_printf(MSG_INFO, "CSA is not supported");
|
||||
return -1;
|
||||
}
|
||||
|
||||
ret = hostapd_fill_csa_settings(hapd, settings);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
Loading…
Reference in New Issue
Block a user