qcacld-3.0: Don't find dsrc channel based on channel number

Channel number may be same for different bands due to which
non-dsrc channel may be treated as dsrc or vice-versa.

Fix is to find channel is dscrc or non-dsrc based on frequency.

Change-Id: I349172713dda6880771e14231aeb1b4419a86e01
CRs-Fixed: 2902986
This commit is contained in:
sheenam monga
2021-03-18 23:56:10 +05:30
committed by snandini
vanhempi ab9679a5eb
commit 1f6cb040c4
4 muutettua tiedostoa jossa 7 lisäystä ja 36 poistoa

Näytä tiedosto

@@ -535,7 +535,7 @@ void tdls_extract_peer_state_param(struct tdls_peer_update_state *peer_param,
if (CHANNEL_STATE_INVALID != ch_state &&
CHANNEL_STATE_DFS != ch_state &&
!wlan_reg_is_dsrc_chan(pdev, chan_id)) {
!wlan_reg_is_dsrc_freq(ch_freq)) {
peer_param->peer_cap.peer_chan[num].chan_id = chan_id;
peer_param->peer_cap.peer_chan[num].pwr =
wlan_reg_get_channel_reg_power(pdev, chan_id);