Преглед на файлове

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
Jeff Johnson преди 7 години
родител
ревизия
321069fee3
променени са 1 файла, в които са добавени 0 реда и са изтрити 7 реда
  1. 0 7
      core/hdd/src/wlan_hdd_assoc.c

+ 0 - 7
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),