cnss2: Update DRV support flag in the feature list of host cap

Update DRV support flag in the feature list of host cap so that
the firmware is aware of the DRV feature support on the host.

Change-Id: I6effd21293da80e023076469f7a42f5bf0018830
Signed-off-by: Mohammed Siddiq <msiddiq@codeaurora.org>
This commit is contained in:
Mohammed Siddiq 2021-07-16 17:25:33 +05:30 • committed by Gerrit - the friendly Code Review server
commit dc7b9ccc2d
2 changed files with 4 additions and 1 deletions

View file

@ -3063,8 +3063,10 @@ static bool cnss_pci_is_drv_supported(struct cnss_pci_data *pci_priv)
drv_supported ? "supported" : "not supported");
pci_priv->drv_supported = drv_supported;
if (drv_supported)
if (drv_supported) {
plat_priv->cap.cap_flag |= CNSS_HAS_DRV_SUPPORT;
cnss_set_feature_list(plat_priv, CNSS_DRV_SUPPORT_V01);
}
return drv_supported;
}

View file

@ -249,6 +249,7 @@ enum wlfw_m3_segment_type_v01 {
enum cnss_feature_v01 {
CNSS_FEATURE_MIN_VAL_V01 = INT_MIN,
BOOTSTRAP_CLOCK_SELECT_V01 = 0,
CNSS_DRV_SUPPORT_V01 = 1,
CNSS_MAX_FEATURE_V01 = 64,
CNSS_FEATURE_MAX_VAL_V01 = INT_MAX,
};