qcacmn: iot_sim beacon content change update

Adding support for beacon content change.

Change-Id: I8f804dd7d2cbbe7d3b7dea58841d7321f28101c7
CRs-Fixed: 2694454
This commit is contained in:
nakul kachhwaha
2020-06-02 12:45:10 +05:30
committed by nshrivas
parent c5cdd1eaaf
commit 89a67f807e
10 changed files with 232 additions and 24 deletions

View File

@@ -20,10 +20,20 @@
#include <wlan_objmgr_cmn.h>
#include <wlan_lmac_if_def.h>
#include <wmi_unified_param.h>
#include "include/wlan_pdev_mlme.h"
#include "wlan_pdev_mlme_api.h"
/* Forward Declarations */
struct wmi_iot_sim_cmd_ops;
/**
* struct iot_sim_cbacks - IOT Sim callbacks
* @reg_beacon_trigger_handler: reg_beacon_trigger_handler
*/
struct iot_sim_cbacks {
void (*update_beacon_trigger)(mlme_pdev_ext_t *);
};
/**
* iot_sim_cmd_handler() - IOT SIM frame handler function
* @vdev - vdev object.
@@ -33,7 +43,7 @@ struct wmi_iot_sim_cmd_ops;
* Return : QDF_STATUS_E_SUCCESS/QDF_STATUS_E_FAILURE.
*/
QDF_STATUS iot_sim_cmd_handler(struct wlan_objmgr_vdev *vdev, qdf_nbuf_t buf,
bool tx);
struct beacon_tmpl_params *param, bool tx);
/**
* wlan_iot_sim_init() - API to init iot_sim component

View File

@@ -24,11 +24,25 @@
#define IEEE80211_FRAME_BODY_OFFSET 0x18
QDF_STATUS iot_sim_cmd_handler(struct wlan_objmgr_vdev *vdev, qdf_nbuf_t nbuf,
bool tx)
struct beacon_tmpl_params *param, bool tx)
{
struct wlan_objmgr_pdev *pdev = vdev->vdev_objmgr.wlan_pdev;
return iot_sim_frame_update(pdev, nbuf, tx);
return iot_sim_frame_update(pdev, nbuf, param, tx);
}
QDF_STATUS iot_sim_register_callbacks(struct wlan_objmgr_pdev *pdev,
struct iot_sim_cbacks *cb)
{
struct iot_sim_context *isc = NULL;
isc = wlan_objmgr_pdev_get_comp_private_obj(pdev, WLAN_IOT_SIM_COMP);
if (!isc)
return QDF_STATUS_E_NULL_VALUE;
isc->iot_sim_update_beacon_trigger = cb->update_beacon_trigger;
return QDF_STATUS_SUCCESS;
}
QDF_STATUS
@@ -79,4 +93,6 @@ void wlan_lmac_if_iot_sim_register_rx_ops(struct wlan_lmac_if_rx_ops *rx_ops)
&rx_ops->iot_sim_rx_ops;
iot_sim_ops->iot_sim_cmd_handler = iot_sim_cmd_handler;
iot_sim_ops->iot_sim_register_cb = iot_sim_register_callbacks;
}