aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/services/hostapd/patches/600-ubus_support.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2021-05-18 16:08:59 +0200
committerFelix Fietkau <nbd@nbd.name>2021-05-26 11:48:14 +0200
commit753a91d1d122434a75e12d2e16568b6dba6bf034 (patch)
tree5cf0aa03e2668f6abbba92db00b10629ddb6a329 /package/network/services/hostapd/patches/600-ubus_support.patch
parent8e2ca15726bcfcf43051c3a2f7e2f96a51f0f001 (diff)
downloadupstream-753a91d1d122434a75e12d2e16568b6dba6bf034.tar.gz
upstream-753a91d1d122434a75e12d2e16568b6dba6bf034.tar.bz2
upstream-753a91d1d122434a75e12d2e16568b6dba6bf034.zip
hostapd: report radar detected events via ubus
Events are reported on all BSS interfaces Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'package/network/services/hostapd/patches/600-ubus_support.patch')
-rw-r--r--package/network/services/hostapd/patches/600-ubus_support.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/package/network/services/hostapd/patches/600-ubus_support.patch b/package/network/services/hostapd/patches/600-ubus_support.patch
index 0d1cb2c3e4..8d9d3eb7c1 100644
--- a/package/network/services/hostapd/patches/600-ubus_support.patch
+++ b/package/network/services/hostapd/patches/600-ubus_support.patch
@@ -462,3 +462,14 @@
return hostapd_vlan_if_remove(hapd, vlan->ifname);
}
+--- a/src/ap/dfs.c
++++ b/src/ap/dfs.c
+@@ -1179,6 +1179,8 @@ int hostapd_dfs_radar_detected(struct ho
+ "freq=%d ht_enabled=%d chan_offset=%d chan_width=%d cf1=%d cf2=%d",
+ freq, ht_enabled, chan_offset, chan_width, cf1, cf2);
+
++ hostapd_ubus_notify_radar_detected(iface, freq, chan_width, cf1, cf2);
++
+ /* Proceed only if DFS is not offloaded to the driver */
+ if (iface->drv_flags & WPA_DRIVER_FLAGS_DFS_OFFLOAD)
+ return 0;