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
ae48f47b
Commit
ae48f47b
authored
1 year ago
by
Anjan Chanda
Browse files
Options
Downloads
Patches
Plain Diff
update 'channel_sel' policy
parent
7d5c37ba
No related branches found
No related tags found
3 merge requests
!295
wifi_opclass: add wifi_radio_opclass_update_channel
,
!294
Revert "fix typo query_channel_pref enum"
,
!293
Draft: Janusz cntlr apis
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/cntlr_commands.c
+48
-0
48 additions, 0 deletions
src/cntlr_commands.c
src/cntlr_commands.h
+12
-0
12 additions, 0 deletions
src/cntlr_commands.h
with
60 additions
and
0 deletions
src/cntlr_commands.c
+
48
−
0
View file @
ae48f47b
...
...
@@ -203,6 +203,54 @@ DEFINE_ATTR(send_channel_sel) = {
},
.
help
=
"Whether to consider or skip DFS channels during channel selection process"
,
},
[
CHANNEL_SEL_ATTR_EXCLUDE_OPCLASS
]
=
{
.
optional
=
1
,
.
pol
=
{
.
name
=
"exclude_opclass"
,
.
type
=
BLOBMSG_TYPE_ARRAY
,
},
.
help
=
"Array of opclasses to exclude from channel selection"
,
},
[
CHANNEL_SEL_ATTR_EXCLUDE_CHANNELS
]
=
{
.
optional
=
1
,
.
pol
=
{
.
name
=
"exclude_channels"
,
.
type
=
BLOBMSG_TYPE_ARRAY
,
},
.
help
=
"Array of channels to exclude from channel selection"
,
},
[
CHANNEL_SEL_ATTR_EXCLUDE_BANDWIDTH
]
=
{
.
optional
=
1
,
.
pol
=
{
.
name
=
"exclude_bandwidth"
,
.
type
=
BLOBMSG_TYPE_ARRAY
,
},
.
help
=
"Array of channel bandwidths to exclude from channel selection"
,
},
[
CHANNEL_SEL_ATTR_OPCLASS
]
=
{
.
optional
=
1
,
.
pol
=
{
.
name
=
"opclass"
,
.
type
=
BLOBMSG_TYPE_INT32
,
},
.
help
=
"Opclass"
,
},
[
CHANNEL_SEL_ATTR_CHANNELS
]
=
{
.
optional
=
1
,
.
pol
=
{
.
name
=
"channels"
,
.
type
=
BLOBMSG_TYPE_ARRAY
,
},
.
help
=
"Channels"
,
},
[
CHANNEL_SEL_ATTR_PREF
]
=
{
.
optional
=
1
,
.
pol
=
{
.
name
=
"pref"
,
.
type
=
BLOBMSG_TYPE_INT32
,
},
.
help
=
"Channel preference value; 0 = exclude channel, else 1 - 14 with 1 being least preferred"
,
},
};
DEFINE_ATTR
(
trigger_channel_clearing
)
=
{
...
...
This diff is collapsed.
Click to expand it.
src/cntlr_commands.h
+
12
−
0
View file @
ae48f47b
...
...
@@ -170,11 +170,23 @@ enum query_beacon_metrics_attrs {
* @ingroup cmdattrs
* @CHANNEL_SEL_ATTR_AGENT: Agent's AL-address.
* @CHANNEL_SEL_ATTR_SKIP_DFS: Skip DFS channels or not.
* @CHANNEL_SEL_ATTR_EXCLUDE_OPCLASS: Array of opclasses to exclude from channel selection.
* @CHANNEL_SEL_ATTR_EXCLUDE_CHANNELS: Array of channels to exclude.
* @CHANNEL_SEL_ATTR_EXCLUDE_BANDWIDTH: Array of channel bandwidths to exclude.
* @CHANNEL_SEL_ATTR_OPCLASS: Opclass.
* @CHANNEL_SEL_ATTR_CHANNELS: Array of channels in opclass.
* @CHANNEL_SEL_ATTR_PREF: Preference value (0-15) for channels. 0 = exclude.
* @NUM_ATTRS_CHANNEL_SEL: Number of Channel Selection request attributes.
*/
enum
channel_sel_attrs
{
CHANNEL_SEL_ATTR_AGENT
,
CHANNEL_SEL_ATTR_SKIP_DFS
,
CHANNEL_SEL_ATTR_EXCLUDE_OPCLASS
,
CHANNEL_SEL_ATTR_EXCLUDE_CHANNELS
,
CHANNEL_SEL_ATTR_EXCLUDE_BANDWIDTH
,
CHANNEL_SEL_ATTR_OPCLASS
,
CHANNEL_SEL_ATTR_CHANNELS
,
CHANNEL_SEL_ATTR_PREF
,
NUM_ATTRS_CHANNEL_SEL
};
...
...
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