Browse Source

cnss2: Add code to update feature list if WLAN_EN gpio supported

Add code to update feature list with CNSS_WLAN_EN_FEATURE flag
if WLAN_EN gpio is supported, the host indicates to firmware
about the WLAN_EN support via the feature list which is sent as
part of host capability qmi message. This would help firmware
to decouple the PERST in RDDM for MSM targets.

Change-Id: Iec870a0f9528a4ffdb118459ec611b33ff01cf80
CRs-Fixed: 3084551
Yu Wang 2 years ago
parent
commit
1296d41e40
1 changed files with 2 additions and 0 deletions
  1. 2 0
      cnss2/power.c

+ 2 - 0
cnss2/power.c

@@ -832,6 +832,8 @@ int cnss_get_pinctrl(struct cnss_plat_data *plat_priv)
 				    ret);
 			goto out;
 		}
+
+		cnss_set_feature_list(plat_priv, CNSS_WLAN_EN_SUPPORT_V01);
 	} else {
 		pinctrl_info->wlan_en_gpio = -EINVAL;
 	}