aboutsummaryrefslogtreecommitdiffstats
path: root/package/network
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2021-08-11 19:00:22 +0200
committerFelix Fietkau <nbd@nbd.name>2021-08-11 19:01:09 +0200
commit8b7517465bee9815f43412fd4c280937d03a1258 (patch)
tree3f29f4f5e8e4b8eae505dc78ff2b9bae7c47b599 /package/network
parent5c88bf896ec1be9129292aeb522bfc0f75ec9898 (diff)
downloadupstream-8b7517465bee9815f43412fd4c280937d03a1258.tar.gz
upstream-8b7517465bee9815f43412fd4c280937d03a1258.tar.bz2
upstream-8b7517465bee9815f43412fd4c280937d03a1258.zip
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@nbd.name>
Diffstat (limited to 'package/network')
-rw-r--r--package/network/services/hostapd/src/src/ap/ubus.c3
1 files changed, 0 insertions, 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);