|
@@ -2372,6 +2372,20 @@ QDF_STATUS wlan_reg_psd_2_eirp(struct wlan_objmgr_pdev *pdev,
|
|
uint16_t ch_bw,
|
|
uint16_t ch_bw,
|
|
int16_t *eirp);
|
|
int16_t *eirp);
|
|
|
|
|
|
|
|
+/**
|
|
|
|
+ * wlan_reg_eirp_2_psd() - Calculate PSD poewr from EIRP and bandwidth
|
|
|
|
+ * @pdev: pdev pointer
|
|
|
|
+ * @ch_bw: Bandwidth of a channel in MHz (20/40/80/160/320 etc)
|
|
|
|
+ * @eirp: EIRP power in dBm
|
|
|
|
+ * @psd: Power Spectral Density in dBm/MHz
|
|
|
|
+ *
|
|
|
|
+ * Return: QDF_STATUS
|
|
|
|
+ */
|
|
|
|
+QDF_STATUS wlan_reg_eirp_2_psd(struct wlan_objmgr_pdev *pdev,
|
|
|
|
+ uint16_t ch_bw,
|
|
|
|
+ int16_t eirp,
|
|
|
|
+ int16_t *psd);
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* wlan_reg_get_best_pwr_mode() - Get the best power mode based on input freq
|
|
* wlan_reg_get_best_pwr_mode() - Get the best power mode based on input freq
|
|
* and bandwidth. The mode that provides the best EIRP is the best power mode.
|
|
* and bandwidth. The mode that provides the best EIRP is the best power mode.
|
|
@@ -2408,6 +2422,14 @@ static inline QDF_STATUS wlan_reg_psd_2_eirp(struct wlan_objmgr_pdev *pdev,
|
|
{
|
|
{
|
|
return QDF_STATUS_E_FAILURE;
|
|
return QDF_STATUS_E_FAILURE;
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+static inline QDF_STATUS wlan_reg_eirp_2_psd(struct wlan_objmgr_pdev *pdev,
|
|
|
|
+ uint16_t ch_bw,
|
|
|
|
+ int16_t eirp,
|
|
|
|
+ int16_t *psd)
|
|
|
|
+{
|
|
|
|
+ return QDF_STATUS_E_FAILURE;
|
|
|
|
+}
|
|
#endif /* CONFIG_BAND_6GHZ */
|
|
#endif /* CONFIG_BAND_6GHZ */
|
|
/**
|
|
/**
|
|
* wlan_reg_find_chwidth_from_bw () - Gets channel width for given
|
|
* wlan_reg_find_chwidth_from_bw () - Gets channel width for given
|