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:
Liangwei Dong
2023-01-10 15:24:17 +08:00
committed by Madan Koyyalamudi
parent bea97be080
commit 4a18155583
4 changed files with 140 additions and 25 deletions

View File

@@ -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