Forráskód Böngészése

qcacmn: Replace channel with frequency

Replace channel with frequency.

Change-Id: I291dd5110d5fe69361c636d60635b60309e8575f
CRs-Fixed: 2776242
Jianmin Zhu 4 éve
szülő
commit
d6329cff1b

+ 1 - 1
umac/wifi_pos/inc/wifi_pos_api.h

@@ -467,7 +467,7 @@ QDF_STATUS wifi_pos_register_get_fw_phy_mode_for_freq_cb(
  */
 QDF_STATUS wifi_pos_register_get_phy_mode_cb(
 			struct wlan_objmgr_psoc *psoc,
-			void (*handler)(uint8_t, uint32_t, uint32_t *));
+			void (*handler)(qdf_freq_t, uint32_t, uint32_t *));
 
 /**
  * wifi_pos_register_send_action: API to register callback to send

+ 4 - 3
umac/wifi_pos/src/wifi_pos_api.c

@@ -325,9 +325,10 @@ QDF_STATUS wifi_pos_init_cir_cfr_rings(struct wlan_objmgr_psoc *psoc,
 }
 #endif
 
-QDF_STATUS wifi_pos_register_get_phy_mode_cb(
-				struct wlan_objmgr_psoc *psoc,
-				void (*handler)(uint8_t, uint32_t, uint32_t *))
+QDF_STATUS
+wifi_pos_register_get_phy_mode_cb(struct wlan_objmgr_psoc *psoc,
+				  void (*handler)(qdf_freq_t, uint32_t,
+						  uint32_t *))
 {
 	struct wifi_pos_psoc_priv_obj *wifi_pos_psoc;
 

+ 3 - 1
umac/wifi_pos/src/wifi_pos_utils_i.h

@@ -32,6 +32,7 @@
 #include "qdf_trace.h"
 #include "qdf_module.h"
 #include "wifi_pos_utils_pub.h"
+#include "wlan_cmn.h"
 
 struct wlan_objmgr_psoc;
 struct wifi_pos_req_msg;
@@ -284,7 +285,8 @@ struct wifi_pos_psoc_priv_obj {
 	QDF_STATUS (*wifi_pos_req_handler)(struct wlan_objmgr_psoc *psoc,
 				    struct wifi_pos_req_msg *req);
 	wifi_pos_send_rsp_handler wifi_pos_send_rsp;
-	void (*wifi_pos_get_phy_mode)(uint8_t, uint32_t, uint32_t *);
+	void (*wifi_pos_get_phy_mode)(qdf_freq_t freq, uint32_t chan_width,
+				      enum wlan_phymode *phy_mode);
 	void (*wifi_pos_get_fw_phy_mode_for_freq)(uint32_t, uint32_t,
 						  uint32_t *);
 	void (*wifi_pos_send_action)(struct wlan_objmgr_psoc *psoc,