From aef3c7f03c5dd509311b2831c233d05f3bcd512e Mon Sep 17 00:00:00 2001 From: Hanumanth Reddy Pothula Date: Thu, 18 May 2017 12:19:23 +0530 Subject: [PATCH] qcacld-3.0: After disconnect, return valid RSSI value on getRSSI IOCTL During wlan disconnect, after sending del bss indication to firmware, host expects vdev stats indication from firmware to update rssi value of current disconnect AP and to return same to upper-layer if getRSSI is received after disconnect. But presently, due to invalid condition check, Host failing update rssi value. If VDEV is up and BSSID is zero, get RSSI from vdev stats indication and update the same in HDD. So that driver can return valid rssi to upper-layer, on receiving getRSSI indication after disconnect. Change-Id: I0554e513535bc033ea3bfe5021b5f8ddc108ffbe CRs-Fixed: 2047842 --- core/wma/src/wma_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/wma/src/wma_utils.c b/core/wma/src/wma_utils.c index 3b5130d4b3..e7e97a6ded 100644 --- a/core/wma/src/wma_utils.c +++ b/core/wma/src/wma_utils.c @@ -2216,7 +2216,7 @@ static void wma_vdev_stats_lost_link_helper(tp_wma_handle wma, node = &wma->interfaces[vdev_stats->vdev_id]; if (wma_is_vdev_up(vdev_stats->vdev_id) && - qdf_mem_cmp(node->bssid, zero_mac, QDF_MAC_ADDR_SIZE)) { + !qdf_mem_cmp(node->bssid, zero_mac, QDF_MAC_ADDR_SIZE)) { req_msg = wma_peek_vdev_req(wma, vdev_stats->vdev_id, WMA_TARGET_REQ_TYPE_VDEV_STOP); if ((NULL == req_msg) ||