|
@@ -6216,7 +6216,6 @@ static void hdd_lost_link_cp_stats_info_cb(void *stats_ev)
|
|
|
struct hdd_adapter *adapter;
|
|
|
struct stats_event *ev = stats_ev;
|
|
|
uint8_t i;
|
|
|
- struct hdd_station_ctx *sta_ctx;
|
|
|
|
|
|
if (wlan_hdd_validate_context(hdd_ctx))
|
|
|
return;
|
|
@@ -6229,16 +6228,11 @@ static void hdd_lost_link_cp_stats_info_cb(void *stats_ev)
|
|
|
hdd_debug("invalid adapter");
|
|
|
continue;
|
|
|
}
|
|
|
- sta_ctx = WLAN_HDD_GET_STATION_CTX_PTR(adapter);
|
|
|
- if ((sta_ctx) &&
|
|
|
- (eConnectionState_Associated !=
|
|
|
- sta_ctx->conn_info.conn_state)) {
|
|
|
- adapter->rssi_on_disconnect =
|
|
|
+ adapter->rssi_on_disconnect =
|
|
|
ev->vdev_summary_stats[i].stats.rssi;
|
|
|
- hdd_debug("rssi on disconnect %d for " QDF_MAC_ADDR_STR,
|
|
|
- adapter->rssi_on_disconnect,
|
|
|
- QDF_MAC_ADDR_ARRAY(adapter->mac_addr.bytes));
|
|
|
- }
|
|
|
+ hdd_debug("rssi %d for " QDF_MAC_ADDR_STR,
|
|
|
+ adapter->rssi_on_disconnect,
|
|
|
+ QDF_MAC_ADDR_ARRAY(adapter->mac_addr.bytes));
|
|
|
}
|
|
|
}
|
|
|
|