Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1 | /* |
Srinivas Girigowda | 8711c74 | 2017-03-24 23:35:10 -0700 | [diff] [blame] | 2 | * Copyright (c) 2014-2017 The Linux Foundation. All rights reserved. |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 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_SOFTAP_TX_RX_H) |
| 29 | #define WLAN_HDD_SOFTAP_TX_RX_H |
| 30 | |
| 31 | /** |
| 32 | * DOC: wlan_hdd_softap_tx_rx.h |
| 33 | * |
| 34 | *Linux HDD SOFTAP Tx/RX APIs |
| 35 | */ |
| 36 | |
| 37 | #include <wlan_hdd_hostapd.h> |
Manjunathappa Prakash | 3454fd6 | 2016-04-01 08:52:06 -0700 | [diff] [blame] | 38 | #include <cdp_txrx_peer_ops.h> |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 39 | |
| 40 | int hdd_softap_hard_start_xmit(struct sk_buff *skb, |
| 41 | struct net_device *dev); |
| 42 | void hdd_softap_tx_timeout(struct net_device *dev); |
Jeff Johnson | 18dd7e1 | 2017-08-29 14:22:28 -0700 | [diff] [blame^] | 43 | QDF_STATUS hdd_softap_init_tx_rx(struct hdd_adapter *pAdapter); |
| 44 | QDF_STATUS hdd_softap_deinit_tx_rx(struct hdd_adapter *pAdapter); |
| 45 | QDF_STATUS hdd_softap_init_tx_rx_sta(struct hdd_adapter *pAdapter, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 46 | uint8_t STAId, |
Anurag Chouhan | 6d76066 | 2016-02-20 16:05:43 +0530 | [diff] [blame] | 47 | struct qdf_mac_addr *pmacAddrSTA); |
Jeff Johnson | 18dd7e1 | 2017-08-29 14:22:28 -0700 | [diff] [blame^] | 48 | QDF_STATUS hdd_softap_deinit_tx_rx_sta(struct hdd_adapter *pAdapter, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 49 | uint8_t STAId); |
Dhanashri Atre | 182b027 | 2016-02-17 15:35:07 -0800 | [diff] [blame] | 50 | |
| 51 | QDF_STATUS hdd_softap_rx_packet_cbk(void *context, qdf_nbuf_t rxBufChain); |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 52 | #ifdef IPA_OFFLOAD |
Anurag Chouhan | fb54ab0 | 2016-02-18 18:00:46 +0530 | [diff] [blame] | 53 | QDF_STATUS hdd_softap_rx_mul_packet_cbk(void *cds_context, |
Nirav Shah | cbc6d72 | 2016-03-01 16:24:53 +0530 | [diff] [blame] | 54 | qdf_nbuf_t rx_buf_list, uint8_t staId); |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 55 | #endif /* IPA_OFFLOAD */ |
| 56 | |
Jeff Johnson | 18dd7e1 | 2017-08-29 14:22:28 -0700 | [diff] [blame^] | 57 | QDF_STATUS hdd_softap_deregister_sta(struct hdd_adapter *pAdapter, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 58 | uint8_t staId); |
Jeff Johnson | 18dd7e1 | 2017-08-29 14:22:28 -0700 | [diff] [blame^] | 59 | QDF_STATUS hdd_softap_register_sta(struct hdd_adapter *pAdapter, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 60 | bool fAuthRequired, |
| 61 | bool fPrivacyBit, |
| 62 | uint8_t staId, |
| 63 | uint8_t ucastSig, |
| 64 | uint8_t bcastSig, |
Anurag Chouhan | 6d76066 | 2016-02-20 16:05:43 +0530 | [diff] [blame] | 65 | struct qdf_mac_addr *pPeerMacAddress, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 66 | bool fWmmEnabled); |
Jeff Johnson | 18dd7e1 | 2017-08-29 14:22:28 -0700 | [diff] [blame^] | 67 | QDF_STATUS hdd_softap_register_bc_sta(struct hdd_adapter *pAdapter, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 68 | bool fPrivacyBit); |
Jeff Johnson | 18dd7e1 | 2017-08-29 14:22:28 -0700 | [diff] [blame^] | 69 | QDF_STATUS hdd_softap_deregister_bc_sta(struct hdd_adapter *pAdapter); |
| 70 | QDF_STATUS hdd_softap_stop_bss(struct hdd_adapter *pHostapdAdapter); |
| 71 | QDF_STATUS hdd_softap_change_sta_state(struct hdd_adapter *pAdapter, |
Anurag Chouhan | 6d76066 | 2016-02-20 16:05:43 +0530 | [diff] [blame] | 72 | struct qdf_mac_addr *pDestMacAddress, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 73 | enum ol_txrx_peer_state state); |
Jeff Johnson | 18dd7e1 | 2017-08-29 14:22:28 -0700 | [diff] [blame^] | 74 | QDF_STATUS hdd_softap_get_sta_id(struct hdd_adapter *pAdapter, |
Anurag Chouhan | 6d76066 | 2016-02-20 16:05:43 +0530 | [diff] [blame] | 75 | struct qdf_mac_addr *pMacAddress, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 76 | uint8_t *staId); |
| 77 | |
| 78 | #ifdef QCA_LL_LEGACY_TX_FLOW_CONTROL |
| 79 | void hdd_softap_tx_resume_timer_expired_handler(void *adapter_context); |
| 80 | void hdd_softap_tx_resume_cb(void *adapter_context, bool tx_resume); |
| 81 | #else |
| 82 | static inline |
| 83 | void hdd_softap_tx_resume_timer_expired_handler(void *adapter_context) |
| 84 | { |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 85 | } |
| 86 | static inline |
| 87 | void hdd_softap_tx_resume_cb(void *adapter_context, bool tx_resume) |
| 88 | { |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 89 | } |
| 90 | #endif /* QCA_LL_LEGACY_TX_FLOW_CONTROL */ |
| 91 | |
| 92 | #endif /* end #if !defined(WLAN_HDD_SOFTAP_TX_RX_H) */ |