Bladeren bron

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
Shashikala Prabhu 7 jaren geleden
bovenliggende
commit
249ddc70eb
1 gewijzigde bestanden met toevoegingen van 3 en 2 verwijderingen
  1. 3 2
      umac/dfs/core/src/dfs_channel.h

+ 3 - 2
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))