瀏覽代碼

qcacld-3.0: Remove isESEConnection from hdd_wext_state_t

Currently hdd_wext_state_t defines field isESEConnection, but this
field is only written in one place and never read, hence it is
obsolete, so remove it.

Change-Id: Ia110a11ae968b28b2c74e5b77b4bcca21f69a78f
CRs-Fixed: 2094516
Jeff Johnson 7 年之前
父節點
當前提交
d084adb90f
共有 2 個文件被更改,包括 1 次插入9 次删除
  1. 0 4
      core/hdd/inc/wlan_hdd_wext.h
  2. 1 5
      core/hdd/src/wlan_hdd_assoc.c

+ 0 - 4
core/hdd/inc/wlan_hdd_wext.h

@@ -272,10 +272,6 @@ typedef struct hdd_wext_state_s {
 	/**Counter measure state, Started/Stopped*/
 	bool mTKIPCounterMeasures;
 
-#ifdef FEATURE_WLAN_ESE
-	/* ESE state variables */
-	bool isESEConnection;
-#endif
 } hdd_wext_state_t;
 
 struct ccp_freq_chan_map {

+ 1 - 5
core/hdd/src/wlan_hdd_assoc.c

@@ -6218,11 +6218,7 @@ static int __iw_set_auth(struct net_device *dev, struct iw_request_info *info,
 			 * Right now, this breaks all ref to authKeyMgmt because
 			 * our code doesn't realize it is a "bitfield"
 			 */
-			pWextState->authKeyMgmt |=
-				IW_AUTH_KEY_MGMT_CCKM;
-			/* Set the key management to 802.1X */
-			/* pWextState->authKeyMgmt = IW_AUTH_KEY_MGMT_802_1X; */
-			pWextState->isESEConnection = true;
+			pWextState->authKeyMgmt |= IW_AUTH_KEY_MGMT_CCKM;
 		} else if (wrqu->param.value & IW_AUTH_KEY_MGMT_PSK) {
 			/* Save the key management */
 			pWextState->authKeyMgmt |= IW_AUTH_KEY_MGMT_PSK;