]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
hostapd: fix beacon_req_policy syntax issues
authorFelix Fietkau <nbd@nbd.name>
Thu, 22 Jan 2026 11:58:24 +0000 (11:58 +0000)
committerFelix Fietkau <nbd@nbd.name>
Mon, 26 Jan 2026 17:46:16 +0000 (17:46 +0000)
Use the correct syntax for array element assignment

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

index c1d68c34ff29a06eb97946afa81b656f693e8d8d..71b7911b056ea12ee81e954c301db9175848f6a0 100644 (file)
@@ -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