qcacmn: Add support to get power type string
Add support to get reg power type string from reg power type enum value. Change-Id: I73df51a2494eb0246f395343df8f921991a2b80a CRs-Fixed: 3111420
Этот коммит содержится в:

коммит произвёл
Madan Koyyalamudi

родитель
6c9b3cb72c
Коммит
0bff382086
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright (c) 2017-2021 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2021 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
* Copyright (c) 2021-2022 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
|
||||
@@ -205,6 +205,16 @@ QDF_STATUS wlan_reg_get_6g_ap_master_chan_list(
|
||||
enum reg_6g_ap_type ap_pwr_type,
|
||||
struct regulatory_channel *chan_list);
|
||||
|
||||
#ifdef CONFIG_REG_CLIENT
|
||||
/**
|
||||
* wlan_reg_get_power_string () - wlan reg get power type string
|
||||
* @power_type: power type enum
|
||||
*
|
||||
* Return: power type string
|
||||
*/
|
||||
const char *wlan_reg_get_power_string(enum reg_6g_ap_type power_type);
|
||||
#endif
|
||||
|
||||
/**
|
||||
* wlan_reg_is_6ghz_psc_chan_freq() - Check if the given 6GHz channel frequency
|
||||
* is preferred scanning channel frequency.
|
||||
|
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright (c) 2017-2021 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2021 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
* Copyright (c) 2021-2022 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*
|
||||
*
|
||||
* Permission to use, copy, modify, and/or distribute this software for
|
||||
@@ -400,6 +400,13 @@ QDF_STATUS wlan_reg_get_6g_ap_master_chan_list(
|
||||
return reg_get_6g_ap_master_chan_list(pdev, ap_pwr_type, chan_list);
|
||||
}
|
||||
|
||||
#ifdef CONFIG_REG_CLIENT
|
||||
const char *wlan_reg_get_power_string(enum reg_6g_ap_type power_type)
|
||||
{
|
||||
return reg_get_power_string(power_type);
|
||||
}
|
||||
#endif
|
||||
|
||||
qdf_export_symbol(wlan_reg_get_6g_ap_master_chan_list);
|
||||
|
||||
#ifdef CONFIG_AFC_SUPPORT
|
||||
|
Ссылка в новой задаче
Block a user