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
2f797c99
Commit
2f797c99
authored
4 years ago
by
Nevadita
Browse files
Options
Downloads
Patches
Plain Diff
map_cntrl: Fixed the 1905 ACK crash and added error TLV 17.2.36
parent
d3268484
No related branches found
No related tags found
1 merge request
!6
Added code for steering
Pipeline
#10238
failed
4 years ago
Stage: static_code_analysis
Stage: checkpatch
Stage: functional_test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/core/cntlr_map.c
+1
-1
1 addition, 1 deletion
src/core/cntlr_map.c
src/core/cntlr_map_debug.c
+27
-0
27 additions, 0 deletions
src/core/cntlr_map_debug.c
with
28 additions
and
1 deletion
src/core/cntlr_map.c
+
1
−
1
View file @
2f797c99
...
...
@@ -494,7 +494,7 @@ bool is_cmdu_for_us(void *module, uint16_t type)
/* TODO: handle cmdu types relevant for operating profile. */
if
(
type
>=
CMDU_TYPE_1905_START
&&
type
<=
CMDU_TYPE_
MAP_START
)
{
if
(
type
>=
CMDU_TYPE_1905_START
&&
type
<=
CMDU_TYPE_
1905_END
)
{
if
(
i1905ftable
[
type
].
handle
)
return
true
;
}
else
if
(
type
>=
CMDU_TYPE_MAP_START
&&
type
<=
CMDU_TYPE_MAP_END
)
{
...
...
This diff is collapsed.
Click to expand it.
src/core/cntlr_map_debug.c
+
27
−
0
View file @
2f797c99
...
...
@@ -58,6 +58,33 @@ int debug_ap_autoconfig_wsc(void *cntlr, struct cmdu_cstruct *cmdu)
int
debug_1905_ack
(
void
*
cntlr
,
struct
cmdu_cstruct
*
cmdu
)
{
trace
(
"%s: --->
\n
"
,
__func__
);
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
(
"
\t
reason_code: %d
\n
"
,
p
->
reason_code
);
trace
(
"
\t
sta 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
;
}
...
...
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