Ravi Joshi | 1c2cfb6 | 2017-01-18 14:40:08 -0800 | [diff] [blame] | 1 | /* |
Venkata Sharath Chandra Manchala | 27a4296 | 2018-06-08 17:51:44 -0700 | [diff] [blame^] | 2 | * Copyright (c) 2017-2018 The Linux Foundation. All rights reserved. |
Ravi Joshi | 1c2cfb6 | 2017-01-18 14:40:08 -0800 | [diff] [blame] | 3 | * |
Ravi Joshi | 1c2cfb6 | 2017-01-18 14:40:08 -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 | |
Ravi Joshi | 1c2cfb6 | 2017-01-18 14:40:08 -0800 | [diff] [blame] | 19 | #ifndef __WLAN_HDD_RX_MONITOR_H |
| 20 | #define __WLAN_HDD_RX_MONITOR_H |
| 21 | |
Ravi Joshi | 106ffe0 | 2017-01-18 18:09:05 -0800 | [diff] [blame] | 22 | struct ol_txrx_ops; |
| 23 | |
Venkata Sharath Chandra Manchala | 27a4296 | 2018-06-08 17:51:44 -0700 | [diff] [blame^] | 24 | #if defined(QCA_WIFI_QCA6290) || defined(QCA_WIFI_QCA6390) |
Ravi Joshi | 106ffe0 | 2017-01-18 18:09:05 -0800 | [diff] [blame] | 25 | void hdd_monitor_set_rx_monitor_cb(struct ol_txrx_ops *txrx, |
| 26 | ol_txrx_rx_mon_fp rx_monitor_cb); |
| 27 | |
| 28 | void hdd_rx_monitor_callback(ol_osif_vdev_handle vdev, |
| 29 | qdf_nbuf_t mpdu, |
| 30 | void *rx_status); |
Ravi Joshi | 4f09595 | 2017-06-29 15:39:19 -0700 | [diff] [blame] | 31 | |
| 32 | int hdd_enable_monitor_mode(struct net_device *dev); |
Ravi Joshi | 106ffe0 | 2017-01-18 18:09:05 -0800 | [diff] [blame] | 33 | #else |
Ravi Joshi | 4f09595 | 2017-06-29 15:39:19 -0700 | [diff] [blame] | 34 | static inline void hdd_monitor_set_rx_monitor_cb(struct ol_txrx_ops *txrx, |
Ravi Joshi | 106ffe0 | 2017-01-18 18:09:05 -0800 | [diff] [blame] | 35 | ol_txrx_rx_mon_fp rx_monitor_cb){ } |
Ravi Joshi | 4f09595 | 2017-06-29 15:39:19 -0700 | [diff] [blame] | 36 | static inline void hdd_rx_monitor_callback(ol_osif_vdev_handle vdev, |
Ravi Joshi | 106ffe0 | 2017-01-18 18:09:05 -0800 | [diff] [blame] | 37 | qdf_nbuf_t mpdu, |
| 38 | void *rx_status){ } |
Ravi Joshi | 4f09595 | 2017-06-29 15:39:19 -0700 | [diff] [blame] | 39 | static inline int hdd_enable_monitor_mode(struct net_device *dev) |
| 40 | { |
Ravi Joshi | 6276544 | 2017-07-25 11:41:01 -0700 | [diff] [blame] | 41 | return 0; |
Ravi Joshi | 4f09595 | 2017-06-29 15:39:19 -0700 | [diff] [blame] | 42 | } |
Ravi Joshi | 106ffe0 | 2017-01-18 18:09:05 -0800 | [diff] [blame] | 43 | #endif /* CONFIG_LITHIUM */ |
| 44 | |
Ravi Joshi | 1c2cfb6 | 2017-01-18 14:40:08 -0800 | [diff] [blame] | 45 | #endif /* __WLAN_HDD_RX_MONITOR_H */ |
| 46 | |