From: Felix Fietkau Date: Thu, 22 Jan 2026 11:58:24 +0000 (+0000) Subject: hostapd: fix beacon_req_policy syntax issues X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6fb3e95baab3832a3a1d267678bf1fda48643d39;p=thirdparty%2Fopenwrt.git hostapd: fix beacon_req_policy syntax issues Use the correct syntax for array element assignment Signed-off-by: Felix Fietkau --- diff --git a/package/network/services/hostapd/src/src/ap/ubus.c b/package/network/services/hostapd/src/src/ap/ubus.c index c1d68c34ff2..71b7911b056 100644 --- a/package/network/services/hostapd/src/src/ap/ubus.c +++ b/package/network/services/hostapd/src/src/ap/ubus.c @@ -1164,12 +1164,12 @@ enum { static const struct blobmsg_policy beacon_req_policy[__BEACON_REQ_MAX] = { [BEACON_REQ_ADDR] = { "addr", BLOBMSG_TYPE_STRING }, - [BEACON_REQ_OP_CLASS] { "op_class", BLOBMSG_TYPE_INT32 }, - [BEACON_REQ_CHANNEL] { "channel", BLOBMSG_TYPE_INT32 }, - [BEACON_REQ_DURATION] { "duration", BLOBMSG_TYPE_INT32 }, - [BEACON_REQ_MODE] { "mode", BLOBMSG_TYPE_INT32 }, - [BEACON_REQ_BSSID] { "bssid", BLOBMSG_TYPE_STRING }, - [BEACON_REQ_SSID] { "ssid", BLOBMSG_TYPE_STRING }, + [BEACON_REQ_OP_CLASS] = { "op_class", BLOBMSG_TYPE_INT32 }, + [BEACON_REQ_CHANNEL] = { "channel", BLOBMSG_TYPE_INT32 }, + [BEACON_REQ_DURATION] = { "duration", BLOBMSG_TYPE_INT32 }, + [BEACON_REQ_MODE] = { "mode", BLOBMSG_TYPE_INT32 }, + [BEACON_REQ_BSSID] = { "bssid", BLOBMSG_TYPE_STRING }, + [BEACON_REQ_SSID] = { "ssid", BLOBMSG_TYPE_STRING }, }; static int