summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau2026-01-22 11:58:24 +0000
committerFelix Fietkau2026-01-26 17:46:16 +0000
commit6fb3e95baab3832a3a1d267678bf1fda48643d39 (patch)
treee088b48f569599d8e61b307d1428c6a4a8b66bc7
parent168d5affc3bd1aa07ce0b36ed417e6e4fa6f4a20 (diff)
downloadopenwrt-6fb3e95baab3832a3a1d267678bf1fda48643d39.tar.gz
hostapd: fix beacon_req_policy syntax issues
Use the correct syntax for array element assignment Signed-off-by: Felix Fietkau <nbd@nbd.name>
-rw-r--r--package/network/services/hostapd/src/src/ap/ubus.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/package/network/services/hostapd/src/src/ap/ubus.c b/package/network/services/hostapd/src/src/ap/ubus.c
index c1d68c34ff..71b7911b05 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