mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-06-08 21:42:04 +08:00
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 <nbd@nbd.name> Co-authored-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
parent
a0a93fb2e0
commit
0a5b74053a
@ -1741,9 +1741,6 @@ void hostapd_ubus_notify_radar_detected(struct hostapd_iface *iface, int frequen
|
|||||||
struct hostapd_data *hapd;
|
struct hostapd_data *hapd;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
if (!hapd->ubus.obj.has_subscribers)
|
|
||||||
return;
|
|
||||||
|
|
||||||
blob_buf_init(&b, 0);
|
blob_buf_init(&b, 0);
|
||||||
blobmsg_add_u16(&b, "frequency", frequency);
|
blobmsg_add_u16(&b, "frequency", frequency);
|
||||||
blobmsg_add_u16(&b, "width", chan_width);
|
blobmsg_add_u16(&b, "width", chan_width);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user