Explorar o código

qcacmn: Remove unused function wlan_reg_get_channel_state

Remove unused function wlan_reg_get_channel_state

Change-Id: I6f1a0366bae0eff5acbc3dd902f730fd554aee17
CRs-Fixed: 2869902
sheenam monga %!s(int64=4) %!d(string=hai) anos
pai
achega
fe43d91ba9

+ 0 - 9
umac/regulatory/dispatcher/inc/wlan_reg_services_api.h

@@ -543,15 +543,6 @@ bool wlan_reg_is_world(uint8_t *country);
  */
  */
 enum channel_enum wlan_reg_get_chan_enum(uint8_t chan_num);
 enum channel_enum wlan_reg_get_chan_enum(uint8_t chan_num);
 
 
-/**
- * wlan_reg_get_channel_state() - Get channel state from regulatory
- * @ch: channel number.
- *
- * Return: channel state
- */
-enum channel_state wlan_reg_get_channel_state(struct wlan_objmgr_pdev *pdev,
-					      uint8_t ch);
-
 /**
 /**
  * wlan_reg_get_5g_bonded_channel_state() - Get 5G bonded channel state
  * wlan_reg_get_5g_bonded_channel_state() - Get 5G bonded channel state
  * @pdev: The physical dev to program country code or regdomain
  * @pdev: The physical dev to program country code or regdomain

+ 0 - 14
umac/regulatory/dispatcher/src/wlan_reg_services_api.c

@@ -85,20 +85,6 @@ QDF_STATUS wlan_reg_get_max_5g_bw_from_regdomain(uint16_t regdmn,
 }
 }
 
 
 #ifdef CONFIG_CHAN_NUM_API
 #ifdef CONFIG_CHAN_NUM_API
-/**
- * wlan_reg_get_channel_state() - Get channel state from regulatory
- * @ch: channel number.
- *
- * Return: channel state
- */
-enum channel_state wlan_reg_get_channel_state(struct wlan_objmgr_pdev *pdev,
-					      uint8_t ch)
-{
-	/*
-	 * Get channel state from regulatory
-	 */
-	return reg_get_channel_state(pdev, ch);
-}
 
 
 bool
 bool
 wlan_reg_chan_has_dfs_attribute(struct wlan_objmgr_pdev *pdev, uint8_t ch)
 wlan_reg_chan_has_dfs_attribute(struct wlan_objmgr_pdev *pdev, uint8_t ch)