hostapd: fix broken check in radar detection notification
authorFelix Fietkau <nbd@nbd.name>
Wed, 11 Aug 2021 17:00:22 +0000 (19:00 +0200)
committerFelix Fietkau <nbd@nbd.name>
Wed, 11 Aug 2021 17:01:09 +0000 (19:01 +0200)
This check was accidentally left in after reworking the code,
causing a segfault

Signed-off-by: Felix Fietkau <nbd@nbd.name>
package/network/services/hostapd/src/src/ap/ubus.c

index 07c366508c4e323964a769309d588a6641f4b35d..09b25a29e52be2137a30ca80af063ae697b175b6 100644 (file)
@@ -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);