Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
map-agent
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-agent
Commits
df9a5f71
Commit
df9a5f71
authored
2 years ago
by
Jakob Olsson
Browse files
Options
Downloads
Patches
Plain Diff
ts: clean stale VIDs
parent
c5504e63
Branches
Branches containing commit
No related tags found
1 merge request
!398
ts: clean stale VIDs
Pipeline
#103660
passed
2 years ago
Stage: static_code_analysis
Stage: compile_test
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/nl.c
+8
-0
8 additions, 0 deletions
src/nl.c
with
8 additions
and
0 deletions
src/nl.c
+
8
−
0
View file @
df9a5f71
...
...
@@ -299,18 +299,26 @@ static void ts_set_iface_vlan(struct ts_context *ts, struct ts_iface *tsif)
static
void
ts_set_system
(
struct
ts_context
*
ts
)
{
char
buf
[
16
]
=
{
0
};
char
cmd
[
128
]
=
{
0
};
uint16_t
vid
;
int
i
;
if
(
ts
->
primary_vid
==
0
)
return
;
strncpy
(
cmd
,
"/lib/wifi/multiap ts keep"
,
sizeof
(
cmd
));
for
(
i
=
0
;
i
<
ts
->
num_vids
;
i
++
)
{
vid
=
ts
->
all_vids
[
i
];
warn
(
"/lib/wifi/multiap ts create %u
\n
"
,
vid
);
Cmd
(
buf
,
sizeof
(
buf
),
"/lib/wifi/multiap ts create %u"
,
vid
);
snprintf
(
cmd
+
strlen
(
cmd
),
sizeof
(
cmd
)
-
strlen
(
cmd
),
" %hu"
,
vid
);
}
/* remove any stale vids from network config */
if
(
ts
->
num_vids
)
Cmd
(
buf
,
sizeof
(
buf
),
cmd
);
warn
(
"/lib/wifi/multiap ts reload
\n
"
);
Cmd
(
buf
,
sizeof
(
buf
),
"/lib/wifi/multiap ts reload"
);
}
...
...
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