Browse Source

qcacmn: add crypto callback registration

add crypto callback registration

Change-Id: Id209afff1c4155425d8b0c600a0b90535decd749
Ashok Ponnaiah 8 years ago
parent
commit
0d0a368b46

+ 10 - 0
umac/global_umac_dispatcher/lmac_if/inc/wlan_lmac_if_def.h

@@ -28,6 +28,10 @@
 #include "wlan_atf_utils_defs.h"
 #endif
 
+#if WLAN_CRYPTO_SUPPORTED
+#include "wlan_crypto_global_def.h"
+#endif
+
 /* Number of dev type: Direct attach and Offload */
 #define MAX_DEV_TYPE 2
 
@@ -368,6 +372,9 @@ struct wlan_lmac_if_tx_ops {
 #ifdef WLAN_ATF_ENABLE
 	struct wlan_lmac_if_atf_tx_ops atf_tx_ops;
 #endif
+#if WLAN_CRYPTO_SUPPORTED
+	struct wlan_lmac_if_crypto_tx_ops crypto_tx_ops;
+#endif
 #ifdef WIFI_POS_CONVERGED
 	struct wlan_lmac_if_wifi_pos_tx_ops wifi_pos_tx_ops;
 #endif
@@ -589,6 +596,9 @@ struct wlan_lmac_if_rx_ops {
 #ifdef WLAN_ATF_ENABLE
 	struct wlan_lmac_if_atf_rx_ops atf_rx_ops;
 #endif
+#if WLAN_CRYPTO_SUPPORTED
+	struct wlan_lmac_if_crypto_rx_ops crypto_rx_ops;
+#endif
 #ifdef WIFI_POS_CONVERGED
 	struct wlan_lmac_if_wifi_pos_rx_ops wifi_pos_rx_ops;
 #endif

+ 6 - 0
umac/global_umac_dispatcher/lmac_if/src/wlan_lmac_if.c

@@ -32,6 +32,9 @@
 #include "target_if_nan.h"
 #endif /* WLAN_FEATURE_NAN_CONVERGENCE */
 
+#if WLAN_CRYPTO_SUPPORTED
+#include "wlan_crypto_global_api.h"
+#endif
 /* Function pointer for OL/WMA specific UMAC tx_ops
  * registration.
  */
@@ -159,6 +162,9 @@ wlan_lmac_if_umac_rx_ops_register(struct wlan_lmac_if_rx_ops *rx_ops)
 	rx_ops->scan.scan_ev_handler = tgt_scan_event_handler;
 	wlan_lmac_if_atf_rx_ops_register(rx_ops);
 
+#if WLAN_CRYPTO_SUPPORTED
+	wlan_crypto_register_crypto_rx_ops(&rx_ops->crypto_rx_ops);
+#endif
 	/* wifi_pos rx ops */
 	wlan_lmac_if_umac_rx_ops_register_wifi_pos(rx_ops);