qcacld-3.0: Add phy regulatory frequency range check
If phy regulatory capability doesn't support high or low frequency indicated by MACRO such as HIGH_5GHZ_FREQ, LOW_5GHZ_FREQ, we should not hard code to the MACRO. The change adds new mlme API wlan_mlme_get_phy_max_freq_range to get phy regulatory ranges from target info. Change-Id: I95f48296ca093c20b1391d7657204eecfb418908 CRs-Fixed: 3376402
This commit is contained in:

committed by
Madan Koyyalamudi

vanhempi
bea97be080
commit
4a18155583
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2021 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2021-2022 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
* Copyright (c) 2021-2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*
|
||||
* Permission to use, copy, modify, and/or distribute this software for
|
||||
* any purpose with or without fee is hereby granted, provided that the
|
||||
@@ -3661,6 +3661,23 @@ QDF_STATUS mlme_clear_mcs_rate(struct wlan_objmgr_vdev *vdev);
|
||||
*/
|
||||
bool wlan_mlme_is_sta_mon_conc_supported(struct wlan_objmgr_psoc *psoc);
|
||||
|
||||
/**
|
||||
* wlan_mlme_get_phy_max_freq_range() - Get phy supported max channel
|
||||
* frequency range
|
||||
* @psoc: psoc for country information
|
||||
* @low_2ghz_chan: 2.4 GHz low channel frequency
|
||||
* @high_2ghz_chan: 2.4 GHz high channel frequency
|
||||
* @low_5ghz_chan: 5 GHz low channel frequency
|
||||
* @high_5ghz_chan: 5 GHz high channel frequency
|
||||
*
|
||||
* Return: QDF status
|
||||
*/
|
||||
QDF_STATUS wlan_mlme_get_phy_max_freq_range(struct wlan_objmgr_psoc *psoc,
|
||||
uint32_t *low_2ghz_chan,
|
||||
uint32_t *high_2ghz_chan,
|
||||
uint32_t *low_5ghz_chan,
|
||||
uint32_t *high_5ghz_chan);
|
||||
|
||||
#ifdef FEATURE_WDS
|
||||
/**
|
||||
* wlan_mlme_get_wds_mode() - Check wds mode supported
|
||||
|
@@ -138,6 +138,31 @@ uint8_t ucfg_get_tx_power(struct wlan_objmgr_psoc *psoc, uint8_t band)
|
||||
return wlan_mlme_get_tx_power(psoc, band);
|
||||
}
|
||||
|
||||
/**
|
||||
* ucfg_mlme_get_phy_max_freq_range() - Get phy supported max channel
|
||||
* frequency range
|
||||
* @psoc: psoc for country information
|
||||
* @low_2ghz_chan: 2.4 GHz low channel frequency
|
||||
* @high_2ghz_chan: 2.4 GHz high channel frequency
|
||||
* @low_5ghz_chan: 5 GHz low channel frequency
|
||||
* @high_5ghz_chan: 5 GHz high channel frequency
|
||||
*
|
||||
* Return: QDF status
|
||||
*/
|
||||
static inline
|
||||
QDF_STATUS ucfg_mlme_get_phy_max_freq_range(struct wlan_objmgr_psoc *psoc,
|
||||
uint32_t *low_2ghz_chan,
|
||||
uint32_t *high_2ghz_chan,
|
||||
uint32_t *low_5ghz_chan,
|
||||
uint32_t *high_5ghz_chan)
|
||||
{
|
||||
return wlan_mlme_get_phy_max_freq_range(psoc,
|
||||
low_2ghz_chan,
|
||||
high_2ghz_chan,
|
||||
low_5ghz_chan,
|
||||
high_5ghz_chan);
|
||||
}
|
||||
|
||||
/**
|
||||
* ucfg_mlme_get_ht_cap_info() - Get the HT cap info config
|
||||
* @psoc: pointer to psoc object
|
||||
|
Viittaa uudesa ongelmassa
Block a user