diff --git a/umac/wifi_pos/inc/wifi_pos_api.h b/umac/wifi_pos/inc/wifi_pos_api.h index 0b474dcf7340..ab61c090244c 100644 --- a/umac/wifi_pos/inc/wifi_pos_api.h +++ b/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 diff --git a/umac/wifi_pos/src/wifi_pos_api.c b/umac/wifi_pos/src/wifi_pos_api.c index 6306d2c5cac8..4654b1d98041 100644 --- a/umac/wifi_pos/src/wifi_pos_api.c +++ b/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; diff --git a/umac/wifi_pos/src/wifi_pos_utils_i.h b/umac/wifi_pos/src/wifi_pos_utils_i.h index 27fa7dd34717..206a729c21c1 100644 --- a/umac/wifi_pos/src/wifi_pos_utils_i.h +++ b/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,