From b51680551bb24c8f9ca4dd5938f2a6c2b7e3c1a8 Mon Sep 17 00:00:00 2001 From: Houston Hoffman Date: Thu, 14 Apr 2016 02:18:01 -0700 Subject: [PATCH] qcacmn: Enable station SMPS only if the session supported NSS > 1 If HT SMPS is enabled and if the session supported NSS > 1 then include SMPS IE in the HT capabilities of the association and the reassociation management frame.Enabling SMPS with an AP whose capability is only 1x1 will result in association/reassociation request being rejected or an unexpected behavior. Send SMPS force mode to FW to trigger SMPS action frame only if SMPS is enabled in the INI. For dynamic antenna switch, the chain mask manager will send the SMPS action frames. CRs-Fixed: 931250 Change-Id: Ifff2ef2c8790994a68e676b8bba2fb03c21370d4 --- wmi_unified_tlv.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wmi_unified_tlv.c b/wmi_unified_tlv.c index d20edb2434..8ba2b4effa 100644 --- a/wmi_unified_tlv.c +++ b/wmi_unified_tlv.c @@ -1744,6 +1744,10 @@ QDF_STATUS send_set_mimops_cmd_tlv(wmi_unified_t wmi_handle, cmd->vdev_id = vdev_id; + /* WMI_SMPS_FORCED_MODE values do not directly map + * to SM power save values defined in the specification. + * Make sure to send the right mapping. + */ switch (value) { case 0: cmd->forced_mode = WMI_SMPS_FORCED_MODE_NONE;