diff --git a/mxm_wifiex/wlan_src/mlan/mlan_cmdevt.c b/mxm_wifiex/wlan_src/mlan/mlan_cmdevt.c index 3d4f422..b745194 100644 --- a/mxm_wifiex/wlan_src/mlan/mlan_cmdevt.c +++ b/mxm_wifiex/wlan_src/mlan/mlan_cmdevt.c @@ -1509,19 +1509,7 @@ static mlan_status wlan_dnld_sleep_confirm_cmd(mlan_adapter *pmadapter) cmd_len + pmadapter->ops.intf_header_len; #endif - if (pmbuf) - ret = pmadapter->ops.host_to_card(pmpriv, MLAN_TYPE_CMD, pmbuf, - MNULL); - -#ifdef USB - if (IS_USB(pmadapter->card_type) && (ret != MLAN_STATUS_PENDING)) - wlan_free_mlan_buffer(pmadapter, pmbuf); -#endif - if (ret == MLAN_STATUS_FAILURE) { - PRINTM(MERROR, "SLEEP_CFM: failed\n"); - pmadapter->dbg.num_cmd_sleep_cfm_host_to_card_failure++; - goto done; - } else { + if (pmbuf) { if (GET_BSS_ROLE(pmpriv) == MLAN_BSS_ROLE_UAP) pmadapter->ps_state = PS_STATE_SLEEP_CFM; #ifdef STA_SUPPORT @@ -1558,8 +1546,19 @@ static mlan_status wlan_dnld_sleep_confirm_cmd(mlan_adapter *pmadapter) else PRINTM(MEVENT, "+"); } - } + ret = pmadapter->ops.host_to_card(pmpriv, MLAN_TYPE_CMD, pmbuf, + MNULL); + } +#ifdef USB + if (IS_USB(pmadapter->card_type) && (ret != MLAN_STATUS_PENDING)) + wlan_free_mlan_buffer(pmadapter, pmbuf); +#endif + if (ret == MLAN_STATUS_FAILURE) { + PRINTM(MERROR, "SLEEP_CFM: failed\n"); + pmadapter->dbg.num_cmd_sleep_cfm_host_to_card_failure++; + goto done; + } done: LEAVE(); return ret; diff --git a/mxm_wifiex/wlan_src/mlan/mlan_decl.h b/mxm_wifiex/wlan_src/mlan/mlan_decl.h index 00471b2..f0af2e3 100644 --- a/mxm_wifiex/wlan_src/mlan/mlan_decl.h +++ b/mxm_wifiex/wlan_src/mlan/mlan_decl.h @@ -24,7 +24,7 @@ #define _MLAN_DECL_H_ /** MLAN release version */ -#define MLAN_RELEASE_VERSION "408.p3" +#define MLAN_RELEASE_VERSION "408.p4" /** Re-define generic data types for MLAN/MOAL */ /** Signed char (1-byte) */ diff --git a/mxm_wifiex/wlan_src/mlinux/mlan_decl.h b/mxm_wifiex/wlan_src/mlinux/mlan_decl.h index 00471b2..f0af2e3 100644 --- a/mxm_wifiex/wlan_src/mlinux/mlan_decl.h +++ b/mxm_wifiex/wlan_src/mlinux/mlan_decl.h @@ -24,7 +24,7 @@ #define _MLAN_DECL_H_ /** MLAN release version */ -#define MLAN_RELEASE_VERSION "408.p3" +#define MLAN_RELEASE_VERSION "408.p4" /** Re-define generic data types for MLAN/MOAL */ /** Signed char (1-byte) */