Эх сурвалжийг харах

icnss2: pass fw build id in soc info to wlan host driver

Pass fw build id as part of  soc info to wlan host driver.

Change-Id: I6a8bced678ada0f88e744b5fd3f2ed58fa4173ef
CRs-Fixed: 3324963
Sandeep Singh 2 жил өмнө
parent
commit
414f0dcf64
2 өөрчлөгдсөн 4 нэмэгдсэн , 0 устгасан
  1. 2 0
      icnss2/main.c
  2. 2 0
      inc/icnss2.h

+ 2 - 0
icnss2/main.c

@@ -3000,6 +3000,8 @@ int icnss_get_soc_info(struct device *dev, struct icnss_soc_info *info)
 	strlcpy(info->fw_build_timestamp,
 		priv->fw_version_info.fw_build_timestamp,
 		WLFW_MAX_TIMESTAMP_LEN + 1);
+	strlcpy(info->fw_build_id, priv->fw_build_id,
+	        ICNSS_WLFW_MAX_BUILD_ID_LEN + 1);
 
 	return 0;
 }

+ 2 - 0
inc/icnss2.h

@@ -11,6 +11,7 @@
 #define ICNSS_MAX_IRQ_REGISTRATIONS    12
 #define IWCN_MAX_IRQ_REGISTRATIONS    32
 #define ICNSS_MAX_TIMESTAMP_LEN        32
+#define ICNSS_WLFW_MAX_BUILD_ID_LEN    128
 
 #ifndef ICNSS_API_WITH_DEV
 #define ICNSS_API_WITH_DEV
@@ -136,6 +137,7 @@ struct icnss_soc_info {
 	uint32_t soc_id;
 	uint32_t fw_version;
 	char fw_build_timestamp[ICNSS_MAX_TIMESTAMP_LEN + 1];
+	char fw_build_id[ICNSS_WLFW_MAX_BUILD_ID_LEN + 1];
 };
 
 #define icnss_register_driver(ops)		\