1 /* 2 * Copyright (c) 2017-2018 The Linux Foundation. All rights reserved. 3 * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. 4 * 5 * Permission to use, copy, modify, and/or distribute this software for 6 * any purpose with or without fee is hereby granted, provided that the 7 * above copyright notice and this permission notice appear in all 8 * copies. 9 * 10 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL 11 * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED 12 * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE 13 * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL 14 * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR 15 * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 16 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 17 * PERFORMANCE OF THIS SOFTWARE. 18 */ 19 20 /** 21 * DOC: Public API initialization of crypto service with object manager 22 */ 23 #include <qdf_types.h> 24 #include "wlan_crypto_main_i.h" 25 #include "wlan_crypto_main.h" 26 27 /** 28 * wlan_crypto_init - Init the crypto service with object manager 29 * Called from umac init context. 30 * 31 * Return: QDF_STATUS_SUCCESS - in case of success 32 */ 33 QDF_STATUS wlan_crypto_init(void) 34 { 35 return __wlan_crypto_init(); 36 } 37 38 /** 39 * wlan_crypto_deinit - Deinit the crypto service with object manager 40 * Called from umac deinit context. 41 * 42 * Return: QDF_STATUS_SUCCESS - in case of success 43 */ 44 QDF_STATUS wlan_crypto_deinit(void) 45 { 46 return __wlan_crypto_deinit(); 47 } 48