qcacld-3.0: Update band_capability INI to use bitmap

The band_capability field is used in other places to be
a bitmap over reg_wifi_band. Update the field in wma_tgt_cfg and
wlan_mlme_generic to take the same bitmap for consistency.
Update all references to these fields to expect a bitmap as well.

Change-Id: I8abd697e2fbe02b4eadd32f3027bef7408bac2a0
CRs-fixed: 2726710
This commit is contained in:
Lincoln Tran
2020-07-07 18:52:30 -07:00
committed by snandini
parent ae90b01281
commit 1de7a9a643
13 changed files with 65 additions and 42 deletions

View File

@@ -140,13 +140,21 @@
/*
* <ini>
* BandCapability - Preferred band (0: Both, 1: 2.4G only, 2: 5G only)
* BandCapability - Preferred band (0: Both 2.4G and 5G,
* 1: 2.4G only,
* 2: 5G only,
* 3: Both 2.4G and 5G,
* 4: 6G only,
* 5: Both 2.4G and 6G,
* 6: Both 5G and 6G,
* 7: 2.4G, 5G, and 6G)
* @Min: 0
* @Max: 2
* @Default: 0
* @Max: 7
* @Default: 7
*
* This ini is used to set default band capability
* (0: Both, 1: 2.4G only, 2: 5G only)
* (0: Both 2.4G and 5G, 1: 2.4G only, 2: 5G only, 3: Both 2.4G and 5G,
* 4: 6G only, 5: Both 2.4G and 6G, 6: Both 5G and 6G, 7: 2.4G, 5G, and 6G)
*
* Related: None
*
@@ -159,8 +167,8 @@
#define CFG_BAND_CAPABILITY CFG_INI_UINT( \
"BandCapability", \
0, \
2, \
0, \
7, \
7, \
CFG_VALUE_OR_DEFAULT, \
"Band Capability")