浏览代码

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