Browse Source

qcacld-3.0: Remove first_scan_done from the MAC context

The MAC context first_scan_done flag is a remnant from a prior version
of the driver which is initialized but then never read or written.
Since it is obsolete, remove it.

Change-Id: I81b371cb768bd2d042d3f3bf0991d2b27b953b3c
CRs-Fixed: 2298274
Jeff Johnson 6 years ago
parent
commit
c58612a792

+ 0 - 1
core/mac/inc/ani_global.h

@@ -899,7 +899,6 @@ typedef struct sAniSirGlobal {
 	bool snr_monitor_enabled;
 	bool ignore_assoc_disallowed;
 	bool sta_prefer_80MHz_over_160MHz;
-	bool first_scan_done;
 	int8_t first_scan_bucket_threshold;
 	uint32_t peer_rssi;
 	uint32_t peer_txrate;

+ 0 - 1
core/mac/src/sys/legacy/src/system/src/mac_init_api.c

@@ -168,7 +168,6 @@ QDF_STATUS mac_open(struct wlan_objmgr_psoc *psoc, tHalHandle *pHalHandle,
 
 	/* FW: 0 to 2047 and Host: 2048 to 4095 */
 	p_mac->mgmtSeqNum = WLAN_HOST_SEQ_NUM_MIN - 1;
-	p_mac->first_scan_done = false;
 	p_mac->he_sgi_ltf_cfg_bit_mask = DEF_HE_AUTO_SGI_LTF;
 	p_mac->is_usr_cfg_amsdu_enabled = true;