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
!2
Added Changes for ticket 3595 section 8.1
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Added Changes for ticket 3595 section 8.1
channel_pref_controller
into
devel
Overview
0
Commits
4
Pipelines
1
Changes
2
Merged
Nevadita
requested to merge
channel_pref_controller
into
devel
4 years ago
Overview
0
Commits
4
Pipelines
1
Changes
2
Expand
Added Changes for section 8.1
0
0
Merge request reports
Compare
devel
devel (base)
and
latest version
latest version
713f5945
4 commits,
4 years ago
2 files
+
191
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
src/core/cntlr_map_debug.c
+
140
−
0
Options
@@ -170,6 +170,146 @@ int debug_ap_caps_report(void *cntlr, struct cmdu_cstruct *cmdu)
int
debug_channel_pref_report
(
void
*
cntlr
,
struct
cmdu_cstruct
*
cmdu
)
{
trace
(
"%s: --->
\n
"
,
__func__
);
trace
(
"parsing channel pref of |%s:"
MACFMT
"|
\n
"
,
cmdu
->
intf_name
,
MAC2STR
(
cmdu
->
origin
));
int
i
,
j
,
k
;
uint8_t
*
tlv
=
NULL
;
for
(
i
=
0
;
i
<
cmdu
->
num_tlvs
;
i
++
)
{
tlv
=
(
uint8_t
*
)
cmdu
->
tlvs
[
i
];
trace
(
"CMDU type: %s
\n
"
,
map_stringify_tlv_type
(
*
tlv
));
switch
(
*
tlv
)
{
case
MAP_TLV_CHANNEL_PREFERENCE
:
{
struct
tlv_channel_pref
*
p
=
(
struct
tlv_channel_pref
*
)
tlv
;
trace
(
"
\t
radio_id: "
MACFMT
"
\n
"
,
MAC2STR
(
p
->
radio_id
));
trace
(
"
\t
ch_preference_op_class_nr: %d
\n
"
,
p
->
ch_preference_op_class_nr
);
for
(
j
=
0
;
j
<
p
->
ch_preference_op_class_nr
;
j
++
)
{
trace
(
"
\t\t
op_class: %d
\n
"
,
p
->
op_class
[
j
].
op_class
);
trace
(
"
\t\t
op_channel_nr: %d
\n
"
,
p
->
op_class
[
j
].
channel_nr
);
for
(
k
=
0
;
k
<
p
->
op_class
[
j
].
channel_nr
;
k
++
)
{
trace
(
"
\t\t\t
channel: %d
\n
"
,
p
->
op_class
[
j
].
channel_list
[
k
]);
}
trace
(
"
\t\t
preference: %d
\n
"
,
p
->
op_class
[
j
].
preference
);
trace
(
"
\t\t
preference_reason: %d
\n
"
,
p
->
op_class
[
j
].
preference_reason
);
}
break
;
}
case
MAP_TLV_RADIO_OPERATION_RESTRICTION
:
{
struct
tlv_radio_oper_restrict
*
p
=
(
struct
tlv_radio_oper_restrict
*
)
tlv
;
trace
(
"
\t
radio_id: "
MACFMT
"
\n
"
,
MAC2STR
(
p
->
radio_id
));
trace
(
"
\t
op_restricted_op_class_nr: %d
\n
"
,
p
->
op_restricted_op_class_nr
);
for
(
j
=
0
;
j
<
p
->
op_restricted_op_class_nr
;
j
++
)
{
trace
(
"
\t\t
op_class: %d
\n
"
,
p
->
restricted_op_class
[
j
].
op_class
);
trace
(
"
\t\t
op_channel_nr: %d
\n
"
,
p
->
restricted_op_class
[
j
].
channel_nr
);
for
(
k
=
0
;
k
<
p
->
restricted_op_class
[
j
].
channel_nr
;
k
++
)
{
trace
(
"
\t\t\t
channel: %d
\n
"
,
p
->
restricted_op_class
[
j
].
restricted_channels
[
k
].
channel
);
trace
(
"
\t\t\t
min_freq_sep: %d
\n
"
,
p
->
restricted_op_class
[
j
].
restricted_channels
[
k
].
min_freq_sep
);
}
}
break
;
}
case
MAP_TLV_CAC_COMPLETION_REPORT
:
{
struct
tlv_cac_comp_report
*
p
=
(
struct
tlv_cac_comp_report
*
)
tlv
;
trace
(
"
\t
nbr_radios: %d
\n
"
,
p
->
nbr_radios
);
for
(
j
=
0
;
j
<
p
->
nbr_radios
;
j
++
)
{
trace
(
"
\t\t
radio_id: "
MACFMT
"
\n
"
,
MAC2STR
(
p
->
radio_data
[
j
].
radio_id
));
trace
(
"
\t\t
op_class: %d
\n
"
,
p
->
radio_data
[
j
].
op_class
);
trace
(
"
\t\t
channel: %d
\n
"
,
p
->
radio_data
[
j
].
ch
);
trace
(
"
\t\t
completion_status %d
\n
"
,
p
->
radio_data
[
j
].
completion_status
);
trace
(
"
\t\t
nbr_pairs %d
\n
"
,
p
->
radio_data
[
j
].
nbr_pairs
);
for
(
k
=
0
;
k
<
p
->
radio_data
[
j
].
nbr_pairs
;
k
++
)
{
trace
(
"
\t\t\t
op_class_detected: %d
\n
"
,
p
->
radio_data
[
j
].
pair_data
[
k
].
op_class_detected
);
trace
(
"
\t\t\t
ch_detected: %d
\n
"
,
p
->
radio_data
[
j
].
pair_data
[
k
].
ch_detected
);
}
}
break
;
}
case
MAP_TLV_CAC_STATUS_REPORT
:
{
struct
tlv_cac_status_report
*
p
=
(
struct
tlv_cac_status_report
*
)
tlv
;
trace
(
"
\t
nbr_available_ch: %d
\n
"
,
p
->
nbr_available_ch
);
for
(
j
=
0
;
j
<
p
->
nbr_available_ch
;
j
++
)
{
trace
(
"
\t\t
op_class: %d
\n
"
,
p
->
ch_data
[
j
].
op_class
);
trace
(
"
\t\t
channel: %d
\n
"
,
p
->
ch_data
[
j
].
ch
);
trace
(
"
\t\t
time: %d
\n
"
,
p
->
ch_data
[
j
].
time
);
}
trace
(
"
\t
nbr_pairs_duration: %d
\n
"
,
p
->
nbr_pairs_duration
);
for
(
j
=
0
;
j
<
p
->
nbr_pairs_duration
;
j
++
)
{
trace
(
"
\t\t
op_class: %d
\n
"
,
p
->
duration_pair_data
[
j
].
op_class
);
trace
(
"
\t\t
channel: %d
\n
"
,
p
->
duration_pair_data
[
j
].
ch
);
trace
(
"
\t\t
time: %d
\n
"
,
p
->
duration_pair_data
[
j
].
time
);
}
trace
(
"
\t
nbr_pairs_coundown: %d
\n
"
,
p
->
nbr_pairs_coundown
);
for
(
j
=
0
;
j
<
p
->
nbr_pairs_coundown
;
j
++
)
{
trace
(
"
\t\t
op_class: %d
\n
"
,
p
->
count_pair_data
[
j
].
op_class
);
trace
(
"
\t\t
channel: %d
\n
"
,
p
->
count_pair_data
[
j
].
ch
);
trace
(
"
\t\t
time: %d
\n
"
,
p
->
count_pair_data
[
j
].
time
);
}
break
;
}
default:
fprintf
(
stdout
,
"unknown TLV in CMDU:|%s|"
,
map_stringify_cmdu_type
(
cmdu
->
message_type
));
break
;
}
trace
(
"
\n
"
);
}
return
0
;
}
Loading