Commit 6b2a402b authored by Saurabh Verma's avatar Saurabh Verma
Browse files

gaurd r4 related functions with #ifdef

parent 50a162b9
Pipeline #73894 passed with stages
in 4 minutes and 37 seconds
......@@ -962,6 +962,7 @@ error:
return NULL;
}
#if (EASYMESH_VERSION > 2)
struct cmdu_buff *cntlr_gen_dpp_cce_indication(struct controller *c,
uint8_t *agent, bool cce_advertise)
{
......@@ -990,3 +991,4 @@ error:
cmdu_free(frm);
return NULL;
}
#endif
......@@ -80,6 +80,8 @@ int cntlr_send_cac_req(struct controller *c, uint8_t *agent,
int cntlr_send_cac_term(struct controller *c, uint8_t *agent,
int num_data, struct cac_data *data);
#if (EASYMESH_VERSION > 2)
struct cmdu_buff *cntlr_gen_dpp_cce_indication(struct controller *c,
uint8_t *agent, bool cce_advertise);
#endif
#endif
......@@ -116,6 +116,8 @@ int cntlr_gen_tlv_error_code(struct controller *c,
struct cmdu_buff *frm, uint8_t *macaddr, uint8_t reason_code);
int cntlr_gen_tlv_higher_layer_data(struct controller *c, struct cmdu_buff *frm,
uint8_t proto, uint8_t *data, int len);
#if (EASYMESH_VERSION > 2)
int cntlr_gen_dpp_cce_indication_tlv(struct controller *c, struct cmdu_buff *frm,
bool cce_advertise);
int cntlr_gen_dpp_chirp(struct controller *c, struct cmdu_buff *frm);
......@@ -123,3 +125,5 @@ int cntlr_gen_device_1905_layer_security_cap(struct controller *c,
struct cmdu_buff *frm);
int cntlr_gen_cntlr_capability(struct controller *c, struct cmdu_buff *frm);
#endif
#endif
......@@ -1208,7 +1208,9 @@ static int cntlr_config_get_agent_radio(struct controller_config *c,
RADIO_RPT_HYS_MARGIN,
RADIO_INC_STA_STATS,
RADIO_INC_STA_METRIC,
#if (EASYMESH_VERSION > 2)
RADIO_INC_WIFI6_STA_STATUS,
#endif
NUM_POLICIES,
};
const struct uci_parse_option opts[] = {
......@@ -1223,7 +1225,9 @@ static int cntlr_config_get_agent_radio(struct controller_config *c,
{ .name = "report_rcpi_hysteresis_margin", .type = UCI_TYPE_STRING },
{ .name = "include_sta_stats", .type = UCI_TYPE_STRING },
{ .name = "include_sta_metric", .type = UCI_TYPE_STRING },
#if (EASYMESH_VERSION > 2)
{ .name = "include_wifi6_sta_status", .type = UCI_TYPE_STRING },
#endif
};
struct uci_option *tb[NUM_POLICIES];
struct radio_policy *a;
......@@ -1297,11 +1301,13 @@ static int cntlr_config_get_agent_radio(struct controller_config *c,
true : false;
}
#if (EASYMESH_VERSION > 2)
if (tb[RADIO_INC_WIFI6_STA_STATUS]) {
a->include_wifi6_sta_status =
atoi(tb[RADIO_INC_WIFI6_STA_STATUS]->v.string) == 1 ?
true : false;
}
#endif
return 0;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment