qcacld-3.0: Route the legacy NAN commands through NAN component
NAN component has been moved to CLD. It includes implementation of the new NAN command QCA_NL80211_VENDOR_SUBCMD_NAN_EXT. Change the legacy NAN implementation of vendor cmd QCA_NL80211_VENDOR_SUBCMD_NAN so that the requests go through the NAN component. Clean up the legacy path. Functionality remains unchanged for legacy command. Route the legacy NAN commands through the NAN component. Change-Id: I542e5afe832619f8c088220cc4456aa7fe4416fd CRs-Fixed: 2356772
This commit is contained in:

committed by
nshrivas

vanhempi
4f89e9e161
commit
6003bd2adf
@@ -89,4 +89,13 @@ QDF_STATUS target_if_nan_register_events(struct wlan_objmgr_psoc *psoc);
|
||||
*/
|
||||
QDF_STATUS target_if_nan_deregister_events(struct wlan_objmgr_psoc *psoc);
|
||||
|
||||
/**
|
||||
* target_if_nan_rsp_handler() - Target IF handler for NAN Discovery events
|
||||
* @scn: target handle
|
||||
* @data: event buffer
|
||||
* @len: event buffer length
|
||||
*
|
||||
* Return: 0 for success or error code
|
||||
*/
|
||||
int target_if_nan_rsp_handler(ol_scn_t scn, uint8_t *data, uint32_t len);
|
||||
#endif /* _WIFI_POS_TGT_IF_H_ */
|
||||
|
@@ -791,7 +791,7 @@ void target_if_nan_register_rx_ops(struct wlan_nan_rx_ops *rx_ops)
|
||||
rx_ops->nan_datapath_event_rx = nan_datapath_event_handler;
|
||||
}
|
||||
|
||||
static int target_if_nan_rsp_handler(ol_scn_t scn, uint8_t *data, uint32_t len)
|
||||
int target_if_nan_rsp_handler(ol_scn_t scn, uint8_t *data, uint32_t len)
|
||||
{
|
||||
struct nan_event_params *nan_rsp, temp_evt_params = {0};
|
||||
struct scheduler_msg msg = {0};
|
||||
@@ -833,7 +833,7 @@ static int target_if_nan_rsp_handler(ol_scn_t scn, uint8_t *data, uint32_t len)
|
||||
}
|
||||
|
||||
nan_rsp->psoc = psoc;
|
||||
qdf_mem_copy(nan_rsp->buf_ptr, buf_ptr, nan_rsp->buf_len);
|
||||
qdf_mem_copy(nan_rsp->buf, buf_ptr, nan_rsp->buf_len);
|
||||
|
||||
msg.bodyptr = nan_rsp;
|
||||
msg.type = nan_rsp->evt_type;
|
||||
|
Viittaa uudesa ongelmassa
Block a user