From 2a27cd3779641de7c90be9c221b8944e60768a2c Mon Sep 17 00:00:00 2001 From: Sreelakshmi Konamki Date: Wed, 15 Mar 2017 15:51:12 +0530 Subject: 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 c06a086a14a9..6e7d914b762a 100644 --- a/core/sme/src/csr/csr_api_scan.c +++ b/core/sme/src/csr/csr_api_scan.c @@ -7344,6 +7344,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, LOGD, FL("Bssid= "MAC_ADDRESS_STR" chan= %d, rssi = %d"), MAC_ADDR_ARRAY(pBssDescr->bssId), pBssDescr->channelId, pBssDescr->rssi); -- cgit v1.2.3