wlan_config
if (wlan_do_sysctl(&wlan_config, which, 0) < 0)
ctx->scratch->int1 = wlan_config.mesh_retryto;
wlan_config.mesh_retryto = val->v.integer;
ctx->scratch->int1 = wlan_config.mesh_holdingto;
wlan_config.mesh_holdingto = val->v.integer;
ctx->scratch->int1 = wlan_config.mesh_confirmto;
wlan_config.mesh_confirmto = val->v.integer;
ctx->scratch->int1 = wlan_config.mesh_maxretries;
wlan_config.mesh_maxretries = val->v.integer;
if (wlan_do_sysctl(&wlan_config, which, 1) < 0)
wlan_config.mesh_retryto = ctx->scratch->int1;
wlan_config.mesh_confirmto = ctx->scratch->int1;
wlan_config.mesh_holdingto= ctx->scratch->int1;
wlan_config.mesh_maxretries = ctx->scratch->int1;
if (wlan_do_sysctl(&wlan_config, which, 1) < 0)
val->v.integer = wlan_config.mesh_retryto;
val->v.integer = wlan_config.mesh_holdingto;
val->v.integer = wlan_config.mesh_confirmto;
val->v.integer = wlan_config.mesh_maxretries;
if (wlan_do_sysctl(&wlan_config, which, 0) < 0)
ctx->scratch->int1 = wlan_config.hwmp_inact;
wlan_config.hwmp_inact = val->v.integer;
ctx->scratch->int1 = wlan_config.hwmp_rannint;
wlan_config.hwmp_rannint = val->v.integer;
ctx->scratch->int1 = wlan_config.hwmp_rootint;
wlan_config.hwmp_rootint = val->v.integer;
ctx->scratch->int1 = wlan_config.hwmp_roottimeout;
wlan_config.hwmp_roottimeout = val->v.integer;
ctx->scratch->int1 = wlan_config.hwmp_pathlifetime;
wlan_config.hwmp_pathlifetime = val->v.integer;
ctx->scratch->int1 = wlan_config.hwmp_replyforward;
wlan_config.hwmp_replyforward = val->v.integer;
ctx->scratch->int1 = wlan_config.hwmp_targetonly;
wlan_config.hwmp_targetonly = val->v.integer;
if (wlan_do_sysctl(&wlan_config, which, 1) < 0)
wlan_config.hwmp_inact = ctx->scratch->int1;
wlan_config.hwmp_rannint = ctx->scratch->int1;
wlan_config.hwmp_rootint = ctx->scratch->int1;
wlan_config.hwmp_roottimeout = ctx->scratch->int1;
wlan_config.hwmp_pathlifetime = ctx->scratch->int1;
wlan_config.hwmp_replyforward = ctx->scratch->int1;
wlan_config.hwmp_targetonly = ctx->scratch->int1;
if (wlan_do_sysctl(&wlan_config, which, 1) < 0)
val->v.integer = wlan_config.hwmp_inact;
val->v.integer = wlan_config.hwmp_rannint;
val->v.integer = wlan_config.hwmp_rootint;
val->v.integer = wlan_config.hwmp_roottimeout;
val->v.integer = wlan_config.hwmp_pathlifetime;
val->v.integer = wlan_config.hwmp_replyforward;
val->v.integer = wlan_config.hwmp_targetonly;
static struct wlan_config wlan_config;
int32_t wlan_do_sysctl(struct wlan_config *cfg, enum wlan_syscl which, int set);
wlan_do_sysctl(struct wlan_config *cfg, enum wlan_syscl which, int set)