From 40032d588e60ce18f25fa3a44fa91b985e9b806c Mon Sep 17 00:00:00 2001 From: Sreelakshmi Konamki Date: Wed, 15 Mar 2017 16:44:45 +0530 Subject: [PATCH] qcacld-3.0: Update MDIE when PNO match event found qcacld-2.0 to qcacld-3.0 propagation Current implementation does not update MDIE while processing of PNO match event due to this STA is unable to connect to 11r AP. Add changes to update MDIE to 'tSirBssDescription' in csr_scan_save_preferred_network_found() Change-Id: Ia419c0f7284fc168434d91bcc3d7b29b99a06f3f CRs-Fixed: 2005101 --- core/sme/src/csr/csr_api_scan.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/core/sme/src/csr/csr_api_scan.c b/core/sme/src/csr/csr_api_scan.c index 15468e679bde..bdaaa460efc7 100644 --- a/core/sme/src/csr/csr_api_scan.c +++ b/core/sme/src/csr/csr_api_scan.c @@ -7730,6 +7730,26 @@ QDF_STATUS csr_scan_save_preferred_network_found(tpAniSirGlobal pMac, qdf_mem_copy((uint8_t *) &pBssDescr->bssId, (uint8_t *) macHeader->bssId, sizeof(tSirMacAddr)); pBssDescr->received_time = (uint64_t)qdf_mc_timer_get_system_time(); + + /* MobilityDomain */ + pBssDescr->mdie[0] = 0; + pBssDescr->mdie[1] = 0; + pBssDescr->mdie[2] = 0; + pBssDescr->mdiePresent = false; + /* + * If mdie is present in the probe rsp we fill it in the bss description + */ + if (parsed_frm->mdiePresent) { + pBssDescr->mdiePresent = true; + pBssDescr->mdie[0] = parsed_frm->mdie[0]; + pBssDescr->mdie[1] = parsed_frm->mdie[1]; + pBssDescr->mdie[2] = parsed_frm->mdie[2]; + } + sms_log(pMac, LOG1, FL("mdie=%02x%02x%02x"), + (unsigned int)pBssDescr->mdie[0], + (unsigned int)pBssDescr->mdie[1], + (unsigned int)pBssDescr->mdie[2]); + sms_log(pMac, LOG2, FL("Bssid= "MAC_ADDRESS_STR" chan= %d, rssi = %d"), MAC_ADDR_ARRAY(pBssDescr->bssId), pBssDescr->channelId, pBssDescr->rssi);