wlan: Select best RSSI with SSID & Sec match for 5G Preference

Setting the best RSSI variable to the AP having the best RSSI among the
entire scan result is not enough; Let.s say there are 3 APs,
ReferenceAP (2.4G): -15dBm, AP1 (2.4G): -40dBm and AP1 (5G): -50dBm.
Best RSSI is set to -15 dBm and RSSI bucket is extended to 45 dBm
 (15 + 30 ini config) in which case AP1 (5G) never make it to this bucket
 and hence AP1 (24G) is selected.

Instead we should be setting the best RSSI variable to the AP we are
interested to connect to based on the SSID and security match filter
on the scan result so that best RSSI is set to -40 dBm and RSSI bucket is
extended to -70 dBm (40 + 30 ini config), then AP1 (5G) can make it to
this bucket and gets selected

Change-Id: If77c3ee3c9e3d62af6d53be717205a04498e72a7
CRs-Fixed: 574673
1 file changed
tree: d9c920d65811475b11b0b414082ffa47239ca50c
  1. CORE/
  2. firmware_bin/
  3. riva/
  4. Android.mk
  5. Kbuild
  6. Kconfig