Skip to main content
Homepage
Explore
Search or go to…
/
Sign in
Explore
Primary navigation
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
?
Collapse sidebar
Snippets
Groups
Projects
Show more breadcrumbs
Multi-AP
map-controller
Commits
1db64426
Commit
1db64426
authored
Aug 24, 2021
by
Filip Matusiak
Browse files
Options
Downloads
Patches
Plain Diff
map-controller: implement debug_1905_ack
parent
f30eafce
No related branches found
No related tags found
1 merge request
!47
map-controller: implement debug_1905_ack
Pipeline
#27163
failed
Aug 25, 2021
Status:
Stage: static_code_analysis
Status:
Stage: checkpatch
Status:
Stage: functional_test
Changes
1
Pipelines
4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/core/cntlr_map_debug.c
+24
-28
24 additions, 28 deletions
src/core/cntlr_map_debug.c
with
24 additions
and
28 deletions
src/core/cntlr_map_debug.c
+
24
−
28
View file @
1db64426
...
...
@@ -220,36 +220,32 @@ int debug_ap_autoconfig_wsc(void *cntlr, struct cmdu_buff *cmdu)
int
debug_1905_ack
(
void
*
cntlr
,
struct
cmdu_buff
*
cmdu
)
{
int
idx
;
struct
tlv_policy
a_policy
[]
=
{
[
0
]
=
{
.
type
=
MAP_TLV_ERROR_CODE
,
.
present
=
TLV_PRESENT_MORE
},
};
struct
tlv
*
tv
[
1
][
16
]
=
{
0
};
cmdu_parse_tlvs
(
cmdu
,
tv
,
a_policy
,
1
);
trace
(
"%s: --->
\n
"
,
__func__
);
trace
(
"parsing 1905 ack |"
MACFMT
"|
\n
"
,
MAC2STR
(
cmdu
->
origin
));
idx
=
0
;
while
(
tv
[
0
][
idx
])
{
struct
tlv_error_code
*
data
;
struct
tlv
*
t
=
(
struct
tlv
*
)
tv
[
0
][
idx
++
];
data
=
(
struct
tlv_error_code
*
)
t
->
data
;
trace
(
"
\n
TLV type: MAP_TLV_ERROR_CODE
\n
"
);
trace
(
"
\t
reason code: %d
\n
"
,
data
->
reason
);
trace
(
"
\t
sta addr:"
MACFMT
"
\n
"
,
MAC2STR
(
data
->
macaddr
));
trace
(
"
\n
"
);
}
return
0
;
// trace("parsing 1905 ack 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_ERROR_CODE:
// {
// struct tlv_error_code *p = (struct tlv_error_code *)tlv;
//
// trace("\treason_code: %d\n",
// p->reason_code);
// trace("\tsta addr: " MACFMT "\n",
// MAC2STR(p->addr));
// break;
// }
// default:
// fprintf(stdout, "unknown TLV in CMDU:|%s|",
// map_stringify_cmdu_type(cmdu->message_type));
// break;
// }
// trace("\n");
// }
// return 0;
}
int
debug_ap_caps_report
(
void
*
cntlr
,
struct
cmdu_buff
*
cmdu
)
...
...
...
...
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