Browse Source

Revert "qcacld-3.0: Avoid sending RSNXE to legacy APs"

This reverts commit Ia7dee29792718a6514da44b13b36b46586ef25ab.

Change-Id: I13e4db36aa2ee3238b3e2fe8ee456c99e1fcc974
CRs-Fixed: 3238679
Gururaj Pandurangi 2 years ago
parent
commit
3e1cb8d191
1 changed files with 0 additions and 26 deletions
  1. 0 26
      core/mac/src/pe/lim/lim_process_sme_req_messages.c

+ 0 - 26
core/mac/src/pe/lim/lim_process_sme_req_messages.c

@@ -3660,30 +3660,6 @@ static inline void lim_update_pmksa_to_profile(struct wlan_objmgr_vdev *vdev,
 }
 #endif
 
-static inline void
-lim_strip_rsnx_ie(struct mac_context *mac_ctx,
-		  struct cm_vdev_join_req *req)
-{
-	/*
-	 * Userspace may send RSNXE also in connect request irrespective
-	 * of the connecting AP capabilities to allow the driver to chose
-	 * best candidate based on score. But the chosen candidate may
-	 * not support the RSNXE feature and may not advertise RSNXE
-	 * in beacon/probe response. Station is not supposed to include
-	 * the RSNX IE in assoc request in such cases as legacy APs
-	 * may misbahave due to the new IE. It's observed that few
-	 * legacy APs which don't support the RSNXE reject the
-	 * connection at EAPOL stage. So, strip the IE if AP doesn't
-	 * support/advertise the RSNXE to avoid sending the RSNXE to
-	 * legacy APs.
-	 */
-	if (!util_scan_entry_rsnxe(req->entry))
-		lim_strip_ie(mac_ctx, req->assoc_ie.ptr,
-			     (uint16_t *)&req->assoc_ie.len,
-			     WLAN_ELEMID_RSNXE, ONE_BYTE,
-			     NULL, 0, NULL, WLAN_MAX_IE_LEN);
-}
-
 static QDF_STATUS
 lim_fill_rsn_ie(struct mac_context *mac_ctx, struct pe_session *session,
 		struct cm_vdev_join_req *req)
@@ -3765,8 +3741,6 @@ lim_fill_rsn_ie(struct mac_context *mac_ctx, struct pe_session *session,
 		lim_update_pmksa_to_profile(session->vdev, pmksa_peer);
 	}
 
-	lim_strip_rsnx_ie(mac_ctx, req);
-
 	return QDF_STATUS_SUCCESS;
 }