qcacmn: Add disconnect sync API to wait for disconnect to complete

Add sync API for disconnect to wait for disconnect to complete.
This can be used during vdev delete sequence to move the vdev and
connection manager SM to init state before VDEV is marked logically
deleted.

Change-Id: Id562e444cf1995d800b8268f906f811f143d0fc9
CRs-Fixed: 2790885
This commit is contained in:
Abhishek Singh
2020-10-05 12:32:38 +05:30
committed by snandini
parent a33d1a2537
commit 9d01a66a5e
7 changed files with 91 additions and 20 deletions

View File

@@ -21,6 +21,7 @@
#define _WLAN_OSIF_PRIV_H_
#include "qdf_net_if.h"
#include <qdf_event.h>
#include "wlan_cm_public_struct.h"
#include <qca_vendor.h>
@@ -49,6 +50,7 @@ struct pdev_osif_priv {
* @cmd_id_lock: lock to update and read last command source
* @last_disconnect_reason: last disconnect reason to be indicated in get
* station
* @disconnect_complete: disconnect completion wait event
* @ext_priv: legacy data pointer.
*/
struct osif_cm_info {
@@ -56,6 +58,7 @@ struct osif_cm_info {
wlan_cm_id last_id;
struct qdf_spinlock cmd_id_lock;
enum qca_disconnect_reason_codes last_disconnect_reason;
qdf_event_t disconnect_complete;
void *ext_priv;
};
#endif