From 0a5b74053ad46b8865c868cd38c044c9b0fe3bf6 Mon Sep 17 00:00:00 2001 From: Beginner <70857188+Beginner-Go@users.noreply.github.com> Date: Thu, 12 Aug 2021 16:01:08 +0800 Subject: [PATCH] hostapd: fix broken check in radar detection notification (#7663) This check was accidentally left in after reworking the code, causing a segfault Signed-off-by: Felix Fietkau Co-authored-by: Felix Fietkau --- 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 07c366508..09b25a29e 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);