mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 07:37:31 -04:00
qcacld-3.0: Replace channel with freq for 6G
Replace WLAN_REG_IS_24GHZ_CH with WLAN_REG_IS_24GHZ_CH_FREQ. in TDLS. Change-Id: I6c0ee6ec3a2d24cc0c826f93527d4655925cc6cd CRs-Fixed: 2717000
This commit is contained in:
parent
511d6fac7e
commit
e6c35ab600
2 changed files with 7 additions and 11 deletions
|
|
@ -2207,8 +2207,9 @@ QDF_STATUS tdls_process_antenna_switch(struct tdls_antenna_switch_request *req)
|
|||
int ant_switch_state = 0;
|
||||
uint32_t vdev_id;
|
||||
enum QDF_OPMODE opmode;
|
||||
uint8_t channel;
|
||||
qdf_freq_t freq;
|
||||
struct tdls_osif_indication ind;
|
||||
enum policy_mgr_con_mode mode;
|
||||
|
||||
if (!req) {
|
||||
tdls_err("null req");
|
||||
|
|
@ -2242,14 +2243,13 @@ QDF_STATUS tdls_process_antenna_switch(struct tdls_antenna_switch_request *req)
|
|||
|
||||
vdev_id = wlan_vdev_get_id(vdev);
|
||||
opmode = wlan_vdev_mlme_get_opmode(vdev);
|
||||
channel = wlan_freq_to_chan(
|
||||
policy_mgr_get_channel(
|
||||
soc_obj->soc,
|
||||
policy_mgr_convert_device_mode_to_qdf_type(opmode),
|
||||
&vdev_id));
|
||||
mode = policy_mgr_convert_device_mode_to_qdf_type(opmode);
|
||||
freq = policy_mgr_get_channel(soc_obj->soc,
|
||||
mode,
|
||||
&vdev_id);
|
||||
|
||||
/* Check supported nss for TDLS, if is 1x1, no need to teardown links */
|
||||
if (WLAN_REG_IS_24GHZ_CH(channel))
|
||||
if (WLAN_REG_IS_24GHZ_CH_FREQ(freq))
|
||||
vdev_nss = soc_obj->tdls_configs.tdls_vdev_nss_2g;
|
||||
else
|
||||
vdev_nss = soc_obj->tdls_configs.tdls_vdev_nss_5g;
|
||||
|
|
|
|||
|
|
@ -13040,10 +13040,6 @@ csr_compute_mode_and_band(struct mac_context *mac_ctx,
|
|||
*band = (mac_ctx->mlme_cfg->gen.band == BAND_2G ?
|
||||
REG_BAND_2G : REG_BAND_5G);
|
||||
if (REG_BAND_2G == *band) {
|
||||
/*
|
||||
* See reason in else if ( WLAN_REG_IS_24GHZ_CH
|
||||
* (opr_ch) ) to pick 11B
|
||||
*/
|
||||
*dot11_mode = eCSR_CFG_DOT11_MODE_11B;
|
||||
} else {
|
||||
/* prefer 5GHz */
|
||||
|
|
|
|||
Loading…
Reference in a new issue