qcacld-3.0: Remove all WLAN_REG_CHAN_TO_BAND instances
Use wlan_reg_freq_to_band API to get band instead of the deprecated WLAN_REG_CHAN_TO_BAND API as part of regulatory cleanup effort. Change-Id: Id3028ecba15608c6bd48dff1ed5d5a8ef15cdab4 CRs-Fixed: 2898140
Šī revīzija ir iekļauta:

revīziju iesūtīja
snandini

vecāks
42db4775bd
revīzija
c6b86c0ac9
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2018-2019 The Linux Foundation. All rights reserved.
|
* Copyright (c) 2018-2019, 2021 The Linux Foundation. All rights reserved.
|
||||||
*
|
*
|
||||||
* Permission to use, copy, modify, and/or distribute this software for
|
* Permission to use, copy, modify, and/or distribute this software for
|
||||||
* any purpose with or without fee is hereby granted, provided that the
|
* any purpose with or without fee is hereby granted, provided that the
|
||||||
@@ -257,8 +257,7 @@ QDF_STATUS ucfg_ocb_set_channel_config(struct wlan_objmgr_vdev *vdev,
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0; i < config->channel_count; i++) {
|
for (i = 0; i < config->channel_count; i++) {
|
||||||
if (WLAN_REG_CHAN_TO_BAND(wlan_reg_freq_to_chan(pdev,
|
if (wlan_reg_freq_to_band(config->channels[i].chan_freq)
|
||||||
config->channels[i].chan_freq))
|
|
||||||
== BAND_2G)
|
== BAND_2G)
|
||||||
config->channels[i].ch_mode = MODE_11G;
|
config->channels[i].ch_mode = MODE_11G;
|
||||||
else
|
else
|
||||||
|
Atsaukties uz šo jaunā problēmā
Block a user