qcacmn: Add debugfs support for iot_sim module

Following changes were done:
1. Adding debugfs functionality for iot_sim module
2. Changing the iot_sim context from psoc to pdev
3. Currently iot_sim support only bcast peer
4. Adding write handler to store user configured rules.

Change-Id: I4319bae3986874434f2a2e2397b1a8698c48d936
CRs-Fixed: 2657929
This commit is contained in:
nakul kachhwaha
2020-03-27 13:11:35 +05:30
committed by nshrivas
父節點 861af9fad3
當前提交 d20fe7aad4
共有 5 個文件被更改,包括 944 次插入75 次删除

查看文件

@@ -18,18 +18,18 @@
#include <wlan_iot_sim_utils_api.h>
void *
tgt_get_target_handle(struct wlan_objmgr_psoc *psoc)
tgt_get_target_handle(struct wlan_objmgr_pdev *pdev)
{
struct iot_sim_context *isc;
if (!psoc) {
iot_sim_err("psoc is NULL!");
if (!pdev) {
iot_sim_err("pdev is NULL!");
return NULL;
}
isc = wlan_objmgr_psoc_get_comp_private_obj(psoc,
isc = wlan_objmgr_pdev_get_comp_private_obj(pdev,
WLAN_IOT_SIM_COMP);
if (!isc) {
iot_sim_err("psoc IOT_SIM object is NULL!");
iot_sim_err("pdev IOT_SIM object is NULL!");
return NULL;
}
return isc->p_iot_sim_target_handle;

查看文件

@@ -22,16 +22,16 @@
QDF_STATUS
wlan_iot_sim_init(void)
{
if (wlan_objmgr_register_psoc_create_handler(
if (wlan_objmgr_register_pdev_create_handler(
WLAN_IOT_SIM_COMP,
wlan_iot_sim_psoc_obj_create_handler,
wlan_iot_sim_pdev_obj_create_handler,
NULL) !=
QDF_STATUS_SUCCESS) {
return QDF_STATUS_E_FAILURE;
}
if (wlan_objmgr_register_psoc_destroy_handler(
if (wlan_objmgr_register_pdev_destroy_handler(
WLAN_IOT_SIM_COMP,
wlan_iot_sim_psoc_obj_destroy_handler,
wlan_iot_sim_pdev_obj_destroy_handler,
NULL) !=
QDF_STATUS_SUCCESS) {
return QDF_STATUS_E_FAILURE;
@@ -43,16 +43,16 @@ wlan_iot_sim_init(void)
QDF_STATUS
wlan_iot_sim_deinit(void)
{
if (wlan_objmgr_unregister_psoc_create_handler(
if (wlan_objmgr_unregister_pdev_create_handler(
WLAN_IOT_SIM_COMP,
wlan_iot_sim_psoc_obj_create_handler,
wlan_iot_sim_pdev_obj_create_handler,
NULL) !=
QDF_STATUS_SUCCESS) {
return QDF_STATUS_E_FAILURE;
}
if (wlan_objmgr_unregister_psoc_destroy_handler(
if (wlan_objmgr_unregister_pdev_destroy_handler(
WLAN_IOT_SIM_COMP,
wlan_iot_sim_psoc_obj_destroy_handler,
wlan_iot_sim_pdev_obj_destroy_handler,
NULL) !=
QDF_STATUS_SUCCESS) {
return QDF_STATUS_E_FAILURE;