qcacmn: Move PCL weight macros to api header file

Move PCL weight macros to API header file.

Change-Id: I3183dd8301cd971475d492791df89cd77af2943f
CRs-Fixed: 2009818
This commit is contained in:
Tushnim Bhattacharyya 2017-03-14 14:43:24 -07:00 • committed by Sandeep Puligilla
commit ab48861007
2 changed files with 27 additions and 27 deletions

View file

@ -39,6 +39,33 @@
#define POLICY_MGR_MAX_CHANNEL_LIST 128
/**
* Some max value greater than the max length of the channel list
*/
#define MAX_WEIGHT_OF_PCL_CHANNELS 255
/**
* Some fixed weight difference between the groups
*/
#define PCL_GROUPS_WEIGHT_DIFFERENCE 20
/**
* Currently max, only 3 groups are possible as per 'enum policy_mgr_pcl_type'.
* i.e., in a PCL only 3 groups of channels can be present
* e.g., SCC channel on 2.4 Ghz, SCC channel on 5 Ghz & 5 Ghz channels.
* Group 1 has highest priority, group 2 has the next higher priority
* and so on.
*/
#define WEIGHT_OF_GROUP1_PCL_CHANNELS MAX_WEIGHT_OF_PCL_CHANNELS
#define WEIGHT_OF_GROUP2_PCL_CHANNELS \
(WEIGHT_OF_GROUP1_PCL_CHANNELS - PCL_GROUPS_WEIGHT_DIFFERENCE)
#define WEIGHT_OF_GROUP3_PCL_CHANNELS \
(WEIGHT_OF_GROUP2_PCL_CHANNELS - PCL_GROUPS_WEIGHT_DIFFERENCE)
#define WEIGHT_OF_GROUP4_PCL_CHANNELS \
(WEIGHT_OF_GROUP3_PCL_CHANNELS - PCL_GROUPS_WEIGHT_DIFFERENCE)
#define WEIGHT_OF_NON_PCL_CHANNELS 1
#define WEIGHT_OF_DISALLOWED_CHANNELS 0
/**
* enum hw_mode_ss_config - Possible spatial stream configuration
* @HW_MODE_SS_0x0: Unused Tx and Rx of MAC