1 /*
2 * Copyright (c) 2018 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: Implements public API for action_oui to interact with target/WMI
21 */
22
23 #include "wlan_action_oui_tgt_api.h"
24 #include "wlan_action_oui_main.h"
25 #include "wlan_action_oui_public_struct.h"
26
tgt_action_oui_send(struct wlan_objmgr_psoc * psoc,struct action_oui_request * req)27 QDF_STATUS tgt_action_oui_send(struct wlan_objmgr_psoc *psoc,
28 struct action_oui_request *req)
29 {
30 struct action_oui_tx_ops *tx_ops;
31 QDF_STATUS status = QDF_STATUS_E_FAILURE;
32
33 ACTION_OUI_ENTER();
34
35 tx_ops = GET_ACTION_OUI_TX_OPS_FROM_PSOC(psoc);
36 QDF_ASSERT(tx_ops->send_req);
37 if (tx_ops->send_req)
38 status = tx_ops->send_req(psoc, req);
39
40 ACTION_OUI_EXIT();
41
42 return status;
43 }
44