소스 검색

qcacmn: Make wlan_reg_recompute_current_chan_list common API

wlan_reg_recompute_current_chan_list() is defined for MCC only.
Make this wlan_reg_recompute_current_chan_list() common for both WIN
and MCC.

CRs-Fixed: 3451996
Change-Id: Ifcead79a68d0ed04ac1e4b78063f36b91e4d6fd8
Priyadarshnee Srinivasan 2 년 전
부모
커밋
c7200a49ec
2개의 변경된 파일2개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 2
      umac/regulatory/dispatcher/inc/wlan_reg_services_api.h
  2. 1 1
      umac/regulatory/dispatcher/src/wlan_reg_services_api.c

+ 1 - 2
umac/regulatory/dispatcher/inc/wlan_reg_services_api.h

@@ -2233,7 +2233,7 @@ QDF_STATUS
 wlan_reg_modify_indoor_concurrency(struct wlan_objmgr_pdev *pdev,
 				   uint8_t vdev_id, uint32_t freq,
 				   enum phy_ch_width width, bool add);
-
+#endif
 /**
  * wlan_reg_recompute_current_chan_list() - Recompute the current channel list
  * based on the regulatory change
@@ -2246,7 +2246,6 @@ wlan_reg_modify_indoor_concurrency(struct wlan_objmgr_pdev *pdev,
 QDF_STATUS
 wlan_reg_recompute_current_chan_list(struct wlan_objmgr_psoc *psoc,
 				     struct wlan_objmgr_pdev *pdev);
-#endif
 
 #if defined(CONFIG_BAND_6GHZ)
 /**

+ 1 - 1
umac/regulatory/dispatcher/src/wlan_reg_services_api.c

@@ -1910,7 +1910,6 @@ QDF_STATUS wlan_reg_set_afc_power_event_received(struct wlan_objmgr_pdev *pdev,
 
 #endif
 
-#ifdef CONFIG_REG_CLIENT
 QDF_STATUS
 wlan_reg_recompute_current_chan_list(struct wlan_objmgr_psoc *psoc,
 				     struct wlan_objmgr_pdev *pdev)
@@ -1928,6 +1927,7 @@ wlan_reg_recompute_current_chan_list(struct wlan_objmgr_psoc *psoc,
 	return reg_send_scheduler_msg_nb(psoc, pdev);
 }
 
+#ifdef CONFIG_REG_CLIENT
 QDF_STATUS
 wlan_reg_modify_indoor_concurrency(struct wlan_objmgr_pdev *pdev,
 				   uint8_t vdev_id, uint32_t freq,