qcacmn: Fix radar detection failure for 11A mode

AP does not add the RADAR found channels to NOL when user configures
the AP in 11A mode. This is because, dfs_get_bonding_channels()
returns the number of bonding channels as 0 for 11A mode. Hence, the
radar detected channel are not added to NOL.

Add change to get bonding channels for 11A mode.

Change-Id: I88db7f1241c5915021071e9caa1cfb8b7fa94c7f
CRs-Fixed: 2195597
This commit is contained in:
Shashikala Prabhu 2018-02-26 10:15:04 +05:30 • committed by snandini
commit 249ddc70eb

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2016-2017 The Linux Foundation. All rights reserved.
* Copyright (c) 2016-2018 The Linux Foundation. All rights reserved.
* Copyright (c) 2008 Atheros Communications, Inc.
*
* Permission to use, copy, modify, and/or distribute this software for
@ -266,7 +266,8 @@
((struct dfs_channel *) WLAN_CHAN_ANY)
#define WLAN_IS_CHAN_MODE_20(_c) \
(WLAN_IS_CHAN_11NA_HT20(_c) || \
(WLAN_IS_CHAN_A(_c) || \
WLAN_IS_CHAN_11NA_HT20(_c) || \
WLAN_IS_CHAN_11AC_VHT20(_c) || \
WLAN_IS_CHAN_11AXA_HE20(_c))