summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSreelakshmi Konamki <skonam@codeaurora.org>2017-03-15 15:51:12 +0530
committerGerrit - the friendly Code Review server <code-review@localhost>2017-03-17 12:22:24 -0700
commit2a27cd3779641de7c90be9c221b8944e60768a2c (patch)
tree4a20b3dcdc2c5f9d00238d7d2b03debf0c9dcf3e
parent33631f336945f4db2368b14b6e74694bd5d5815c (diff)
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
-rw-r--r--core/sme/src/csr/csr_api_scan.c20
1 files changed, 20 insertions, 0 deletions
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);