sap: Scan band preference

For AP auto channel selection, customers should be able to:
1.Only choose 2.4G for scan
2.Only choose 5G for scan
3.Scan both bands
a.Start with 2.4G, if ACS detects a suitable channel,
setup SoftAP in 2.4G itself do not waste time scanning 5G
b.Start with 5G, if ACS detects a suitable channel,
setup SoftAP in 5G itself, do not waste time scanning 2.4G

Two iwpriv commands are added to set and get scan band
preference. When scan preference is set, the preferred
band will be scanned first, if a channel is selected then
the scan is finished, otherwise the next band will be scanned.
Command format:
iwpriv wlan0 scan_band_pref <0|1|2>  0 --- no preference,
                                      1 --- prefer 2.4G band
                                      2 --- prefer 5G band
iwpriv wlan0 get_scan_pref

Change-Id: I1c99af02c7c6b5c79f3bc86c78d4b19ed71067c5
CRs-fixed: 722413
12 files changed
tree: c2623da81796acf9f5a17f41532c27d1fd3cec3e
  1. CORE/
  2. firmware_bin/
  3. riva/
  4. Android.mk
  5. Kbuild
  6. Kconfig
  7. Makefile