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.h b/core/hdd/src/wlan_hdd_lpass.h
index 2fb5d70..3d6d9b2 100644
--- a/core/hdd/src/wlan_hdd_lpass.h
+++ b/core/hdd/src/wlan_hdd_lpass.h
@@ -28,13 +28,24 @@
#if !defined(WLAN_HDD_LPASS_H)
#define WLAN_HDD_LPASS_H
+struct hdd_context_s;
+
#ifdef WLAN_FEATURE_LPSS
void wlan_hdd_send_status_pkg(hdd_adapter_t *adapter,
hdd_station_ctx_t *sta_ctx,
uint8_t is_on, uint8_t is_connected);
-void wlan_hdd_send_version_pkg(uint32_t fw_version,
- uint32_t chip_id, const char *chip_name);
void wlan_hdd_send_all_scan_intf_info(hdd_context_t *hdd_ctx);
+
+/**
+ * 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);
#else
static inline void wlan_hdd_send_status_pkg(hdd_adapter_t *adapter,
hdd_station_ctx_t *sta_ctx,
@@ -43,17 +54,11 @@
return;
}
-static inline void wlan_hdd_send_version_pkg(uint32_t fw_version,
- uint32_t chip_id,
- const char *chip_name)
-{
- return;
-}
-
static inline void wlan_hdd_send_all_scan_intf_info(hdd_context_t *hdd_ctx)
{
return;
}
+static inline void hdd_lpass_notify_start(struct hdd_context_s *hdd_ctx) { }
#endif
#endif /* WLAN_HDD_LPASS_H */