Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ba57e9b2 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "ath10k: skip sending default IE in scan request added by firmware"

parents 2d8db339 75547c81
Loading
Loading
Loading
Loading
+12 −3
Original line number Original line Diff line number Diff line
@@ -5479,7 +5479,8 @@ static int ath10k_hw_scan(struct ieee80211_hw *hw,
	struct ath10k_vif *arvif = ath10k_vif_to_arvif(vif);
	struct ath10k_vif *arvif = ath10k_vif_to_arvif(vif);
	struct cfg80211_scan_request *req = &hw_req->req;
	struct cfg80211_scan_request *req = &hw_req->req;
	struct wmi_start_scan_arg arg;
	struct wmi_start_scan_arg arg;
	int ret = 0;
	const u8 *ptr;
	int ret = 0, ie_skip_len = 0;
	int i;
	int i;


	mutex_lock(&ar->conf_mutex);
	mutex_lock(&ar->conf_mutex);
@@ -5511,8 +5512,16 @@ static int ath10k_hw_scan(struct ieee80211_hw *hw,
	arg.scan_id = ATH10K_SCAN_ID;
	arg.scan_id = ATH10K_SCAN_ID;


	if (req->ie_len) {
	if (req->ie_len) {
		arg.ie_len = req->ie_len;
		if (QCA_REV_WCN3990(ar)) {
		memcpy(arg.ie, req->ie, arg.ie_len);
			ptr = req->ie;
			while (ptr[0] == WLAN_EID_SUPP_RATES ||
			       ptr[0] == WLAN_EID_EXT_SUPP_RATES) {
				ie_skip_len = ptr[1] + 2;
				ptr += ie_skip_len;
			}
		}
		arg.ie_len = req->ie_len - ie_skip_len;
		memcpy(arg.ie, req->ie + ie_skip_len, arg.ie_len);
	}
	}


	if (req->n_ssids) {
	if (req->n_ssids) {