Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame^] | 1 | /* |
| 2 | * Copyright (c) 2014-2015 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_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> |
| 38 | |
| 39 | int hdd_softap_hard_start_xmit(struct sk_buff *skb, |
| 40 | struct net_device *dev); |
| 41 | void hdd_softap_tx_timeout(struct net_device *dev); |
| 42 | CDF_STATUS hdd_softap_init_tx_rx(hdd_adapter_t *pAdapter); |
| 43 | CDF_STATUS hdd_softap_deinit_tx_rx(hdd_adapter_t *pAdapter); |
| 44 | CDF_STATUS hdd_softap_init_tx_rx_sta(hdd_adapter_t *pAdapter, |
| 45 | uint8_t STAId, |
| 46 | struct cdf_mac_addr *pmacAddrSTA); |
| 47 | CDF_STATUS hdd_softap_deinit_tx_rx_sta(hdd_adapter_t *pAdapter, |
| 48 | uint8_t STAId); |
| 49 | CDF_STATUS hdd_softap_rx_packet_cbk(void *cds_context, |
| 50 | cdf_nbuf_t rxBufChain, |
| 51 | uint8_t staId); |
| 52 | #ifdef IPA_OFFLOAD |
| 53 | CDF_STATUS hdd_softap_rx_mul_packet_cbk(void *cds_context, |
| 54 | cdf_nbuf_t rx_buf_list, uint8_t staId); |
| 55 | #endif /* IPA_OFFLOAD */ |
| 56 | |
| 57 | CDF_STATUS hdd_softap_deregister_sta(hdd_adapter_t *pAdapter, |
| 58 | uint8_t staId); |
| 59 | CDF_STATUS hdd_softap_register_sta(hdd_adapter_t *pAdapter, |
| 60 | bool fAuthRequired, |
| 61 | bool fPrivacyBit, |
| 62 | uint8_t staId, |
| 63 | uint8_t ucastSig, |
| 64 | uint8_t bcastSig, |
| 65 | struct cdf_mac_addr *pPeerMacAddress, |
| 66 | bool fWmmEnabled); |
| 67 | CDF_STATUS hdd_softap_register_bc_sta(hdd_adapter_t *pAdapter, |
| 68 | bool fPrivacyBit); |
| 69 | CDF_STATUS hdd_softap_deregister_bc_sta(hdd_adapter_t *pAdapter); |
| 70 | CDF_STATUS hdd_softap_stop_bss(hdd_adapter_t *pHostapdAdapter); |
| 71 | CDF_STATUS hdd_softap_change_sta_state(hdd_adapter_t *pAdapter, |
| 72 | struct cdf_mac_addr *pDestMacAddress, |
| 73 | enum ol_txrx_peer_state state); |
| 74 | CDF_STATUS hdd_softap_get_sta_id(hdd_adapter_t *pAdapter, |
| 75 | struct cdf_mac_addr *pMacAddress, |
| 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 | { |
| 85 | return; |
| 86 | } |
| 87 | static inline |
| 88 | void hdd_softap_tx_resume_cb(void *adapter_context, bool tx_resume) |
| 89 | { |
| 90 | return; |
| 91 | } |
| 92 | #endif /* QCA_LL_LEGACY_TX_FLOW_CONTROL */ |
| 93 | |
| 94 | #endif /* end #if !defined(WLAN_HDD_SOFTAP_TX_RX_H) */ |