Skip to content
Snippets Groups Projects
Commit ae48f47b authored by Anjan Chanda's avatar Anjan Chanda
Browse files

update 'channel_sel' policy

parent 7d5c37ba
No related branches found
No related tags found
3 merge requests!295wifi_opclass: add wifi_radio_opclass_update_channel,!294Revert "fix typo query_channel_pref enum",!293Draft: Janusz cntlr apis
......@@ -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) = {
......
......@@ -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
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment