qcacld-3.0: Support HE dual band by default

Add support for dual band in HE caps by:
1) Setting default value of HE dual_band support to 1.
2) Checking advertised FW MAC cap for support of both bands.

Change-Id: I978e4082364b832dc3f49f13a00ef9159f269f72
CRs-Fixed: 2160792
This commit is contained in:
Naveen Rawat 2017-12-18 16:11:32 -08:00 • committed by snandini
commit a015a2f712
2 changed files with 3 additions and 1 deletions

View file

@ -111,6 +111,8 @@ void hdd_update_tgt_he_cap(struct hdd_context *hdd_ctx,
hdd_he_set_wni_cfg(hdd_ctx, WNI_CFG_HE_AMSDU_IN_AMPDU,
he_cap->amsdu_in_ampdu);
he_cap->dual_band = ((cfg->band_cap == BAND_ALL) &&
(hdd_ctx->config->nBandCapability == BAND_ALL));
hdd_he_set_wni_cfg(hdd_ctx, WNI_CFG_HE_DUAL_BAND, he_cap->dual_band);
chan_width = HE_CH_WIDTH_COMBINE(he_cap->chan_width_0,
he_cap->chan_width_1, he_cap->chan_width_2,

View file

@ -1508,7 +1508,7 @@ enum {
#define WNI_CFG_HE_DUAL_BAND_STAMIN 0
#define WNI_CFG_HE_DUAL_BAND_STAMAX 1
#define WNI_CFG_HE_DUAL_BAND_STADEF 0
#define WNI_CFG_HE_DUAL_BAND_STADEF 1
#define WNI_CFG_HE_CHAN_WIDTH_STAMIN 0
#define WNI_CFG_HE_CHAN_WIDTH_STAMAX 0x3F