diff --git a/core/hdd/inc/wlan_hdd_main.h b/core/hdd/inc/wlan_hdd_main.h index b10b92237d8f..0e53f9b11c7e 100644 --- a/core/hdd/inc/wlan_hdd_main.h +++ b/core/hdd/inc/wlan_hdd_main.h @@ -2448,21 +2448,6 @@ struct hdd_context *hdd_context_create(struct device *dev); void hdd_context_destroy(struct hdd_context *hdd_ctx); int hdd_wlan_notify_modem_power_state(int state); -#ifdef QCA_HT_2040_COEX -/** - * hdd_wlan_set_ht2040_mode() - notify FW with HT20/HT40 mode - * @adapter: pointer to adapter - * @sta_id: station id - * @sta_mac: station MAC address - * @channel_type: channel type - * - * This function notifies FW with HT20/HT40 mode - * - * Return: 0 if successful, error number otherwise - */ -int hdd_wlan_set_ht2040_mode(struct hdd_adapter *adapter, uint16_t sta_id, - struct qdf_mac_addr sta_mac, int channel_type); -#endif void wlan_hdd_send_svc_nlink_msg(int radio, int type, void *data, int len); #ifdef FEATURE_WLAN_AUTO_SHUTDOWN diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index 1047dd74788d..0a2884e803a7 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -7453,36 +7453,6 @@ static void hdd_skip_acs_scan_timer_handler(void *data) } #endif -#ifdef QCA_HT_2040_COEX -int hdd_wlan_set_ht2040_mode(struct hdd_adapter *adapter, uint16_t sta_id, - struct qdf_mac_addr sta_mac, int channel_type) -{ - int status; - QDF_STATUS qdf_status; - struct hdd_context *hdd_ctx; - mac_handle_t mac_handle; - - hdd_ctx = WLAN_HDD_GET_CTX(adapter); - - status = wlan_hdd_validate_context(hdd_ctx); - if (status) - return status; - - mac_handle = hdd_ctx->mac_handle; - if (!mac_handle) - return -EINVAL; - - qdf_status = sme_notify_ht2040_mode(mac_handle, sta_id, sta_mac, - adapter->session_id, channel_type); - if (QDF_STATUS_SUCCESS != qdf_status) { - hdd_err("Fail to send notification with ht2040 mode"); - return -EINVAL; - } - - return 0; -} -#endif - /** * hdd_wlan_notify_modem_power_state() - notify FW with modem power status * @state: state