Skip to content

Commit 87233bc

Browse files
abhinavnxpmmahadevan108
authored andcommitted
mcux: wifi_nxp: Updated wmm init command
Updated command parameter for wmm initialisation. Signed-off-by: Abhinav Kulkarni <abhinav.kulkarni@nxp.com>
1 parent 236bc16 commit 87233bc

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

mcux/middleware/wifi_nxp/wifidriver/incl/mlan_fw.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1396,6 +1396,8 @@ typedef enum _ENH_PS_MODES
13961396
#define HostCmd_ACT_GEN_GET 0x0000U
13971397
/** General purpose action : Set */
13981398
#define HostCmd_ACT_GEN_SET 0x0001U
1399+
/** General purpose action : Set Default */
1400+
#define HostCmd_ACT_GEN_SET_DEFAULT 0x0002U
13991401
/** Special purpose action : Set */
14001402
#define HostCmd_ACT_SPC_SET 0x8001
14011403

mcux/middleware/wifi_nxp/wifidriver/wifi.c

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3511,8 +3511,13 @@ void wifi_wmm_init()
35113511
mlan_adapter *pmadapter = pmpriv->adapter;
35123512
mlan_status status = MLAN_STATUS_SUCCESS;
35133513

3514-
status =
3515-
wlan_prepare_cmd(pmpriv, HostCmd_CMD_WMM_PARAM_CONFIG, HostCmd_ACT_GEN_SET, 0, MNULL, &pmadapter->ac_params);
3514+
status = wlan_prepare_cmd(pmpriv, HostCmd_CMD_WMM_PARAM_CONFIG,
3515+
#if defined(SD8978) || defined(SD8987)
3516+
HostCmd_ACT_GEN_SET_DEFAULT,
3517+
#else
3518+
HostCmd_ACT_GEN_SET,
3519+
#endif
3520+
0, MNULL, &pmadapter->ac_params);
35163521
if (status != MLAN_STATUS_SUCCESS)
35173522
{
35183523
wifi_e("ERR: WMM wlan_prepare_cmd returned status=0x%x", status);

0 commit comments

Comments
 (0)