qcacmn: Temp changes to support ROC with new scan module
Temp changes to support ROC with new scan module. Need to be removed once P2P module is ready. Change-Id: I50a924c233da6780de746f30aacf8dfb4cd89806 CRs-Fixed: 1095299
This commit is contained in:

committed by
qcabuildsw

parent
d04a49dedb
commit
5a7b8301c8
@@ -35,6 +35,8 @@ inline uint32_t get_scan_event_id(void)
|
|||||||
{
|
{
|
||||||
return WMI_SCAN_EVENTID;
|
return WMI_SCAN_EVENTID;
|
||||||
}
|
}
|
||||||
|
extern int wma_scan_event_callback(ol_scn_t handle, uint8_t *data,
|
||||||
|
uint32_t len);
|
||||||
#else
|
#else
|
||||||
inline uint32_t get_scan_event_id(void)
|
inline uint32_t get_scan_event_id(void)
|
||||||
{
|
{
|
||||||
@@ -75,6 +77,15 @@ target_if_scan_event_handler(ol_scn_t scn, uint8_t *data, uint32_t datalen)
|
|||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef CONFIG_MCL
|
||||||
|
/* temp change for p2p ROC*/
|
||||||
|
#define ROC_SCAN_REQUESTOR_ID 0xB000
|
||||||
|
if (ROC_SCAN_REQUESTOR_ID == event_info->event.requester) {
|
||||||
|
qdf_mem_free(event_info);
|
||||||
|
return wma_scan_event_callback(scn, data, datalen);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
scan_rx_ops = target_if_scan_get_rx_ops(psoc);
|
scan_rx_ops = target_if_scan_get_rx_ops(psoc);
|
||||||
if (scan_rx_ops->scan_ev_handler) {
|
if (scan_rx_ops->scan_ev_handler) {
|
||||||
status = scan_rx_ops->scan_ev_handler(psoc, event_info);
|
status = scan_rx_ops->scan_ev_handler(psoc, event_info);
|
||||||
|
Reference in New Issue
Block a user