diff options
| author | Chad Monroe | 2026-06-15 21:21:02 +0000 |
|---|---|---|
| committer | Hauke Mehrtens | 2026-06-24 23:38:56 +0000 |
| commit | 1c5daff5ac9562293e9c03cd2034c553abddc868 (patch) | |
| tree | 77d10e09ea7989a92e063cc8844b1b602f6cd938 | |
| parent | 4c2cfecc80b3ac8a5511ba07d8f88ef80b6eca17 (diff) | |
| download | openwrt-1c5daff5ac9562293e9c03cd2034c553abddc868.tar.gz | |
hostapd: fix misplaced radar-detected ubus notification
Fixes: 94037ab6b031 ("hostapd: update to 2022-07-29")
Signed-off-by: Chad Monroe <chad@monroe.io>
Link: https://github.com/openwrt/openwrt/pull/23815
(cherry picked from commit 9c48477cf70aae3ba92d0ab5c66e3859210bb941)
Link: https://github.com/openwrt/openwrt/pull/23929
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
| -rw-r--r-- | package/network/services/hostapd/patches/600-ubus_support.patch | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/package/network/services/hostapd/patches/600-ubus_support.patch b/package/network/services/hostapd/patches/600-ubus_support.patch index 0c132b9d27..c32a3d632f 100644 --- a/package/network/services/hostapd/patches/600-ubus_support.patch +++ b/package/network/services/hostapd/patches/600-ubus_support.patch @@ -81,15 +81,15 @@ probe/assoc/auth requests via object subscribe. --- a/src/ap/dfs.c +++ b/src/ap/dfs.c -@@ -1243,6 +1243,8 @@ int hostapd_dfs_pre_cac_expired(struct h +@@ -1474,6 +1474,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); + + iface->radar_detected = true; + /* Proceed only if DFS is not offloaded to the driver */ - if (iface->drv_flags & WPA_DRIVER_FLAGS_DFS_OFFLOAD) - return 0; --- a/src/ap/drv_callbacks.c +++ b/src/ap/drv_callbacks.c @@ -331,6 +331,10 @@ int hostapd_notif_assoc(struct hostapd_d |