|
@@ -844,6 +844,26 @@ static void hdd_update_vdev_nss(hdd_context_t *hdd_ctx)
|
|
|
cfg_ini->vdev_type_nss_5g, eCSR_BAND_5G);
|
|
|
}
|
|
|
|
|
|
+/**
|
|
|
+ * hdd_update_hw_dbs_capable() - sets the dbs capability of the device
|
|
|
+ * @hdd_ctx: HDD context
|
|
|
+ *
|
|
|
+ * Sets the DBS capability as per INI and firmware capability
|
|
|
+ *
|
|
|
+ * Return: None
|
|
|
+ */
|
|
|
+static void hdd_update_hw_dbs_capable(hdd_context_t *hdd_ctx)
|
|
|
+{
|
|
|
+ struct hdd_config *cfg_ini = hdd_ctx->config;
|
|
|
+ uint8_t hw_dbs_capable = 0;
|
|
|
+
|
|
|
+ if ((!cfg_ini->dual_mac_feature_disable)
|
|
|
+ && wma_is_hw_dbs_capable())
|
|
|
+ hw_dbs_capable = 1;
|
|
|
+
|
|
|
+ sme_update_hw_dbs_capable(hdd_ctx->hHal, hw_dbs_capable);
|
|
|
+}
|
|
|
+
|
|
|
static void hdd_update_tgt_ht_cap(hdd_context_t *hdd_ctx,
|
|
|
struct wma_tgt_ht_cap *cfg)
|
|
|
{
|
|
@@ -1468,6 +1488,8 @@ void hdd_update_tgt_cfg(void *context, void *param)
|
|
|
|
|
|
hdd_update_vdev_nss(hdd_ctx);
|
|
|
|
|
|
+ hdd_update_hw_dbs_capable(hdd_ctx);
|
|
|
+
|
|
|
hdd_ctx->config->fine_time_meas_cap &= cfg->fine_time_measurement_cap;
|
|
|
hdd_ctx->fine_time_meas_cap_target = cfg->fine_time_measurement_cap;
|
|
|
hdd_info("fine_time_meas_cap: 0x%x",
|