blob: 95e13f344c04faad365098bd6a2c06be6fb530a4 [file] [log] [blame]
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001/*
2 * Copyright (c) 2015 The Linux Foundation. All rights reserved.
3 *
4 * Previously licensed under the ISC license by Qualcomm Atheros, Inc.
5 *
6 *
7 * Permission to use, copy, modify, and/or distribute this software for
8 * any purpose with or without fee is hereby granted, provided that the
9 * above copyright notice and this permission notice appear in all
10 * copies.
11 *
12 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
13 * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
14 * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
15 * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
16 * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
17 * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
18 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
19 * PERFORMANCE OF THIS SOFTWARE.
20 */
21
22/*
23 * This file was originally distributed by Qualcomm Atheros, Inc.
24 * under proprietary terms before Copyright ownership was assigned
25 * to the Linux Foundation.
26 */
27
28#ifndef __WLAN_HDD_CONC_UT_H
29#define __WLAN_HDD_CONC_UT_H
30
31/* Include files */
32
33#include "wlan_hdd_main.h"
34#include "cds_concurrency.h"
35#ifdef MPC_UT_FRAMEWORK
36void clean_report(hdd_context_t *hdd_ctx);
37void fill_report(hdd_context_t *hdd_ctx, char *title,
38 uint32_t first_persona, uint32_t second_persona, uint32_t third_persona,
39 uint32_t chnl_1st_conn, uint32_t chnl_2nd_conn, uint32_t chnl_3rd_conn,
40 bool status, enum cds_pcl_type pcl_type, char *reason, uint8_t *pcl);
41void print_report(hdd_context_t *hdd_ctx);
42void wlan_hdd_one_connection_scenario(hdd_context_t *hdd_ctx);
43void wlan_hdd_two_connections_scenario(hdd_context_t *hdd_ctx,
44 uint8_t first_chnl, enum cds_chain_mode first_chain_mask);
45void wlan_hdd_three_connections_scenario(hdd_context_t *hdd_ctx,
46 uint8_t first_chnl, uint8_t second_chnl,
47 enum cds_chain_mode chain_mask, uint8_t use_same_mac);
48#else
49static inline void clean_report(hdd_context_t *hdd_ctx)
50{
51}
52
53static inline void fill_report(hdd_context_t *hdd_ctx, char *title,
54 uint32_t first_persona, uint32_t second_persona, uint32_t third_persona,
55 uint32_t chnl_1st_conn, uint32_t chnl_2nd_conn, uint32_t chnl_3rd_conn,
56 bool status, enum hdd_pcl_type pcl_type, char *reason, uint8_t *pcl)
57{
58}
59
60static inline void print_report(hdd_context_t *hdd_ctx)
61{
62}
63
64static inline void wlan_hdd_one_connection_scenario(hdd_context_t *hdd_ctx)
65{
66}
67
68static inline void wlan_hdd_two_connections_scenario(hdd_context_t *hdd_ctx,
69 uint8_t first_chnl, enum hdd_chain_mode first_chain_mask)
70{
71}
72
73static inline void wlan_hdd_three_connections_scenario(hdd_context_t *hdd_ctx,
74 uint8_t first_chnl, uint8_t second_chnl,
75 enum hdd_chain_mode chain_mask, uint8_t use_same_mac)
76{
77}
78#endif
79#endif