Browse Source

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
Abhishek Singh 8 years ago
parent
commit
5a7b8301c8
1 changed files with 11 additions and 0 deletions
  1. 11 0
      target_if/scan/src/target_if_scan.c

+ 11 - 0
target_if/scan/src/target_if_scan.c

@@ -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);