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:
Abhishek Singh
2017-03-08 11:52:06 +05:30
committad av qcabuildsw
förälder d04a49dedb
incheckning 5a7b8301c8

Visa fil

@@ -35,6 +35,8 @@ inline uint32_t get_scan_event_id(void)
{
return WMI_SCAN_EVENTID;
}
extern int wma_scan_event_callback(ol_scn_t handle, uint8_t *data,
uint32_t len);
#else
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;
}
#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);
if (scan_rx_ops->scan_ev_handler) {
status = scan_rx_ops->scan_ev_handler(psoc, event_info);