mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-17 18:34:03 -05:00
hostapd: Check driver DFS offload capability for channel disablement
If the driver supports full offloading of DFS operations, do not disable a channel marked for radar detection. The driver will handle the needed operations for such channels. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
65d645ce43
commit
70634eec0c
@ -111,10 +111,13 @@ int hostapd_get_hw_features(struct hostapd_iface *iface)
|
|||||||
if ((feature->channels[j].flag &
|
if ((feature->channels[j].flag &
|
||||||
HOSTAPD_CHAN_RADAR) && dfs_enabled) {
|
HOSTAPD_CHAN_RADAR) && dfs_enabled) {
|
||||||
dfs = 1;
|
dfs = 1;
|
||||||
} else if (feature->channels[j].flag &
|
} else if (((feature->channels[j].flag &
|
||||||
(HOSTAPD_CHAN_NO_IBSS |
|
HOSTAPD_CHAN_RADAR) &&
|
||||||
HOSTAPD_CHAN_PASSIVE_SCAN |
|
!(iface->drv_flags &
|
||||||
HOSTAPD_CHAN_RADAR)) {
|
WPA_DRIVER_FLAGS_DFS_OFFLOAD)) ||
|
||||||
|
(feature->channels[j].flag &
|
||||||
|
(HOSTAPD_CHAN_NO_IBSS |
|
||||||
|
HOSTAPD_CHAN_PASSIVE_SCAN))) {
|
||||||
feature->channels[j].flag |=
|
feature->channels[j].flag |=
|
||||||
HOSTAPD_CHAN_DISABLED;
|
HOSTAPD_CHAN_DISABLED;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user