From 321069fee300ae4d708f1f44f6e7c954eabea54a Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Thu, 1 Mar 2018 12:26:40 -0800 Subject: [PATCH] qcacld-3.0: Remove empty hdd_roam_deregister_sta() test Currently hdd_roam_deregister_sta() tests the STA to see if it is in the eConnectionState_IbssDisconnected state, but then doesn't actually do anything if it is true. Since this is obviously an obsolete test where the action code has been previously removed, now remove the actual test. Change-Id: I6a0077088d87f91b8d8f220049de05a19232995b CRs-Fixed: 2198554 --- core/hdd/src/wlan_hdd_assoc.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/core/hdd/src/wlan_hdd_assoc.c b/core/hdd/src/wlan_hdd_assoc.c index 4d10f11af67e..c86e694ec727 100644 --- a/core/hdd/src/wlan_hdd_assoc.c +++ b/core/hdd/src/wlan_hdd_assoc.c @@ -1493,13 +1493,6 @@ QDF_STATUS hdd_roam_deregister_sta(struct hdd_adapter *adapter, uint8_t staid) int ret = 0; struct qdf_mac_addr *peer_mac = NULL; struct qdf_mac_addr broadcastMacAddr = QDF_MAC_ADDR_BCAST_INIT; - if (eConnectionState_IbssDisconnected == - sta_ctx->conn_info.connState) { - /* - * Do not set the carrier off when the last peer leaves. - * We will set the carrier off while stopping the IBSS. - */ - } qdf_status = cdp_clear_peer(cds_get_context(QDF_MODULE_ID_SOC), (struct cdp_pdev *)cds_get_context(QDF_MODULE_ID_TXRX),