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
Šī revīzija ir iekļauta:
Jianmin Zhu
2022-07-22 07:17:07 +08:00
revīziju iesūtīja Madan Koyyalamudi
vecāks 6e12b33067
revīzija a7a1ff47f1
3 mainīti faili ar 16 papildinājumiem un 31 dzēšanām

Parādīt failu

@@ -1929,7 +1929,7 @@ static void util_get_partner_link_info(struct scan_cache_entry *scan_entry)
rnr->operating_class,
true);
if (!link_info->freq)
scm_debug("freq 0 rnr channel %d op_class %d",
scm_debug("freq 0 rnr channel %u op_class %u",
rnr->channel_number,
rnr->operating_class);
link_info->op_class = rnr->operating_class;