From 249ddc70eb88af60145369e6ac0e07d2f573bd96 Mon Sep 17 00:00:00 2001 From: Shashikala Prabhu Date: Mon, 26 Feb 2018 10:15:04 +0530 Subject: [PATCH] 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 --- umac/dfs/core/src/dfs_channel.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/umac/dfs/core/src/dfs_channel.h b/umac/dfs/core/src/dfs_channel.h index 8a44a6204de3..cb5a636c2fa0 100644 --- a/umac/dfs/core/src/dfs_channel.h +++ b/umac/dfs/core/src/dfs_channel.h @@ -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))