qcacld-3.0: Refactor HDD LPASS "interface mode change" logic
Previously "qcacld-3.0: Refactor WLAN_FEATURE_LPSS" refactored some of
the HDD LPASS logic. Continue that process by refactoring the
"interface mode change" logic such that the actual implementation is
in the lpass feature file.
Change-Id: I7be1719f6b0f4ed69d60dbb1c50dab63ca3d768a
CRs-Fixed: 1070700
diff --git a/core/hdd/src/wlan_hdd_lpass.h b/core/hdd/src/wlan_hdd_lpass.h
index 3f9a797..0980635 100644
--- a/core/hdd/src/wlan_hdd_lpass.h
+++ b/core/hdd/src/wlan_hdd_lpass.h
@@ -29,12 +29,23 @@
#define WLAN_HDD_LPASS_H
struct hdd_context_s;
+struct hdd_adapter_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_all_scan_intf_info(hdd_context_t *hdd_ctx);
+
+/**
+ * hdd_lpass_notify_mode_change() - Notify LPASS of interface mode change
+ * @adapter: The adapter whose mode was changed
+ *
+ * This function is used to notify the LPASS feature that an adapter
+ * had its mode changed.
+ *
+ * Return: none
+ */
+void hdd_lpass_notify_mode_change(struct hdd_adapter_s *adapter);
/**
* hdd_lpass_notify_start() - Notify LPASS of driver start
@@ -65,9 +76,8 @@
return;
}
-static inline void wlan_hdd_send_all_scan_intf_info(hdd_context_t *hdd_ctx)
+static inline void hdd_lpass_notify_mode_change(struct hdd_adapter_s *adapter)
{
- return;
}
static inline void hdd_lpass_notify_start(struct hdd_context_s *hdd_ctx) { }
static inline void hdd_lpass_notify_stop(struct hdd_context_s *hdd_ctx) { }