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
Merge requests
!243
Limiting length of Wi-Fi BH links chains
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Limiting length of Wi-Fi BH links chains
kamil_bh_max_hops_new
into
devel
Overview
0
Commits
1
Pipelines
26
Changes
5
Merged
Kamil Zulewski
requested to merge
kamil_bh_max_hops_new
into
devel
2 years ago
Overview
0
Commits
1
Pipelines
26
Changes
5
Expand
0
0
Merge request reports
Compare
devel
version 25
04c778ca
1 year ago
version 24
398d4724
1 year ago
version 23
7b717498
1 year ago
version 22
55d55bb4
1 year ago
version 21
919b6b40
1 year ago
version 20
ac9c2adf
2 years ago
version 19
de8e2bd3
2 years ago
version 18
2c95b64a
2 years ago
version 17
60a6db36
2 years ago
version 16
36111111
2 years ago
version 15
91b8b2c3
2 years ago
version 14
11633a5c
2 years ago
version 13
e91bd0cd
2 years ago
version 12
dc16368a
2 years ago
version 11
cec929cc
2 years ago
version 10
4c63c826
2 years ago
version 9
b9a2511b
2 years ago
version 8
c761c61e
2 years ago
version 7
8af6cf87
2 years ago
version 6
23623919
2 years ago
version 5
d208f35e
2 years ago
version 4
651abb72
2 years ago
version 3
9087666a
2 years ago
version 2
c36eb2cc
2 years ago
version 1
dc8b7129
2 years ago
devel (base)
and
latest version
latest version
cc500019
1 commit,
1 year ago
version 25
04c778ca
1 commit,
1 year ago
version 24
398d4724
1 commit,
1 year ago
version 23
7b717498
1 commit,
1 year ago
version 22
55d55bb4
1 commit,
1 year ago
version 21
919b6b40
1 commit,
1 year ago
version 20
ac9c2adf
10 commits,
2 years ago
version 19
de8e2bd3
10 commits,
2 years ago
version 18
2c95b64a
9 commits,
2 years ago
version 17
60a6db36
8 commits,
2 years ago
version 16
36111111
7 commits,
2 years ago
version 15
91b8b2c3
7 commits,
2 years ago
version 14
11633a5c
7 commits,
2 years ago
version 13
e91bd0cd
7 commits,
2 years ago
version 12
dc16368a
7 commits,
2 years ago
version 11
cec929cc
6 commits,
2 years ago
version 10
4c63c826
6 commits,
2 years ago
version 9
b9a2511b
5 commits,
2 years ago
version 8
c761c61e
4 commits,
2 years ago
version 7
8af6cf87
3 commits,
2 years ago
version 6
23623919
2 commits,
2 years ago
version 5
d208f35e
2 commits,
2 years ago
version 4
651abb72
1 commit,
2 years ago
version 3
9087666a
1 commit,
2 years ago
version 2
c36eb2cc
1 commit,
2 years ago
version 1
dc8b7129
1 commit,
2 years ago
5 files
+
83
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
5
Search (e.g. *.vue) (Ctrl+P)
src/cntlr.c
+
65
−
0
Options
@@ -477,6 +477,71 @@ static int forall_node_update_neighbors(struct controller *c)
}
#endif
void
cntrl_send_max_wifi_bh_hops_policy
(
struct
controller
*
c
)
{
struct
node
*
node
;
if
(
c
->
cfg
.
max_node_bh_hops
==
0
)
return
;
trace
(
"%s: max_node_bh_hops %d
\n
"
,
__func__
,
c
->
cfg
.
max_node_bh_hops
);
list_for_each_entry
(
node
,
&
c
->
nodelist
,
list
)
{
enum
bh_control
{
BLOCK
=
0x00
,
UNBLOCK
=
0x01
}
bh_control
=
UNBLOCK
;
struct
bh_topology_dev
*
bh_topo_dev
=
find_bh_topology_device
(
node
->
alid
);
struct
netif_radio
*
radio
;
if
(
!
bh_topo_dev
)
{
err
(
"%s: device not found in bh topo model, logical error.
\n
"
,
__func__
);
continue
;
}
if
(
bh_topo_dev
->
bh_info
.
level_in_tree
==
UNKNOWN_TREE_LEVEL
)
{
warn
(
"%s: Level in BH treee unknown for: "
MACFMT
"
\n
"
,
__func__
,
MAC2STR
(
node
->
alid
));
continue
;
}
if
(
c
->
cfg
.
max_node_bh_hops
<=
bh_topo_dev
->
bh_info
.
wifi_hops_from_root
)
bh_control
=
BLOCK
;
list_for_each_entry
(
radio
,
&
node
->
radiolist
,
list
)
{
struct
netif_iface
*
iface
;
list_for_each_entry
(
iface
,
&
radio
->
iflist
,
list
)
{
/* cppcheck-suppress uninitvar */
if
(
iface
->
bss
->
is_bbss
)
{
const
uint8_t
NO_VALIDITY_PERIOD
=
0
;
uint8_t
ALL_BSTAS
[
6
]
=
{
0xff
,
0xff
,
0xff
,
0xff
,
0xff
,
0xff
};
uint16_t
mid
;
trace
(
"%s: sending BH assoc_mode %s, node al_mac: "
MACFMT
", wifi_hops_from_root: %d, bssid: "
MACFMT
"
\n
"
,
__func__
,
bh_control
?
"UNBLOCK"
:
"BLOCK"
,
MAC2STR
(
node
->
alid
),
bh_topo_dev
->
bh_info
.
wifi_hops_from_root
,
MAC2STR
(
iface
->
bss
->
bssid
));
cntlr_send_client_assoc_ctrl_request
(
c
,
node
->
alid
,
iface
->
bss
->
bssid
,
bh_control
,
NO_VALIDITY_PERIOD
,
1
,
ALL_BSTAS
,
&
mid
);
}
}
}
}
}
void
cntlr_update_sta_steer_counters
(
struct
controller
*
c
,
uint8_t
*
sta_mac
,
uint8_t
*
src_bssid
,
Loading