blob: 043f305945fab940b843fcc5fa6dd54ae07a36e9 [file] [log] [blame]
Jeff Johnson2b0a7b82016-05-18 15:08:02 -07001/*
2 * Copyright (c) 2012-2016 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#if !defined(WLAN_HDD_LPASS_H)
29#define WLAN_HDD_LPASS_H
30
Jeff Johnson9afc5012016-09-23 13:56:27 -070031struct hdd_context_s;
Jeff Johnson2ae6f712016-09-23 15:08:48 -070032struct hdd_adapter_s;
Jeff Johnson9afc5012016-09-23 13:56:27 -070033
Jeff Johnson2b0a7b82016-05-18 15:08:02 -070034#ifdef WLAN_FEATURE_LPSS
Jeff Johnson71396692016-09-23 15:41:52 -070035/**
36 * hdd_lpass_notify_connect() - Notify LPASS of interface connect
37 * @adapter: The adapter that connected
38 *
39 * This function is used to notify the LPASS feature that an adapter
40 * has connected.
41 *
42 * Return: none
43 */
44void hdd_lpass_notify_connect(struct hdd_adapter_s *adapter);
Jeff Johnson2ae6f712016-09-23 15:08:48 -070045
46/**
Jeff Johnsoncef59bb2016-09-23 15:28:47 -070047 * hdd_lpass_notify_disconnect() - Notify LPASS of interface disconnect
48 * @adapter: The adapter that connected
49 *
50 * This function is used to notify the LPASS feature that an adapter
51 * has disconnected.
52 *
53 * Return: none
54 */
55void hdd_lpass_notify_disconnect(struct hdd_adapter_s *adapter);
56
57/**
Jeff Johnson2ae6f712016-09-23 15:08:48 -070058 * hdd_lpass_notify_mode_change() - Notify LPASS of interface mode change
59 * @adapter: The adapter whose mode was changed
60 *
61 * This function is used to notify the LPASS feature that an adapter
62 * had its mode changed.
63 *
64 * Return: none
65 */
66void hdd_lpass_notify_mode_change(struct hdd_adapter_s *adapter);
Jeff Johnson9afc5012016-09-23 13:56:27 -070067
68/**
69 * hdd_lpass_notify_start() - Notify LPASS of driver start
70 * @hdd_ctx: The global HDD context
71 *
72 * This function is used to notify the LPASS feature that the wlan
73 * driver has (re-)started.
74 *
75 * Return: none
76 */
77void hdd_lpass_notify_start(struct hdd_context_s *hdd_ctx);
Jeff Johnsonf7f66f02016-09-23 14:50:11 -070078
79/**
80 * hdd_lpass_notify_stop() - Notify LPASS of driver stop
81 * @hdd_ctx: The global HDD context
82 *
83 * This function is used to notify the LPASS feature that the wlan
84 * driver has stopped.
85 *
86 * Return: none
87 */
88void hdd_lpass_notify_stop(struct hdd_context_s *hdd_ctx);
Jeff Johnson2b0a7b82016-05-18 15:08:02 -070089#else
Jeff Johnson71396692016-09-23 15:41:52 -070090static inline void hdd_lpass_notify_connect(struct hdd_adapter_s *adapter)
Jeff Johnson2b0a7b82016-05-18 15:08:02 -070091{
Jeff Johnson2b0a7b82016-05-18 15:08:02 -070092}
Jeff Johnsoncef59bb2016-09-23 15:28:47 -070093static inline void hdd_lpass_notify_disconnect(struct hdd_adapter_s *adapter)
94{
95}
Jeff Johnson2ae6f712016-09-23 15:08:48 -070096static inline void hdd_lpass_notify_mode_change(struct hdd_adapter_s *adapter)
Jeff Johnson2b0a7b82016-05-18 15:08:02 -070097{
Jeff Johnson2b0a7b82016-05-18 15:08:02 -070098}
Jeff Johnson9afc5012016-09-23 13:56:27 -070099static inline void hdd_lpass_notify_start(struct hdd_context_s *hdd_ctx) { }
Jeff Johnsonf7f66f02016-09-23 14:50:11 -0700100static inline void hdd_lpass_notify_stop(struct hdd_context_s *hdd_ctx) { }
Jeff Johnson2b0a7b82016-05-18 15:08:02 -0700101#endif
102
103#endif /* WLAN_HDD_LPASS_H */