Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1 | /* |
Krunal Soni | a6e505b | 2017-01-12 12:25:18 -0800 | [diff] [blame] | 2 | * Copyright (c) 2015-2017 The Linux Foundation. All rights reserved. |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 3 | * |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 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 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 19 | #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 Bhattacharyya | 8716158 | 2017-03-09 13:03:31 -0800 | [diff] [blame] | 25 | #include "wlan_policy_mgr_api.h" |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 26 | #ifdef MPC_UT_FRAMEWORK |
Jeff Johnson | 7a62733 | 2017-08-28 12:05:55 -0700 | [diff] [blame] | 27 | void clean_report(struct hdd_context *hdd_ctx); |
| 28 | void fill_report(struct hdd_context *hdd_ctx, char *title, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 29 | 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 Bhattacharyya | 8716158 | 2017-03-09 13:03:31 -0800 | [diff] [blame] | 31 | bool status, enum policy_mgr_pcl_type pcl_type, char *reason, |
| 32 | uint8_t *pcl); |
Jeff Johnson | 7a62733 | 2017-08-28 12:05:55 -0700 | [diff] [blame] | 33 | void print_report(struct hdd_context *hdd_ctx); |
| 34 | void wlan_hdd_one_connection_scenario(struct hdd_context *hdd_ctx); |
| 35 | void wlan_hdd_two_connections_scenario(struct hdd_context *hdd_ctx, |
Tushnim Bhattacharyya | 8716158 | 2017-03-09 13:03:31 -0800 | [diff] [blame] | 36 | uint8_t first_chnl, enum policy_mgr_chain_mode first_chain_mask); |
Jeff Johnson | 7a62733 | 2017-08-28 12:05:55 -0700 | [diff] [blame] | 37 | void wlan_hdd_three_connections_scenario(struct hdd_context *hdd_ctx, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 38 | uint8_t first_chnl, uint8_t second_chnl, |
Tushnim Bhattacharyya | 8716158 | 2017-03-09 13:03:31 -0800 | [diff] [blame] | 39 | enum policy_mgr_chain_mode chain_mask, uint8_t use_same_mac); |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 40 | #else |
Jeff Johnson | aafc84a | 2017-10-03 11:15:21 -0700 | [diff] [blame] | 41 | static inline |
| 42 | void clean_report(struct hdd_context *hdd_ctx) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 43 | { |
| 44 | } |
| 45 | |
Jeff Johnson | aafc84a | 2017-10-03 11:15:21 -0700 | [diff] [blame] | 46 | static inline |
| 47 | void fill_report(struct hdd_context *hdd_ctx, char *title, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 48 | 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 Bhattacharyya | 8716158 | 2017-03-09 13:03:31 -0800 | [diff] [blame] | 50 | bool status, enum policy_mgr_pcl_type pcl_type, char *reason, |
| 51 | uint8_t *pcl) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 52 | { |
| 53 | } |
| 54 | |
Jeff Johnson | aafc84a | 2017-10-03 11:15:21 -0700 | [diff] [blame] | 55 | static inline |
| 56 | void print_report(struct hdd_context *hdd_ctx) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 57 | { |
| 58 | } |
| 59 | |
Jeff Johnson | aafc84a | 2017-10-03 11:15:21 -0700 | [diff] [blame] | 60 | static inline |
| 61 | void wlan_hdd_one_connection_scenario(struct hdd_context *hdd_ctx) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 62 | { |
| 63 | } |
| 64 | |
Jeff Johnson | aafc84a | 2017-10-03 11:15:21 -0700 | [diff] [blame] | 65 | static inline |
| 66 | void wlan_hdd_two_connections_scenario(struct hdd_context *hdd_ctx, |
Tushnim Bhattacharyya | 8716158 | 2017-03-09 13:03:31 -0800 | [diff] [blame] | 67 | uint8_t first_chnl, enum policy_mgr_chain_mode first_chain_mask) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 68 | { |
| 69 | } |
| 70 | |
Jeff Johnson | aafc84a | 2017-10-03 11:15:21 -0700 | [diff] [blame] | 71 | static inline |
| 72 | void wlan_hdd_three_connections_scenario(struct hdd_context *hdd_ctx, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 73 | uint8_t first_chnl, uint8_t second_chnl, |
Tushnim Bhattacharyya | 8716158 | 2017-03-09 13:03:31 -0800 | [diff] [blame] | 74 | enum policy_mgr_chain_mode chain_mask, uint8_t use_same_mac) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 75 | { |
| 76 | } |
| 77 | #endif |
| 78 | #endif |