Add new QCA vendor attribute for getting preferred channel
A new vendor attribute QCA_WLAN_VENDOR_ATTR_GET_WEIGHED_PCL is added for getting preferred channels with weight value and a flag to indicate how the channels should be used in P2P negotiation process. Signed-off-by: Peng Xu <pxu@qti.qualcomm.com>
This commit is contained in:
parent
1a2cb20d5b
commit
61536b5f41
1 changed files with 19 additions and 1 deletions
|
@ -988,6 +988,12 @@ enum qca_vendor_attr_get_preferred_freq_list {
|
||||||
* from kernel space to user space.
|
* from kernel space to user space.
|
||||||
*/
|
*/
|
||||||
QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST,
|
QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST,
|
||||||
|
/* An array of nested values as per enum qca_wlan_vendor_attr_pcl
|
||||||
|
* attribute. Each element contains frequency (MHz), weight, and flag
|
||||||
|
* bit mask indicating how the frequency should be used in P2P
|
||||||
|
* negotiation; sent from kernel space to user space.
|
||||||
|
*/
|
||||||
|
QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_WEIGHED_PCL,
|
||||||
/* keep last */
|
/* keep last */
|
||||||
QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST,
|
QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST,
|
||||||
QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX =
|
QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX =
|
||||||
|
@ -3604,7 +3610,8 @@ enum qca_wlan_vendor_external_acs_event_chan_info_attr {
|
||||||
/**
|
/**
|
||||||
* qca_wlan_vendor_attr_pcl: Represents attributes for
|
* qca_wlan_vendor_attr_pcl: Represents attributes for
|
||||||
* preferred channel list (PCL). These attributes are sent as part of
|
* preferred channel list (PCL). These attributes are sent as part of
|
||||||
* QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL.
|
* QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL and
|
||||||
|
* QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST.
|
||||||
*/
|
*/
|
||||||
enum qca_wlan_vendor_attr_pcl {
|
enum qca_wlan_vendor_attr_pcl {
|
||||||
QCA_WLAN_VENDOR_ATTR_PCL_INVALID = 0,
|
QCA_WLAN_VENDOR_ATTR_PCL_INVALID = 0,
|
||||||
|
@ -3613,6 +3620,17 @@ enum qca_wlan_vendor_attr_pcl {
|
||||||
QCA_WLAN_VENDOR_ATTR_PCL_CHANNEL = 1,
|
QCA_WLAN_VENDOR_ATTR_PCL_CHANNEL = 1,
|
||||||
/* Channel weightage (u8) */
|
/* Channel weightage (u8) */
|
||||||
QCA_WLAN_VENDOR_ATTR_PCL_WEIGHT = 2,
|
QCA_WLAN_VENDOR_ATTR_PCL_WEIGHT = 2,
|
||||||
|
/* Channel frequency (u32) in MHz */
|
||||||
|
QCA_WLAN_VENDOR_ATTR_PCL_FREQ = 3,
|
||||||
|
/* Channel flags (u32)
|
||||||
|
* bit 0 set: channel to be used for GO role,
|
||||||
|
* bit 1 set: channel to be used on CLI role,
|
||||||
|
* bit 2 set: channel must be considered for operating channel
|
||||||
|
* selection & peer chosen operating channel should be
|
||||||
|
* one of the channels with this flag set,
|
||||||
|
* bit 3 set: channel should be excluded in GO negotiation
|
||||||
|
*/
|
||||||
|
QCA_WLAN_VENDOR_ATTR_PCL_FLAG = 4,
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue