qcacld-3.0: Refactor HDD LPASS "start" logic
Previously "qcacld-3.0: Refactor WLAN_FEATURE_LPSS" refactored some of
the HDD LPASS logic. Continue that process by refactoring the "start"
logic such that the actual implementation is in the lpass feature
file.
Change-Id: Idc7ed03abd35616d2a7bfa4a74aaec9898f9dc8e
CRs-Fixed: 1070700
diff --git a/core/hdd/src/wlan_hdd_lpass.c b/core/hdd/src/wlan_hdd_lpass.c
index 193016a..d53663b 100644
--- a/core/hdd/src/wlan_hdd_lpass.c
+++ b/core/hdd/src/wlan_hdd_lpass.c
@@ -196,8 +196,9 @@
*
* Return: none
*/
-void wlan_hdd_send_version_pkg(uint32_t fw_version,
- uint32_t chip_id, const char *chip_name)
+static void wlan_hdd_send_version_pkg(uint32_t fw_version,
+ uint32_t chip_id,
+ const char *chip_name)
{
int ret = 0;
struct wlan_version_data data;
@@ -259,3 +260,20 @@
if (!scan_intf_found)
wlan_hdd_send_status_pkg(adapter, NULL, 1, 0);
}
+
+/**
+ * hdd_lpass_notify_start() - Notify LPASS of driver start
+ * @hdd_ctx: The global HDD context
+ *
+ * This function is used to notify the LPASS feature that the wlan
+ * driver has (re-)started.
+ *
+ * Return: none
+ */
+void hdd_lpass_notify_start(struct hdd_context_s *hdd_ctx)
+{
+ wlan_hdd_send_all_scan_intf_info(hdd_ctx);
+ wlan_hdd_send_version_pkg(hdd_ctx->target_fw_version,
+ hdd_ctx->target_hw_version,
+ hdd_ctx->target_hw_name);
+}