1 /* 2 * Copyright (c) 2019 The Linux Foundation. All rights reserved. 3 * 4 * Permission to use, copy, modify, and/or distribute this software for 5 * any purpose with or without fee is hereby granted, provided that the 6 * above copyright notice and this permission notice appear in all 7 * copies. 8 * 9 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL 10 * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED 11 * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE 12 * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL 13 * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR 14 * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 15 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 16 * PERFORMANCE OF THIS SOFTWARE. 17 */ 18 19 /* 20 * DOC: contains crypto north bound interface definitions 21 */ 22 23 #include <qdf_types.h> 24 #include <wlan_crypto_global_def.h> 25 #include <wlan_objmgr_vdev_obj.h> 26 #include <wlan_crypto_global_api.h> 27 QDF_STATUS ucfg_crypto_set_key_req(struct wlan_objmgr_vdev *vdev, 28 struct wlan_crypto_key *req, 29 enum wlan_crypto_key_type key_type) 30 { 31 /* 32 * It is the job of dispatcher to decide whether the 33 * request has to be sent to scheduler or should be 34 * sent as a offload request or process directly. 35 * 36 * Current requirement is to process set key request 37 * as run to completion without posting any messages. 38 * Hence the request handler is directly called from 39 * here. 40 */ 41 return wlan_crypto_set_key_req(vdev, req, key_type); 42 } 43 44