[openwrt/openwrt] hostapd: fix broken check in radar detection notification

LEDE Commits lede-commits at lists.infradead.org
Wed Aug 11 10:01:22 PDT 2021


nbd pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/8b7517465bee9815f43412fd4c280937d03a1258

commit 8b7517465bee9815f43412fd4c280937d03a1258
Author: Felix Fietkau <nbd at nbd.name>
AuthorDate: Wed Aug 11 19:00:22 2021 +0200

    hostapd: fix broken check in radar detection notification
    
    This check was accidentally left in after reworking the code,
    causing a segfault
    
    Signed-off-by: Felix Fietkau <nbd at nbd.name>
---
 package/network/services/hostapd/src/src/ap/ubus.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/package/network/services/hostapd/src/src/ap/ubus.c b/package/network/services/hostapd/src/src/ap/ubus.c
index 07c366508c..09b25a29e5 100644
--- a/package/network/services/hostapd/src/src/ap/ubus.c
+++ b/package/network/services/hostapd/src/src/ap/ubus.c
@@ -1741,9 +1741,6 @@ void hostapd_ubus_notify_radar_detected(struct hostapd_iface *iface, int frequen
 	struct hostapd_data *hapd;
 	int i;
 
-	if (!hapd->ubus.obj.has_subscribers)
-		return;
-
 	blob_buf_init(&b, 0);
 	blobmsg_add_u16(&b, "frequency", frequency);
 	blobmsg_add_u16(&b, "width", chan_width);



More information about the lede-commits mailing list