Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
map-controller
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Multi-AP
map-controller
Commits
c13000b3
Commit
c13000b3
authored
4 years ago
by
Saurabh Verma
Browse files
Options
Downloads
Patches
Plain Diff
map-controller: [WIP]Sync with latest devel (
84e1bbf1
).
parent
2f1c353b
No related branches found
No related tags found
No related merge requests found
Pipeline
#9579
failed
4 years ago
Stage: static_code_analysis
Stage: checkpatch
Stage: functional_test
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
src/controller.conf
+2
-0
2 additions, 0 deletions
src/controller.conf
src/core/cntlr_tlv_generator.c
+2
-1
2 additions, 1 deletion
src/core/cntlr_tlv_generator.c
src/core/config.c
+8
-0
8 additions, 0 deletions
src/core/config.c
src/core/config.h
+1
-0
1 addition, 0 deletions
src/core/config.h
with
13 additions
and
1 deletion
src/controller.conf
+
2
−
0
View file @
c13000b3
...
...
@@ -52,6 +52,7 @@ config agent-policy
option
report_metric_periodic
'0'
# 0, or 1 - 255 in secs
option
report_rcpi_threshold
'0'
# 0, or 1 - 220
option
report_util_threshold
'0'
# 0, or channel-util value
option
rcpi_hysteresis_margin
'0'
# 0, or > 0 - hysteresis margin
option
include_sta_stats
'0'
# sta stats in AP metric resp
option
include_sta_metric
'0'
# sta metric in AP metric resp
option
pvid
'100'
# primary vlan id
...
...
@@ -72,6 +73,7 @@ config agent-policy
option
report_metric_periodic
'0'
# 0, or 1 - 255 in secs
option
report_rcpi_threshold
'0'
# 0, or 1 - 220
option
report_util_threshold
'0'
# 0, or channel-util value
option
rcpi_hysteresis_margin
'0'
# 0, or > 0 - hysteresis margin
option
include_sta_stats
'0'
# sta stats in AP metric resp
option
include_sta_metric
'0'
# sta metric in AP metric resp
option
pvid
'100'
# primary vlan id
...
...
This diff is collapsed.
Click to expand it.
src/core/cntlr_tlv_generator.c
+
2
−
1
View file @
c13000b3
...
...
@@ -397,7 +397,8 @@ struct tlv_metric_report_policy *cntlr_gen_metric_report_policy(
memcpy
(
p
->
metric_reporting_policy
[
i
].
radio_id
,
&
radiolist
[
i
*
6
],
6
);
p
->
metric_reporting_policy
[
i
].
rcpi_thres
=
a
->
report_rcpi_threshold
;
p
->
metric_reporting_policy
[
i
].
rcpi_hysteresis_margin
;
//FIXME
p
->
metric_reporting_policy
[
i
].
rcpi_hysteresis_margin
=
a
->
rcpi_hysteresis_margin
;
p
->
metric_reporting_policy
[
i
].
channel_utilization_thres
=
a
->
report_util_threshold
;
p
->
metric_reporting_policy
[
i
].
is_assoc_sta_traffic_stats
=
...
...
This diff is collapsed.
Click to expand it.
src/core/config.c
+
8
−
0
View file @
c13000b3
...
...
@@ -91,6 +91,7 @@ void cntlr_config_dump(struct controller_config *c)
dbg
(
" Report metric : %d
\n
"
,
c
->
apolicy
.
report_metric_periodic
);
dbg
(
" Report RCPI-thresh : %d
\n
"
,
c
->
apolicy
.
report_rcpi_threshold
);
dbg
(
" Report Util-thresh : %d
\n
"
,
c
->
apolicy
.
report_util_threshold
);
dbg
(
" RCPI hysteresis margin: %d
\n
"
,
c
->
apolicy
.
rcpi_hysteresis_margin
);
dbg
(
" Include STA stats : %d
\n
"
,
c
->
apolicy
.
include_sta_stats
);
dbg
(
" Include STA metric : %d
\n
"
,
c
->
apolicy
.
include_sta_metric
);
dbg
(
" Primary VLAN ID : %d
\n
"
,
c
->
apolicy
.
pvid
);
...
...
@@ -259,6 +260,7 @@ static int cntlr_config_get_agent_policy(struct controller_config *c,
POL_RPT_METRIC_PERIODIC
,
POL_RPT_RCPI_TH
,
POL_RPT_UTIL_TH
,
POL_RPT_HYS_MARGIN
,
POL_INC_STA_STATS
,
POL_INC_STA_METRIC
,
POL_PVID
,
...
...
@@ -280,6 +282,7 @@ static int cntlr_config_get_agent_policy(struct controller_config *c,
{
.
name
=
"report_metric_periodic"
,
.
type
=
UCI_TYPE_STRING
},
{
.
name
=
"report_rcpi_threshold"
,
.
type
=
UCI_TYPE_STRING
},
{
.
name
=
"report_util_threshold"
,
.
type
=
UCI_TYPE_STRING
},
{
.
name
=
"rcpi_hysteresis_margin"
,
.
type
=
UCI_TYPE_STRING
},
{
.
name
=
"include_sta_stats"
,
.
type
=
UCI_TYPE_STRING
},
{
.
name
=
"include_sta_metric"
,
.
type
=
UCI_TYPE_STRING
},
{
.
name
=
"pvid"
,
.
type
=
UCI_TYPE_STRING
},
...
...
@@ -358,6 +361,11 @@ static int cntlr_config_get_agent_policy(struct controller_config *c,
atoi
(
tb
[
POL_RPT_UTIL_TH
]
->
v
.
string
);
}
if
(
tb
[
POL_RPT_HYS_MARGIN
])
{
a
->
rcpi_hysteresis_margin
=
atoi
(
tb
[
POL_RPT_HYS_MARGIN
]
->
v
.
string
);
}
if
(
tb
[
POL_INC_STA_STATS
])
{
a
->
include_sta_stats
=
atoi
(
tb
[
POL_INC_STA_STATS
]
->
v
.
string
)
==
1
?
...
...
This diff is collapsed.
Click to expand it.
src/core/config.h
+
1
−
0
View file @
c13000b3
...
...
@@ -72,6 +72,7 @@ struct agent_policy {
uint8_t
report_metric_periodic
;
/* 0 = disable, else 1 - 255 in secs */
uint8_t
report_rcpi_threshold
;
/* 0, or 1 - 220 */
uint8_t
report_util_threshold
;
/* 0, or channel utilization value */
uint8_t
rcpi_hysteresis_margin
;
/* 0, or > 0 - hysteresis margin */
bool
include_sta_stats
;
/* sta stats in AP metric response */
bool
include_sta_metric
;
/* sta metric in AP metric response */
uint16_t
pvid
;
/* primary vlan id */
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment