summaryrefslogtreecommitdiff
path: root/CORE/SAP/src/sapModule.c
diff options
context:
space:
mode:
Diffstat (limited to 'CORE/SAP/src/sapModule.c')
-rw-r--r--CORE/SAP/src/sapModule.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/CORE/SAP/src/sapModule.c b/CORE/SAP/src/sapModule.c
index 01185e9a327d..64a33006e6c5 100644
--- a/CORE/SAP/src/sapModule.c
+++ b/CORE/SAP/src/sapModule.c
@@ -3917,3 +3917,28 @@ wlansap_get_chan_width(void *pvosctx, uint32_t *pchanwidth)
return VOS_STATUS_SUCCESS;
}
+/*
+ * wlansap_set_invalid_session() - set session ID to invalid
+ * @pctx: pointer of global context
+ *
+ * This function sets session ID to invalid
+ *
+ * Return: VOS_STATUS
+ */
+VOS_STATUS
+wlansap_set_invalid_session(v_PVOID_t pctx)
+{
+ ptSapContext psapctx;
+ psapctx = VOS_GET_SAP_CB(pctx);
+ if ( NULL == psapctx) {
+ VOS_TRACE( VOS_MODULE_ID_SAP, VOS_TRACE_LEVEL_ERROR,
+ FL("Invalid SAP pointer from pctx"));
+ return VOS_STATUS_E_FAILURE;
+ }
+
+ psapctx->sessionId = CSR_SESSION_ID_INVALID;
+ psapctx->isSapSessionOpen = eSAP_FALSE;
+
+ return VOS_STATUS_SUCCESS;
+}
+