Sfoglia il codice sorgente

qcacld-3.0: Remove struct hdd_ap_ctx field uIsAuthenticated

Field uIsAuthenticated in struct hdd_ap_ctx is written but never read.
And when the interface is in AP mode it is the master doing the
authenticating, so this field doesn't even make sense, so remove it.

Change-Id: Ib03a4b80f61c0cb32486cf3f8a9bd6744ea5edee
CRs-Fixed: 2134922
Jeff Johnson 7 anni fa
parent
commit
03653f1acb
2 ha cambiato i file con 0 aggiunte e 6 eliminazioni
  1. 0 2
      core/hdd/inc/wlan_hdd_main.h
  2. 0 4
      core/hdd/src/wlan_hdd_softap_tx_rx.c

+ 0 - 2
core/hdd/inc/wlan_hdd_main.h

@@ -829,8 +829,6 @@ struct hdd_ap_ctx {
 
 	uint8_t operatingChannel;
 
-	bool uIsAuthenticated;
-
 	eCsrEncryptionType ucEncryptType;
 
 	/* This will point to group key data,

+ 0 - 4
core/hdd/src/wlan_hdd_softap_tx_rx.c

@@ -964,7 +964,6 @@ QDF_STATUS hdd_softap_register_sta(struct hdd_adapter *adapter,
 						OL_TXRX_PEER_STATE_AUTH, false);
 
 		adapter->sta_info[staId].peer_state = OL_TXRX_PEER_STATE_AUTH;
-		adapter->sessionCtx.ap.uIsAuthenticated = true;
 	} else {
 
 		hdd_info("ULA auth StaId= %d.  Changing TL state to CONNECTED at Join time",
@@ -973,9 +972,6 @@ QDF_STATUS hdd_softap_register_sta(struct hdd_adapter *adapter,
 		qdf_status = hdd_change_peer_state(adapter, staDesc.sta_id,
 						OL_TXRX_PEER_STATE_CONN, false);
 		adapter->sta_info[staId].peer_state = OL_TXRX_PEER_STATE_CONN;
-
-		adapter->sessionCtx.ap.uIsAuthenticated = false;
-
 	}
 
 	hdd_debug("Enabling queues");