qcacmn: Add connect infra for connection manager

Add connect functions to convert kernel specific connect
request to connection manager specific connection request
for connection manager infrastructure.

Along with the above functions, add the file structure for
connect, disconnect and roam functions for connection
manager infrastructure.

Change-Id: Id4e389d06cea6e39327faef0c119275741574785
CRs-Fixed: 2739318
此提交包含在:
Ashish Kumar Dhanotiya
2020-07-01 15:03:04 +05:30
提交者 snandini
父節點 39c5306a5b
當前提交 64476bcd6c
共有 15 個檔案被更改,包括 833 行新增14 行删除

查看文件

@@ -0,0 +1,57 @@
/*
* Copyright (c) 2012-2015, 2020 The Linux Foundation. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/**
* DOC: wlan_cfg80211_cm_req.h
*
* This header file maintains declarations of connect, disconnect, roam
* request apis.
*/
#ifndef __WLAN_CFG80211_CM_REQ_H
#define __WLAN_CFG80211_CM_REQ_H
#ifdef FEATURE_CM_ENABLE
#include "qdf_status.h"
#include "wlan_cm_public_struct.h"
#include <net/cfg80211.h>
#include "wlan_objmgr_vdev_obj.h"
/**
* wlan_osif_cfg80211_connect() - Connect start request
* @dev: net dev
* @vdev: vdev pointer
* @req: connect req
*
* Return: int
*/
int wlan_osif_cfg80211_connect(struct net_device *dev,
struct wlan_objmgr_vdev *vdev,
struct cfg80211_connect_params *req);
/**
* wlan_osif_cfg80211_disconnect() - Disconnect start request
* @dev: net dev
* @vdev: vdev pointer
* @reason: disconnect reason
*
* Return: int
*/
int wlan_osif_cfg80211_disconnect(struct net_device *dev,
struct wlan_objmgr_vdev *vdev,
uint16_t reason);
#endif
#endif /* __WLAN_CFG80211_CM_REQ_H */

查看文件

@@ -0,0 +1,27 @@
/*
* Copyright (c) 2012-2015, 2020 The Linux Foundation. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/**
* DOC: wlan_cfg80211_cm_rsp.h
*
* This header file maintains declarations of connect, disconnect, roam
* response apis.
*/
#ifndef __WLAN_CFG80211_CM_RSP_H
#define __WLAN_CFG80211_CM_RSP_H
#endif /* __WLAN_CFG80211_CM_RSP_H */

查看文件

@@ -0,0 +1,27 @@
/*
* Copyright (c) 2012-2015, 2020 The Linux Foundation. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/**
* DOC: wlan_cfg80211_cm_util.h
*
* This header file maintains declarations of connect, disconnect, roam
* common apis.
*/
#ifndef __WLAN_CFG80211_CM_UTIL_H
#define __WLAN_CFG80211_CM_UTIL_H
#endif /* __WLAN_CFG80211_CM_UTIL_H */