qcacld-3.0: Use peer to get the cipher to decide MIC length

Driver uses cipher stored in vdev to get the MIC length, which
may get updated if multiple peer(TDLS peer in STA case) get
connected to the vdev. Thus depending on latest peer cipher type
the MIC length will be calculated for all peers.

Add changes to store cipher info in peer and use it to calculate
MIC length for the frame if CRYPTO_SET_KEY_CONVERGED is defined.

Change-Id: I852e4b519f55d8020237989314f8506aa275f379
CRs-Fixed: 2444416
diff --git a/core/wma/inc/wma.h b/core/wma/inc/wma.h
index 8184ab3..cabfbc5 100644
--- a/core/wma/inc/wma.h
+++ b/core/wma/inc/wma.h
@@ -2558,6 +2558,17 @@
 struct wlan_objmgr_psoc *wma_get_psoc_from_scn_handle(void *scn_handle);
 
 #ifdef CRYPTO_SET_KEY_CONVERGED
+
+/**
+ * wma_set_peer_ucast_cipher() - Update unicast cipher fof the peer
+ * @mac_addr: peer mac address
+ * @cipher: peer cipher type
+ *
+ * Return: None
+ */
+void wma_set_peer_ucast_cipher(uint8_t *mac_addr,
+			       enum wlan_crypto_cipher_type cipher);
+
 /**
  * wma_update_set_key() - Update WMA layer for set key
  * @session_id: vdev session identifier