qcacmn: Fix wrong score if channel width isn't 20N MHz

Some operating class like 81, channel spacing is 25, need convert
channel width to 20 to get right score when select candidate.

Fix some code style issues too.

Change-Id: I15795d016cae74b7596a199ae2883aeababaf081
CRs-Fixed: 3250207
This commit is contained in:
Jianmin Zhu
2022-07-22 07:17:07 +08:00
committad av Madan Koyyalamudi
förälder 6e12b33067
incheckning a7a1ff47f1
3 ändrade filer med 16 tillägg och 31 borttagningar

Visa fil

@@ -536,7 +536,7 @@ struct reduced_neighbor_report {
* @ecsa_ie: Pointer to eCSA IE
* @max_cst_ie: Pointer to Max Channel Switch Time IE
* @is_valid_link: The partner link can be used if true
* @op_class: Operting class
* @op_class: Operating class
*/
struct partner_link_info {
struct qdf_mac_addr link_addr;
@@ -547,7 +547,7 @@ struct partner_link_info {
const uint8_t *ecsa_ie;
const uint8_t *max_cst_ie;
uint8_t is_valid_link;
uint32_t op_class;
uint8_t op_class;
};
/**