diff --git a/core/hdd/inc/wlan_hdd_main.h b/core/hdd/inc/wlan_hdd_main.h index 836edc5478e2..531a53f45a6a 100644 --- a/core/hdd/inc/wlan_hdd_main.h +++ b/core/hdd/inc/wlan_hdd_main.h @@ -2065,8 +2065,19 @@ int hdd_wlan_startup(struct device *dev); void __hdd_wlan_exit(void); int hdd_wlan_notify_modem_power_state(int state); #ifdef QCA_HT_2040_COEX -int hdd_wlan_set_ht2040_mode(struct hdd_adapter *adapter, uint16_t staId, - struct qdf_mac_addr macAddrSTA, int width); +/** + * 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); diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index 61fca11f9fe0..74b177a8efa8 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -6159,23 +6159,12 @@ static void hdd_skip_acs_scan_timer_handler(void *data) #endif #ifdef QCA_HT_2040_COEX -/** - * hdd_wlan_set_ht2040_mode() - notify FW with HT20/HT40 mode - * @adapter: pointer to adapter - * @staId: station id - * @macAddrSTA: 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 staId, - struct qdf_mac_addr macAddrSTA, int channel_type) +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 = NULL; + struct hdd_context *hdd_ctx; hdd_ctx = WLAN_HDD_GET_CTX(adapter); @@ -6186,7 +6175,7 @@ int hdd_wlan_set_ht2040_mode(struct hdd_adapter *adapter, uint16_t staId, if (!hdd_ctx->hHal) return -EINVAL; - qdf_status = sme_notify_ht2040_mode(hdd_ctx->hHal, staId, macAddrSTA, + qdf_status = sme_notify_ht2040_mode(hdd_ctx->hHal, sta_id, sta_mac, adapter->sessionId, channel_type); if (QDF_STATUS_SUCCESS != qdf_status) { hdd_err("Fail to send notification with ht2040 mode");