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
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Multi-AP
map-controller
Commits
ae5a3c41
Commit
ae5a3c41
authored
Aug 26, 2022
by
Filip Matusiak
Browse files
Options
Downloads
Patches
Plain Diff
Add cfg option for initial channel scan feature
Signed-off-by:
Filip Matusiak
<
filip.matusiak@iopsys.eu
>
parent
a959d2df
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!139
Issue initial channel scan
Pipeline
#65401
failed
Sep 27, 2022
Stage: static_code_analysis
Stage: compile_test
Changes
4
Pipelines
3
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
README.md
+11
-0
11 additions, 0 deletions
README.md
src/cntlr_map.c
+5
-2
5 additions, 2 deletions
src/cntlr_map.c
src/config.c
+8
-0
8 additions, 0 deletions
src/config.c
src/config.h
+1
-0
1 addition, 0 deletions
src/config.h
with
25 additions
and
2 deletions
README.md
+
11
−
0
View file @
ae5a3c41
...
...
@@ -33,6 +33,7 @@ config controller 'controller'
option enable_bsta_steer '0'
option use_bcn_metrics '0'
option use_usta_metrics '0'
option initial_channel_scan '0'
option primary_vid '1'
option primary_pcp '0'
option allow_bgdfs '0'
...
...
@@ -400,8 +401,18 @@ config:
config controller 'controller'
option enable_sta_steer '1'
option use_bcn_metrics '1'
option initial_channel_scan '1'
```
BTM steering may also work fine w/o the initial_channel_scan set - it
depends on the bottom layer implementation.
Setting the initial_channel_scan option itself will cause a radio scan request
to be issued towards given node and it's reported radios, providing there was
no prior scan results reported on given radio. This radio channel scan will
be issued once controller obtains first scan capability information tlv from
given node. Radios, opclasses and channels to scan depend on these scan caps.
The steering decision is based upon drop of the STA RCPI below certain
threshold, which can be modified per radio via UCI config:
...
...
...
...
This diff is collapsed.
Click to expand it.
src/cntlr_map.c
+
5
−
2
View file @
ae5a3c41
...
...
@@ -1009,13 +1009,16 @@ static int cntlr_parse_radio_scan_caps(struct controller *c, struct node *n,
/* put addr into an array of radio MACs to be scanned */
if
(
c
->
cfg
.
initial_channel_scan
)
memcpy
(
&
radio_id
[
num_radio
],
nr
->
radio_el
->
macaddr
,
6
);
num_radio
++
;
}
/* issue a channel scan on reported radios */
if
(
c
->
cfg
.
initial_channel_scan
)
cntlr_initial_channel_scan_from_caps
(
c
,
n
,
radio_id
,
num_radio
);
return
0
;
...
...
...
...
This diff is collapsed.
Click to expand it.
src/config.c
+
8
−
0
View file @
ae5a3c41
...
...
@@ -563,6 +563,7 @@ static int cntlr_config_get_base(struct controller_config *c,
CNTLR_ENABLE_BSTA_STEER
,
CNTLR_USE_BCN_METRICS
,
CNTLR_USE_USTA_METRICS
,
CNTLR_INITIAL_CHANNEL_SCAN
,
CNTLR_STEER_MODULE
,
CNTLR_CHANNEL_PLAN_TIMEOUT
,
CNTLR_BGDFS_TIMEOUT
,
...
...
@@ -580,6 +581,7 @@ static int cntlr_config_get_base(struct controller_config *c,
{
.
name
=
"enable_bsta_steer"
,
.
type
=
UCI_TYPE_STRING
},
{
.
name
=
"use_bcn_metrics"
,
.
type
=
UCI_TYPE_STRING
},
{
.
name
=
"use_usta_metrics"
,
.
type
=
UCI_TYPE_STRING
},
{
.
name
=
"initial_channel_scan"
,
.
type
=
UCI_TYPE_STRING
},
{
.
name
=
"steer_module"
,
.
type
=
UCI_TYPE_LIST
},
{
.
name
=
"channel_plan"
,
.
type
=
UCI_TYPE_STRING
},
{
.
name
=
"allow_bgdfs"
,
.
type
=
UCI_TYPE_STRING
},
...
...
@@ -643,6 +645,12 @@ static int cntlr_config_get_base(struct controller_config *c,
c
->
use_usta_metrics
=
atoi
(
val
)
==
1
?
true
:
false
;
}
if
(
tb
[
CNTLR_INITIAL_CHANNEL_SCAN
])
{
const
char
*
val
=
tb
[
CNTLR_INITIAL_CHANNEL_SCAN
]
->
v
.
string
;
c
->
initial_channel_scan
=
atoi
(
val
)
==
1
?
true
:
false
;
}
if
(
tb
[
CNTLR_STEER_MODULE
])
{
struct
uci_element
*
e
;
struct
steer_control_config
*
sc
;
...
...
...
...
This diff is collapsed.
Click to expand it.
src/config.h
+
1
−
0
View file @
ae5a3c41
...
...
@@ -127,6 +127,7 @@ struct controller_config {
bool
enable_bsta_steer
;
bool
use_bcn_metrics
;
bool
use_usta_metrics
;
bool
initial_channel_scan
;
int
num_bss
;
int
num_apolicy
;
int
acs_timeout
;
...
...
...
...
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
sign in
to comment