wlan: Avoid DEL_STA_SELF when Disconnecting SAP
At the time of START AP driver sends ADD_STA_SELF
followed with ADD BSS.
After that driver do DEL_BSS followed with DEL_STA_SELF.
In case of SAP, firmware add self address as BSS address.
In sapFsm, sme_CloseSession will call limProcessSmeDelStaSelfReq to
do DEL_STA_SELF. Firmware returns failure for DEL_STA_SELF as this
was already deleted as part of DEL_BSS.
Fix is to not send DEL_STA_SELF for SAP scenario
Instead of this driver will do only csrCleanupSession and will post
eSAP_STOP_BSS_EVENT to HDD to STOP BSS.
Change-Id: Icf25f68a65c28c6795c3dc9410519d28dd72f395
CRs-Fixed: 984269
diff --git a/CORE/HDD/src/wlan_hdd_main.c b/CORE/HDD/src/wlan_hdd_main.c
index a829d47..b406b41 100755
--- a/CORE/HDD/src/wlan_hdd_main.c
+++ b/CORE/HDD/src/wlan_hdd_main.c
@@ -6516,7 +6516,7 @@
{
INIT_COMPLETION(pAdapter->session_close_comp_var);
if (eHAL_STATUS_SUCCESS == sme_CloseSession(pHddCtx->hHal,
- pAdapter->sessionId, VOS_TRUE,
+ pAdapter->sessionId, FALSE, VOS_TRUE,
hdd_smeCloseSessionCallback, pAdapter))
{
unsigned long rc;
@@ -7486,8 +7486,8 @@
{
INIT_COMPLETION(pAdapter->session_close_comp_var);
if (eHAL_STATUS_SUCCESS ==
- sme_CloseSession(pHddCtx->hHal, pAdapter->sessionId, VOS_FALSE,
- hdd_smeCloseSessionCallback, pAdapter))
+ sme_CloseSession(pHddCtx->hHal, pAdapter->sessionId, FALSE,
+ VOS_FALSE, hdd_smeCloseSessionCallback, pAdapter))
{
unsigned long ret;