|
@@ -243,9 +243,10 @@ qdf_export_symbol(wlan_reg_get_bw_value);
|
|
|
*
|
|
|
* Return: channel state
|
|
|
*/
|
|
|
-enum channel_state wlan_reg_get_bonded_channel_state(
|
|
|
- struct wlan_objmgr_pdev *pdev, uint8_t ch,
|
|
|
- enum phy_ch_width bw, uint8_t sec_ch)
|
|
|
+enum channel_state
|
|
|
+wlan_reg_get_bonded_channel_state(struct wlan_objmgr_pdev *pdev,
|
|
|
+ uint8_t ch,
|
|
|
+ enum phy_ch_width bw, uint8_t sec_ch)
|
|
|
{
|
|
|
if (WLAN_REG_IS_24GHZ_CH(ch))
|
|
|
return reg_get_2g_bonded_channel_state(pdev, ch,
|
|
@@ -254,6 +255,7 @@ enum channel_state wlan_reg_get_bonded_channel_state(
|
|
|
return reg_get_5g_bonded_channel_state(pdev, ch,
|
|
|
bw);
|
|
|
}
|
|
|
+
|
|
|
#endif /* CONFIG_CHAN_NUM_API */
|
|
|
|
|
|
/**
|
|
@@ -1106,6 +1108,20 @@ wlan_reg_get_5g_bonded_channel_and_state_for_freq(struct wlan_objmgr_pdev *pdev,
|
|
|
bonded_chan_ptr_ptr);
|
|
|
}
|
|
|
|
|
|
+enum channel_state
|
|
|
+wlan_reg_get_bonded_channel_state_for_freq(struct wlan_objmgr_pdev *pdev,
|
|
|
+ qdf_freq_t freq,
|
|
|
+ enum phy_ch_width bw,
|
|
|
+ qdf_freq_t sec_freq)
|
|
|
+{
|
|
|
+ if (WLAN_REG_IS_24GHZ_CH_FREQ(freq))
|
|
|
+ return reg_get_2g_bonded_channel_state_for_freq(pdev, freq,
|
|
|
+ sec_freq, bw);
|
|
|
+ else
|
|
|
+ return reg_get_5g_bonded_channel_state_for_freq(pdev, freq,
|
|
|
+ bw);
|
|
|
+}
|
|
|
+
|
|
|
qdf_export_symbol(wlan_reg_get_5g_bonded_channel_and_state_for_freq);
|
|
|
|
|
|
#endif /* CONFIG CHAN FREQ API */
|