1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- /*
- * Copyright (c) 2017-2018 The Linux Foundation. All rights reserved.
- *
- * Permission to use, copy, modify, and/or distribute this software for
- * any purpose with or without fee is hereby granted, provided that the
- * above copyright notice and this permission notice appear in all
- * copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
- * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
- * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
- * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
- * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
- * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- * PERFORMANCE OF THIS SOFTWARE.
- */
- /**
- * DOC: Public API intialization of crypto service with object manager
- */
- #include <qdf_types.h>
- #include <wlan_cmn.h>
- #include <wlan_objmgr_cmn.h>
- #include <wlan_objmgr_global_obj.h>
- #include <wlan_objmgr_psoc_obj.h>
- #include <wlan_objmgr_pdev_obj.h>
- #include <wlan_objmgr_vdev_obj.h>
- #include <wlan_objmgr_peer_obj.h>
- #include "wlan_crypto_global_def.h"
- #include "wlan_crypto_def_i.h"
- #include "wlan_crypto_main_i.h"
- #include "wlan_crypto_obj_mgr_i.h"
- static QDF_STATUS none_setkey(struct wlan_crypto_key *key)
- {
- return QDF_STATUS_SUCCESS;
- }
- static QDF_STATUS none_encap(struct wlan_crypto_key *key,
- qdf_nbuf_t wbuf,
- uint8_t encapdone,
- uint8_t hdrlen){
- return QDF_STATUS_SUCCESS;
- }
- static QDF_STATUS none_decap(struct wlan_crypto_key *key,
- qdf_nbuf_t wbuf,
- uint8_t tid,
- uint8_t hdrlen){
- return QDF_STATUS_SUCCESS;
- }
- static QDF_STATUS none_enmic(struct wlan_crypto_key *key,
- qdf_nbuf_t wbuf,
- uint8_t encapdone,
- uint8_t hdrlen){
- return QDF_STATUS_SUCCESS;
- }
- static QDF_STATUS none_demic(struct wlan_crypto_key *key,
- qdf_nbuf_t wbuf,
- uint8_t tid,
- uint8_t hdrlen){
- return QDF_STATUS_SUCCESS;
- }
- const struct wlan_crypto_cipher none_cipher_table = {
- "NONE",
- WLAN_CRYPTO_CIPHER_NONE,
- 0,
- 0,
- 0,
- 0,
- none_setkey,
- none_encap,
- none_decap,
- none_enmic,
- none_demic,
- };
- const struct wlan_crypto_cipher *none_register(void)
- {
- return &none_cipher_table;
- }
|