qcacmn: Do sanity check of requester ID

If the requester id is 0 or other invalid values,
the function scm_scan_get_requester_event_handler
will get unexpected handler.

Change-Id: I505e2e1a1bdc9cec57aaa0c28abadf28d228ba5b
CRs-Fixed: 2147555
This commit is contained in:
Paul Zhang 2017-11-30 12:15:46 +08:00 • committed by snandini
commit 07992021c7

View file

@ -173,7 +173,7 @@ struct p2p_soc_priv_obj {
qdf_list_t roc_q;
qdf_list_t tx_q_roc;
qdf_list_t tx_q_ack;
uint16_t scan_req_id;
wlan_scan_requester scan_req_id;
struct p2p_start_param *start_param;
qdf_event_t cancel_roc_done;
qdf_runtime_lock_t roc_runtime_lock;