[openwrt/openwrt] hostapd: fix beacon_req_policy syntax issues
LEDE Commits
lede-commits at lists.infradead.org
Mon Jan 26 09:47:19 PST 2026
nbd pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/6fb3e95baab3832a3a1d267678bf1fda48643d39
commit 6fb3e95baab3832a3a1d267678bf1fda48643d39
Author: Felix Fietkau <nbd at nbd.name>
AuthorDate: Thu Jan 22 11:58:24 2026 +0000
hostapd: fix beacon_req_policy syntax issues
Use the correct syntax for array element assignment
Signed-off-by: Felix Fietkau <nbd at nbd.name>
---
package/network/services/hostapd/src/src/ap/ubus.c | 12 ++++++------
1 file 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
More information about the lede-commits
mailing list