qcacld-3.0: 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
diff --git a/core/mac/src/pe/lim/lim_process_sme_req_messages.c b/core/mac/src/pe/lim/lim_process_sme_req_messages.c
index 425af96..ddcbaf7 100644
--- a/core/mac/src/pe/lim/lim_process_sme_req_messages.c
+++ b/core/mac/src/pe/lim/lim_process_sme_req_messages.c
@@ -1744,6 +1744,10 @@
 		session->enableAmpduPs = sme_join_req->enableAmpduPs;
 		session->enableHtSmps = sme_join_req->enableHtSmps;
 		session->htSmpsvalue = sme_join_req->htSmps;
+		lim_log(mac_ctx, LOG1,
+			FL("enableHtSmps: %d htSmps: %d"),
+			session->enableHtSmps,
+			session->htSmpsvalue);
 
 		/*Store Persona */
 		session->pePersona = sme_join_req->staPersona;
@@ -2164,6 +2168,12 @@
 	session_entry->dot11mode = reassoc_req->dot11mode;
 	session_entry->vhtCapability =
 		IS_DOT11_MODE_VHT(reassoc_req->dot11mode);
+
+	session_entry->enableHtSmps = reassoc_req->enableHtSmps;
+	session_entry->htSmpsvalue = reassoc_req->htSmps;
+	lim_log(mac_ctx, LOG1, FL("enableHtSmps: %d htSmps: %d"),
+		session_entry->enableHtSmps,
+		session_entry->htSmpsvalue);
 	/*
 	 * Reassociate request is expected
 	 * in link established state only.