blob: c1cc042da67fb2ef6b7eced595caaaaf1902fe22 [file] [log] [blame]
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001/*
Krunal Sonia6e505b2017-01-12 12:25:18 -08002 * Copyright (c) 2015-2017 The Linux Foundation. All rights reserved.
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08003 *
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004 * 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
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080019#ifndef __WLAN_HDD_CONC_UT_H
20#define __WLAN_HDD_CONC_UT_H
21
22/* Include files */
23
24#include "wlan_hdd_main.h"
Tushnim Bhattacharyya87161582017-03-09 13:03:31 -080025#include "wlan_policy_mgr_api.h"
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080026#ifdef MPC_UT_FRAMEWORK
Jeff Johnson7a627332017-08-28 12:05:55 -070027void clean_report(struct hdd_context *hdd_ctx);
28void fill_report(struct hdd_context *hdd_ctx, char *title,
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080029 uint32_t first_persona, uint32_t second_persona, uint32_t third_persona,
30 uint32_t chnl_1st_conn, uint32_t chnl_2nd_conn, uint32_t chnl_3rd_conn,
Tushnim Bhattacharyya87161582017-03-09 13:03:31 -080031 bool status, enum policy_mgr_pcl_type pcl_type, char *reason,
32 uint8_t *pcl);
Jeff Johnson7a627332017-08-28 12:05:55 -070033void print_report(struct hdd_context *hdd_ctx);
34void wlan_hdd_one_connection_scenario(struct hdd_context *hdd_ctx);
35void wlan_hdd_two_connections_scenario(struct hdd_context *hdd_ctx,
Tushnim Bhattacharyya87161582017-03-09 13:03:31 -080036 uint8_t first_chnl, enum policy_mgr_chain_mode first_chain_mask);
Jeff Johnson7a627332017-08-28 12:05:55 -070037void wlan_hdd_three_connections_scenario(struct hdd_context *hdd_ctx,
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080038 uint8_t first_chnl, uint8_t second_chnl,
Tushnim Bhattacharyya87161582017-03-09 13:03:31 -080039 enum policy_mgr_chain_mode chain_mask, uint8_t use_same_mac);
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080040#else
Jeff Johnsonaafc84a2017-10-03 11:15:21 -070041static inline
42void clean_report(struct hdd_context *hdd_ctx)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080043{
44}
45
Jeff Johnsonaafc84a2017-10-03 11:15:21 -070046static inline
47void fill_report(struct hdd_context *hdd_ctx, char *title,
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080048 uint32_t first_persona, uint32_t second_persona, uint32_t third_persona,
49 uint32_t chnl_1st_conn, uint32_t chnl_2nd_conn, uint32_t chnl_3rd_conn,
Tushnim Bhattacharyya87161582017-03-09 13:03:31 -080050 bool status, enum policy_mgr_pcl_type pcl_type, char *reason,
51 uint8_t *pcl)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080052{
53}
54
Jeff Johnsonaafc84a2017-10-03 11:15:21 -070055static inline
56void print_report(struct hdd_context *hdd_ctx)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080057{
58}
59
Jeff Johnsonaafc84a2017-10-03 11:15:21 -070060static inline
61void wlan_hdd_one_connection_scenario(struct hdd_context *hdd_ctx)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080062{
63}
64
Jeff Johnsonaafc84a2017-10-03 11:15:21 -070065static inline
66void wlan_hdd_two_connections_scenario(struct hdd_context *hdd_ctx,
Tushnim Bhattacharyya87161582017-03-09 13:03:31 -080067 uint8_t first_chnl, enum policy_mgr_chain_mode first_chain_mask)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080068{
69}
70
Jeff Johnsonaafc84a2017-10-03 11:15:21 -070071static inline
72void wlan_hdd_three_connections_scenario(struct hdd_context *hdd_ctx,
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080073 uint8_t first_chnl, uint8_t second_chnl,
Tushnim Bhattacharyya87161582017-03-09 13:03:31 -080074 enum policy_mgr_chain_mode chain_mask, uint8_t use_same_mac)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080075{
76}
77#endif
78#endif