Jeff Johnson | 2b0a7b8 | 2016-05-18 15:08:02 -0700 | [diff] [blame] | 1 | /* |
| 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 Johnson | 9afc501 | 2016-09-23 13:56:27 -0700 | [diff] [blame] | 31 | struct hdd_context_s; |
Jeff Johnson | 2ae6f71 | 2016-09-23 15:08:48 -0700 | [diff] [blame^] | 32 | struct hdd_adapter_s; |
Jeff Johnson | 9afc501 | 2016-09-23 13:56:27 -0700 | [diff] [blame] | 33 | |
Jeff Johnson | 2b0a7b8 | 2016-05-18 15:08:02 -0700 | [diff] [blame] | 34 | #ifdef WLAN_FEATURE_LPSS |
Jeff Johnson | d9dd484 | 2016-05-18 16:49:29 -0700 | [diff] [blame] | 35 | void wlan_hdd_send_status_pkg(hdd_adapter_t *adapter, |
| 36 | hdd_station_ctx_t *sta_ctx, |
Jeff Johnson | 2b0a7b8 | 2016-05-18 15:08:02 -0700 | [diff] [blame] | 37 | uint8_t is_on, uint8_t is_connected); |
Jeff Johnson | 2ae6f71 | 2016-09-23 15:08:48 -0700 | [diff] [blame^] | 38 | |
| 39 | /** |
| 40 | * hdd_lpass_notify_mode_change() - Notify LPASS of interface mode change |
| 41 | * @adapter: The adapter whose mode was changed |
| 42 | * |
| 43 | * This function is used to notify the LPASS feature that an adapter |
| 44 | * had its mode changed. |
| 45 | * |
| 46 | * Return: none |
| 47 | */ |
| 48 | void hdd_lpass_notify_mode_change(struct hdd_adapter_s *adapter); |
Jeff Johnson | 9afc501 | 2016-09-23 13:56:27 -0700 | [diff] [blame] | 49 | |
| 50 | /** |
| 51 | * hdd_lpass_notify_start() - Notify LPASS of driver start |
| 52 | * @hdd_ctx: The global HDD context |
| 53 | * |
| 54 | * This function is used to notify the LPASS feature that the wlan |
| 55 | * driver has (re-)started. |
| 56 | * |
| 57 | * Return: none |
| 58 | */ |
| 59 | void hdd_lpass_notify_start(struct hdd_context_s *hdd_ctx); |
Jeff Johnson | f7f66f0 | 2016-09-23 14:50:11 -0700 | [diff] [blame] | 60 | |
| 61 | /** |
| 62 | * hdd_lpass_notify_stop() - Notify LPASS of driver stop |
| 63 | * @hdd_ctx: The global HDD context |
| 64 | * |
| 65 | * This function is used to notify the LPASS feature that the wlan |
| 66 | * driver has stopped. |
| 67 | * |
| 68 | * Return: none |
| 69 | */ |
| 70 | void hdd_lpass_notify_stop(struct hdd_context_s *hdd_ctx); |
Jeff Johnson | 2b0a7b8 | 2016-05-18 15:08:02 -0700 | [diff] [blame] | 71 | #else |
Jeff Johnson | d9dd484 | 2016-05-18 16:49:29 -0700 | [diff] [blame] | 72 | static inline void wlan_hdd_send_status_pkg(hdd_adapter_t *adapter, |
| 73 | hdd_station_ctx_t *sta_ctx, |
Jeff Johnson | 2b0a7b8 | 2016-05-18 15:08:02 -0700 | [diff] [blame] | 74 | uint8_t is_on, uint8_t is_connected) |
| 75 | { |
| 76 | return; |
| 77 | } |
| 78 | |
Jeff Johnson | 2ae6f71 | 2016-09-23 15:08:48 -0700 | [diff] [blame^] | 79 | static inline void hdd_lpass_notify_mode_change(struct hdd_adapter_s *adapter) |
Jeff Johnson | 2b0a7b8 | 2016-05-18 15:08:02 -0700 | [diff] [blame] | 80 | { |
Jeff Johnson | 2b0a7b8 | 2016-05-18 15:08:02 -0700 | [diff] [blame] | 81 | } |
Jeff Johnson | 9afc501 | 2016-09-23 13:56:27 -0700 | [diff] [blame] | 82 | static inline void hdd_lpass_notify_start(struct hdd_context_s *hdd_ctx) { } |
Jeff Johnson | f7f66f0 | 2016-09-23 14:50:11 -0700 | [diff] [blame] | 83 | static inline void hdd_lpass_notify_stop(struct hdd_context_s *hdd_ctx) { } |
Jeff Johnson | 2b0a7b8 | 2016-05-18 15:08:02 -0700 | [diff] [blame] | 84 | #endif |
| 85 | |
| 86 | #endif /* WLAN_HDD_LPASS_H */ |