1 /* 2 * Copyright (c) 2012-2015, 2020, The Linux Foundation. All rights reserved. 3 * 4 * Permission to use, copy, modify, and/or distribute this software for any 5 * purpose with or without fee is hereby granted, provided that the above 6 * copyright notice and this permission notice appear in all copies. 7 * 8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 9 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 10 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 11 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 12 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 13 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 14 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 15 */ 16 17 /** 18 * DOC: Implements connect scan (scan for ssid) specific apis of 19 * connection manager 20 */ 21 22 #include "wlan_cm_main_api.h" 23 24 QDF_STATUS cm_connect_scan_start(struct cnx_mgr *cm_ctx, 25 struct cm_connect_req *req) 26 { 27 /* 28 * initiate connect scan and scan timer. 29 * post WLAN_CM_SM_EV_CONNECT_SCAN_FAILURE on scan req failure. 30 */ 31 return QDF_STATUS_SUCCESS; 32 } 33 34 QDF_STATUS cm_connect_scan_resp(struct cnx_mgr *cm_ctx, wlan_scan_id *scan_id, 35 QDF_STATUS status) 36 { 37 /* 38 * get connect req from head and check if scan_id match 39 * if not drop else proceed with success or failure handling 40 * (post WLAN_CM_SM_EV_CONNECT_FAILURE in case of status failure or if 41 * no candidate found again after scan) 42 */ 43 return QDF_STATUS_SUCCESS; 44 } 45