qcacld-3.0: Restore pMac->sap.sapCtxList in start_ap context

qcacld-2.0 to qcacld-3.0 propagation

sap_OpenSession is called in add_virtual_intf context, while
sap_CloseSession is called in stop_ap context. Sap can't start
successfully in dfs channel if hostapd is killed and restarted,
because sap_CloseSession clears pMac->sap.sapCtxList.

Restored pMac->sap.sapCtxList in start_ap context.

CRs-Fixed: 2032512
Change-Id: Ief31b4994ad74159795619f3d4f13891f28585de
This commit is contained in:
bings 2017-04-13 03:37:08 +08:00 • committed by Sandeep Puligilla
commit 1fe8a4759b

View file

@ -958,6 +958,11 @@ QDF_STATUS wlansap_start_bss(void *pCtx, /* pwextCtx */
*/
pmac->sap.SapDfsInfo.disable_dfs_ch_switch =
pConfig->disableDFSChSwitch;
pmac->sap.sapCtxList[pSapCtx->sessionId].pSapContext = pSapCtx;
pmac->sap.sapCtxList[pSapCtx->sessionId].sapPersona =
pSapCtx->csr_roamProfile.csrPersona;
pmac->sap.sapCtxList[pSapCtx->sessionId].sessionID =
pSapCtx->sessionId;
/* Copy MAC filtering settings to sap context */
pSapCtx->eSapMacAddrAclMode = pConfig->SapMacaddr_acl;