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

Commit 3a3d32c5 authored by sheenam monga's avatar sheenam monga Committed by Gerrit - the friendly Code Review server
Browse files

qcacld-3.0: Check valid freq for non-beaconing entities

Currently, In Reassoc and fast reassoc command host
validates freq from secondary channel list that may
cause issue for some frequencies which may be valid
for sta but invalid for sap.

Fix is to validate freq from valid channel list

Change-Id: I1ee81212425f7b4f997568b4fd92153231e349e8
CRs-Fixed: 2991541
parent c8089feb
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -616,8 +616,7 @@ int hdd_reassoc(struct hdd_adapter *adapter, const uint8_t *bssid,
		ch_freq = sta_ctx->conn_info.chan_freq;
	}

	if (QDF_STATUS_SUCCESS !=
	    wlan_hdd_validate_operation_channel(adapter, ch_freq)) {
	if (!sme_is_channel_valid(hdd_ctx->mac_handle, ch_freq)) {
		hdd_err("Invalid Ch freq: %d", ch_freq);
		ret = -EINVAL;
		goto exit;
@@ -4595,8 +4594,7 @@ static int drv_cmd_fast_reassoc(struct hdd_adapter *adapter,
	}

	/* Check freq number is a valid freq number */
	if (freq && QDF_STATUS_SUCCESS !=
		wlan_hdd_validate_operation_channel(adapter, freq)) {
	if (freq && !sme_is_channel_valid(mac_handle, freq)) {
		hdd_err("Invalid freq [%d]", freq);
		return -EINVAL;
	}