Skip to content
Snippets Groups Projects

Fix MAP profile config parsing

Merged Kamil Zulewski requested to merge kamil_fix_config_profile into devel
1 file
+ 14
14
Compare changes
  • Side-by-side
  • Inline
+ 14
14
@@ -577,22 +577,22 @@ static int cntlr_config_get_base(struct controller_config *c,
@@ -577,22 +577,22 @@ static int cntlr_config_get_base(struct controller_config *c,
CNTLR_DEFAULT_PCP,
CNTLR_DEFAULT_PCP,
CNTLR_ENABLE_TS,
CNTLR_ENABLE_TS,
CNTLR_PROFILE,
CNTLR_PROFILE,
 
NUM_CNTLR_ATTRS
NUM_CNTLR_ATTRS
};
};
const struct uci_parse_option opts[] = {
const struct uci_parse_option opts[NUM_CNTLR_ATTRS] = {
{ .name = "enabled", .type = UCI_TYPE_STRING },
[CNTLR_ENABLED] = { .name = "enabled", .type = UCI_TYPE_STRING },
{ .name = "registrar", .type = UCI_TYPE_STRING },
[CNTLR_REGISTRAR] = { .name = "registrar", .type = UCI_TYPE_STRING },
{ .name = "debug", .type = UCI_TYPE_STRING },
[CNTLR_DEBUG] = { .name = "debug", .type = UCI_TYPE_STRING },
{ .name = "resend_num", .type = UCI_TYPE_STRING },
[CNTLR_RESEND_NUM] = { .name = "resend_num", .type = UCI_TYPE_STRING },
{ .name = "bcn_metrics_max_num", .type = UCI_TYPE_STRING },
[CNTLR_BCN_METRICS_MAX_NUM] = { .name = "bcn_metrics_max_num", .type = UCI_TYPE_STRING },
{ .name = "initial_channel_scan", .type = UCI_TYPE_STRING },
[CNTLR_INITIAL_CHANNEL_SCAN] = { .name = "initial_channel_scan", .type = UCI_TYPE_STRING },
{ .name = "channel_plan", .type = UCI_TYPE_STRING },
[CNTLR_CHANNEL_PLAN_TIMEOUT] = { .name = "channel_plan", .type = UCI_TYPE_STRING },
{ .name = "allow_bgdfs", .type = UCI_TYPE_STRING },
[CNTLR_BGDFS_TIMEOUT] = { .name = "allow_bgdfs", .type = UCI_TYPE_STRING },
{ .name = "primary_vid", .type = UCI_TYPE_STRING },
[CNTLR_PRIMARY_VID] = { .name = "primary_vid", .type = UCI_TYPE_STRING },
{ .name = "default_pcp", .type = UCI_TYPE_STRING },
[CNTLR_DEFAULT_PCP] = { .name = "default_pcp", .type = UCI_TYPE_STRING },
{ .name = "enable_ts", .type = UCI_TYPE_STRING },
[CNTLR_ENABLE_TS] = { .name = "enable_ts", .type = UCI_TYPE_STRING },
{ .name = "enable_ts", .type = UCI_TYPE_STRING },
[CNTLR_PROFILE] = { .name = "profile", .type = UCI_TYPE_STRING },
{ .name = "profile", .type = UCI_TYPE_STRING },
};
};
struct uci_option *tb[NUM_CNTLR_ATTRS];
struct uci_option *tb[NUM_CNTLR_ATTRS];
Loading