Browse Source

qcacmn: Fix compile error for function wlan_reg_get_eirp_pwr()

When CONFIG_BAND_6GHZ is undefined, it will report missing-prototypes
compile error for function wlan_reg_get_eirp_pwr().

Add 'static inline' for function wlan_reg_get_eirp_pwr() to fix
compile error.

CRs-Fixed: 3227164
Change-Id: I9db007fee3aa0061aa9a8e030e45738c0953f36a
Huashan Qu 3 years ago
parent
commit
5ec471e872
1 changed files with 4 additions and 3 deletions
  1. 4 3
      umac/regulatory/dispatcher/inc/wlan_reg_services_api.h

+ 4 - 3
umac/regulatory/dispatcher/inc/wlan_reg_services_api.h

@@ -2445,9 +2445,10 @@ static inline QDF_STATUS wlan_reg_eirp_2_psd(struct wlan_objmgr_pdev *pdev,
 	return QDF_STATUS_E_FAILURE;
 }
 
-uint8_t wlan_reg_get_eirp_pwr(struct wlan_objmgr_pdev *pdev, qdf_freq_t freq,
-			      qdf_freq_t cen320, uint16_t bw,
-			      enum reg_6g_ap_type ap_pwr_type)
+static inline uint8_t wlan_reg_get_eirp_pwr(struct wlan_objmgr_pdev *pdev,
+					    qdf_freq_t freq,
+					    qdf_freq_t cen320, uint16_t bw,
+					    enum reg_6g_ap_type ap_pwr_type)
 {
 	return 0;
 }