qcacmn: WMI registration change to support to WIN modularization
Change WMI initialization sequence to support WMI modularization. TLV and Non-TLV modules calls WMI module registration based on target type. WMI attach will call respective attach routines based on registration. Change-Id: Id56446f491d129758537913d2d5d6633f8dec918 CRs-Fixed: 2179854
此提交包含在:

提交者
Gerrit - the friendly Code Review server

父節點
157e47813d
當前提交
67da1bb4af
@@ -8410,6 +8410,16 @@ QDF_STATUS send_wds_entry_list_cmd_non_tlv(wmi_unified_t wmi_handle)
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* wmi_non_tlv_pdev_id_conversion_enable() - Enable pdev_id conversion
|
||||
*
|
||||
* Return None.
|
||||
*/
|
||||
void wmi_non_tlv_pdev_id_conversion_enable(wmi_unified_t wmi_handle)
|
||||
{
|
||||
qdf_print("PDEV conversion Not Available");
|
||||
}
|
||||
|
||||
struct wmi_ops non_tlv_ops = {
|
||||
.send_vdev_create_cmd = send_vdev_create_cmd_non_tlv,
|
||||
.send_vdev_delete_cmd = send_vdev_delete_cmd_non_tlv,
|
||||
@@ -8644,6 +8654,7 @@ struct wmi_ops non_tlv_ops = {
|
||||
.send_fils_discovery_send_cmd = send_fils_discovery_send_cmd_non_tlv,
|
||||
.extract_swfda_vdev_id = extract_swfda_vdev_id_non_tlv,
|
||||
#endif /* WLAN_SUPPORT_FILS */
|
||||
.wmi_pdev_id_conversion_enable = wmi_non_tlv_pdev_id_conversion_enable,
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -9323,3 +9334,15 @@ void wmi_non_tlv_attach(struct wmi_unified *wmi_handle)
|
||||
qdf_print("%s: Not supported\n", __func__);
|
||||
#endif
|
||||
}
|
||||
EXPORT_SYMBOL(wmi_non_tlv_attach);
|
||||
|
||||
/**
|
||||
* wmi_non_tlv_init() - Initialize WMI NON TLV module by registering Non TLV
|
||||
* attach routine.
|
||||
*
|
||||
* Return: None
|
||||
*/
|
||||
void wmi_non_tlv_init(void)
|
||||
{
|
||||
wmi_unified_register_module(WMI_NON_TLV_TARGET, &wmi_non_tlv_attach);
|
||||
}
|
||||
|
新增問題並參考
封鎖使用者