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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user