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
This commit is contained in:
Hanumanth Reddy Pothula
2017-05-18 12:19:23 +05:30
committed by snandini
parent 81982b96cb
commit aef3c7f03c

View File

@@ -2216,7 +2216,7 @@ static void wma_vdev_stats_lost_link_helper(tp_wma_handle wma,
node = &wma->interfaces[vdev_stats->vdev_id]; node = &wma->interfaces[vdev_stats->vdev_id];
if (wma_is_vdev_up(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, req_msg = wma_peek_vdev_req(wma, vdev_stats->vdev_id,
WMA_TARGET_REQ_TYPE_VDEV_STOP); WMA_TARGET_REQ_TYPE_VDEV_STOP);
if ((NULL == req_msg) || if ((NULL == req_msg) ||