wlan: Enhancing the Existing Auto Channel Algorithm
Added the support for considering the Adjacent Interference Before
picking the Channel. In case of any free non-overlapping channel, picking that one
CRs-Fixed: 445204
Change-Id: I058461b852319e9808d9815f1179d0a9e1727eea
diff --git a/CORE/SAP/src/sapChSelect.h b/CORE/SAP/src/sapChSelect.h
index 7d88c5b..5f02a53 100644
--- a/CORE/SAP/src/sapChSelect.h
+++ b/CORE/SAP/src/sapChSelect.h
@@ -104,9 +104,30 @@
#define SAP_CHANNEL_NOT_SELECTED (0)
#define SOFTAP_HT20_CHANNELWIDTH 0
-#define SAP_EXT_CHAN_RSSI (-20)
-#define SAP_EXT_SUBBAND2_RSSI (-30)
-#define SAP_EXT_SUBBAND3_RSSI (-40)
+#define SAP_SUBBAND1_RSSI_EFFECT_PRIMARY (-20) // In HT40/VHT80, Effect of primary Channel RSSi on Subband1
+#define SAP_SUBBAND2_RSSI_EFFECT_PRIMARY (-30) // In VHT80, Effect of primary Channel RSSI on Subband2
+#define SAP_SUBBAND3_RSSI_EFFECT_PRIMARY (-40) // In VHT80, Effect of Primary Channel RSSI on Subband3
+
+#define SAP_24GHZ_FIRST_OVERLAP_CHAN_RSSI_EFFECT_PRIMARY (-10) // In 2.4GHZ, Effect of Primary Channel RSSI on First Overlapping Channel
+#define SAP_24GHZ_SEC_OVERLAP_CHAN_RSSI_EFFECT_PRIMARY (-20) // In 2.4GHZ, Effect of Primary Channel RSSI on Second Overlapping Channel
+#define SAP_24GHZ_THIRD_OVERLAP_CHAN_RSSI_EFFECT_PRIMARY (-30) // In 2.4GHZ, Effect of Primary Channel RSSI on Third Overlapping Channel
+#define SAP_24GHZ_FOURTH_OVERLAP_CHAN_RSSI_EFFECT_PRIMARY (-40) // In 2.4GHZ, Effect of Primary Channel RSSI on Fourth Overlapping Channel
+
+typedef enum
+{
+ CHANNEL_1 = 1,
+ CHANNEL_2,
+ CHANNEL_3,
+ CHANNEL_4,
+ CHANNEL_5,
+ CHANNEL_6,
+ CHANNEL_7,
+ CHANNEL_8,
+ CHANNEL_9,
+ CHANNEL_10,
+ CHANNEL_11
+} tSapChannel;
+
/**
* Structure holding information of each channel in the spectrum,
* it contains the channel number, the computed weight