1c7ee0b5cSfei feng - Sun Microsystems - Beijing China /* 26f12def4Spengcheng chen - Sun Microsystems - Beijing China * Copyright 2009 Sun Microsystems, Inc. All rights reserved. 3c7ee0b5cSfei feng - Sun Microsystems - Beijing China * Use is subject to license terms. 4c7ee0b5cSfei feng - Sun Microsystems - Beijing China */ 5c7ee0b5cSfei feng - Sun Microsystems - Beijing China 6c7ee0b5cSfei feng - Sun Microsystems - Beijing China /* 7e2cf88acSQuaker Fang * Copyright (c) 2009, Intel Corporation 8c7ee0b5cSfei feng - Sun Microsystems - Beijing China * All rights reserved. 9c7ee0b5cSfei feng - Sun Microsystems - Beijing China */ 10c7ee0b5cSfei feng - Sun Microsystems - Beijing China 11c7ee0b5cSfei feng - Sun Microsystems - Beijing China /* 12c7ee0b5cSfei feng - Sun Microsystems - Beijing China * Copyright (c) 2006 13c7ee0b5cSfei feng - Sun Microsystems - Beijing China * Copyright (c) 2007 14c7ee0b5cSfei feng - Sun Microsystems - Beijing China * Damien Bergamini <damien.bergamini@free.fr> 15c7ee0b5cSfei feng - Sun Microsystems - Beijing China * 16c7ee0b5cSfei feng - Sun Microsystems - Beijing China * Permission to use, copy, modify, and distribute this software for any 17c7ee0b5cSfei feng - Sun Microsystems - Beijing China * purpose with or without fee is hereby granted, provided that the above 18c7ee0b5cSfei feng - Sun Microsystems - Beijing China * copyright notice and this permission notice appear in all copies. 19c7ee0b5cSfei feng - Sun Microsystems - Beijing China * 20c7ee0b5cSfei feng - Sun Microsystems - Beijing China * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 21c7ee0b5cSfei feng - Sun Microsystems - Beijing China * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 22c7ee0b5cSfei feng - Sun Microsystems - Beijing China * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 23c7ee0b5cSfei feng - Sun Microsystems - Beijing China * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 24c7ee0b5cSfei feng - Sun Microsystems - Beijing China * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 25c7ee0b5cSfei feng - Sun Microsystems - Beijing China * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 26c7ee0b5cSfei feng - Sun Microsystems - Beijing China * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 27c7ee0b5cSfei feng - Sun Microsystems - Beijing China */ 28c7ee0b5cSfei feng - Sun Microsystems - Beijing China 29c7ee0b5cSfei feng - Sun Microsystems - Beijing China #ifndef _IWH_VAR_H 30c7ee0b5cSfei feng - Sun Microsystems - Beijing China #define _IWH_VAR_H 31c7ee0b5cSfei feng - Sun Microsystems - Beijing China 32c7ee0b5cSfei feng - Sun Microsystems - Beijing China #ifdef __cplusplus 33c7ee0b5cSfei feng - Sun Microsystems - Beijing China extern "C" { 34c7ee0b5cSfei feng - Sun Microsystems - Beijing China #endif 35c7ee0b5cSfei feng - Sun Microsystems - Beijing China 36c7ee0b5cSfei feng - Sun Microsystems - Beijing China #define IWH_DMA_SYNC(area, flag) \ 37c7ee0b5cSfei feng - Sun Microsystems - Beijing China (void) ddi_dma_sync((area).dma_hdl, (area).offset, \ 38c7ee0b5cSfei feng - Sun Microsystems - Beijing China (area).alength, (flag)) 39c7ee0b5cSfei feng - Sun Microsystems - Beijing China 406f12def4Spengcheng chen - Sun Microsystems - Beijing China #define IWH_CHK_FAST_RECOVER(sc) \ 416f12def4Spengcheng chen - Sun Microsystems - Beijing China (sc->sc_ic.ic_state == IEEE80211_S_RUN && \ 426f12def4Spengcheng chen - Sun Microsystems - Beijing China sc->sc_ic.ic_opmode == IEEE80211_M_STA) 436f12def4Spengcheng chen - Sun Microsystems - Beijing China 44c7ee0b5cSfei feng - Sun Microsystems - Beijing China typedef struct iwh_dma_area { 45c7ee0b5cSfei feng - Sun Microsystems - Beijing China ddi_acc_handle_t acc_hdl; /* handle for memory */ 46c7ee0b5cSfei feng - Sun Microsystems - Beijing China caddr_t mem_va; /* CPU VA of memory */ 47c7ee0b5cSfei feng - Sun Microsystems - Beijing China uint32_t nslots; /* number of slots */ 48c7ee0b5cSfei feng - Sun Microsystems - Beijing China uint32_t size; /* size per slot */ 49c7ee0b5cSfei feng - Sun Microsystems - Beijing China size_t alength; /* allocated size */ 50c7ee0b5cSfei feng - Sun Microsystems - Beijing China /* >= product of above */ 51c7ee0b5cSfei feng - Sun Microsystems - Beijing China ddi_dma_handle_t dma_hdl; /* DMA handle */ 52c7ee0b5cSfei feng - Sun Microsystems - Beijing China offset_t offset; /* relative to handle */ 53c7ee0b5cSfei feng - Sun Microsystems - Beijing China ddi_dma_cookie_t cookie; /* associated cookie */ 54c7ee0b5cSfei feng - Sun Microsystems - Beijing China uint32_t ncookies; 55c7ee0b5cSfei feng - Sun Microsystems - Beijing China uint32_t token; /* arbitrary identifier */ 56c7ee0b5cSfei feng - Sun Microsystems - Beijing China } iwh_dma_t; 57c7ee0b5cSfei feng - Sun Microsystems - Beijing China 58c7ee0b5cSfei feng - Sun Microsystems - Beijing China typedef struct iwh_tx_data { 59c7ee0b5cSfei feng - Sun Microsystems - Beijing China iwh_dma_t dma_data; /* for sending frames */ 60c7ee0b5cSfei feng - Sun Microsystems - Beijing China iwh_tx_desc_t *desc; 61c7ee0b5cSfei feng - Sun Microsystems - Beijing China uint32_t paddr_desc; 62c7ee0b5cSfei feng - Sun Microsystems - Beijing China iwh_cmd_t *cmd; 63c7ee0b5cSfei feng - Sun Microsystems - Beijing China uint32_t paddr_cmd; 64c7ee0b5cSfei feng - Sun Microsystems - Beijing China } iwh_tx_data_t; 65c7ee0b5cSfei feng - Sun Microsystems - Beijing China 66c7ee0b5cSfei feng - Sun Microsystems - Beijing China typedef struct iwh_tx_ring { 67c7ee0b5cSfei feng - Sun Microsystems - Beijing China iwh_dma_t dma_desc; /* for descriptor itself */ 68c7ee0b5cSfei feng - Sun Microsystems - Beijing China iwh_dma_t dma_cmd; /* for command to ucode */ 69c7ee0b5cSfei feng - Sun Microsystems - Beijing China iwh_tx_data_t *data; 70c7ee0b5cSfei feng - Sun Microsystems - Beijing China int qid; /* ID of queue */ 71c7ee0b5cSfei feng - Sun Microsystems - Beijing China int count; 72c7ee0b5cSfei feng - Sun Microsystems - Beijing China int window; 73c7ee0b5cSfei feng - Sun Microsystems - Beijing China int queued; 74c7ee0b5cSfei feng - Sun Microsystems - Beijing China int cur; 75*89b2a9fbSfei feng - Sun Microsystems - Beijing China int desc_cur; 76c7ee0b5cSfei feng - Sun Microsystems - Beijing China } iwh_tx_ring_t; 77c7ee0b5cSfei feng - Sun Microsystems - Beijing China 78c7ee0b5cSfei feng - Sun Microsystems - Beijing China typedef struct iwh_rx_data { 79c7ee0b5cSfei feng - Sun Microsystems - Beijing China iwh_dma_t dma_data; 80c7ee0b5cSfei feng - Sun Microsystems - Beijing China } iwh_rx_data_t; 81c7ee0b5cSfei feng - Sun Microsystems - Beijing China 82c7ee0b5cSfei feng - Sun Microsystems - Beijing China typedef struct iwh_rx_ring { 83c7ee0b5cSfei feng - Sun Microsystems - Beijing China iwh_dma_t dma_desc; 84c7ee0b5cSfei feng - Sun Microsystems - Beijing China uint32_t *desc; 85c7ee0b5cSfei feng - Sun Microsystems - Beijing China iwh_rx_data_t data[RX_QUEUE_SIZE]; 86c7ee0b5cSfei feng - Sun Microsystems - Beijing China int cur; 87c7ee0b5cSfei feng - Sun Microsystems - Beijing China } iwh_rx_ring_t; 88c7ee0b5cSfei feng - Sun Microsystems - Beijing China 89c7ee0b5cSfei feng - Sun Microsystems - Beijing China 90c7ee0b5cSfei feng - Sun Microsystems - Beijing China typedef struct iwh_amrr { 91e2cf88acSQuaker Fang ieee80211_node_t in; 92e2cf88acSQuaker Fang uint32_t txcnt; 93e2cf88acSQuaker Fang uint32_t retrycnt; 94e2cf88acSQuaker Fang uint32_t success; 95e2cf88acSQuaker Fang uint32_t success_threshold; 96c7ee0b5cSfei feng - Sun Microsystems - Beijing China int recovery; 97e2cf88acSQuaker Fang volatile uint32_t ht_mcs_idx; 98c7ee0b5cSfei feng - Sun Microsystems - Beijing China } iwh_amrr_t; 99c7ee0b5cSfei feng - Sun Microsystems - Beijing China 100c7ee0b5cSfei feng - Sun Microsystems - Beijing China struct iwh_phy_rx { 101c7ee0b5cSfei feng - Sun Microsystems - Beijing China uint8_t flag; 102c7ee0b5cSfei feng - Sun Microsystems - Beijing China uint8_t reserved[3]; 103c7ee0b5cSfei feng - Sun Microsystems - Beijing China uint8_t buf[128]; 104c7ee0b5cSfei feng - Sun Microsystems - Beijing China }; 105c7ee0b5cSfei feng - Sun Microsystems - Beijing China 106d00ac735Sfei feng - Sun Microsystems - Beijing China struct iwh_beacon_missed { 107d00ac735Sfei feng - Sun Microsystems - Beijing China uint32_t consecutive; 108d00ac735Sfei feng - Sun Microsystems - Beijing China uint32_t total; 109d00ac735Sfei feng - Sun Microsystems - Beijing China uint32_t expected; 110d00ac735Sfei feng - Sun Microsystems - Beijing China uint32_t received; 111d00ac735Sfei feng - Sun Microsystems - Beijing China }; 112d00ac735Sfei feng - Sun Microsystems - Beijing China 113c7ee0b5cSfei feng - Sun Microsystems - Beijing China typedef struct iwh_softc { 114c7ee0b5cSfei feng - Sun Microsystems - Beijing China struct ieee80211com sc_ic; 115c7ee0b5cSfei feng - Sun Microsystems - Beijing China dev_info_t *sc_dip; 116c7ee0b5cSfei feng - Sun Microsystems - Beijing China int (*sc_newstate)(struct ieee80211com *, 117c7ee0b5cSfei feng - Sun Microsystems - Beijing China enum ieee80211_state, int); 118e2cf88acSQuaker Fang void (*sc_recv_action)(ieee80211_node_t *, 119e2cf88acSQuaker Fang const uint8_t *, const uint8_t *); 120e2cf88acSQuaker Fang int (*sc_send_action)(ieee80211_node_t *, 121e2cf88acSQuaker Fang int, int, uint16_t[4]); 122e2cf88acSQuaker Fang volatile uint32_t sc_cmd_flag; 123e2cf88acSQuaker Fang volatile uint32_t sc_cmd_accum; 124c7ee0b5cSfei feng - Sun Microsystems - Beijing China 125c7ee0b5cSfei feng - Sun Microsystems - Beijing China enum ieee80211_state sc_ostate; 126c7ee0b5cSfei feng - Sun Microsystems - Beijing China kmutex_t sc_glock; 127c7ee0b5cSfei feng - Sun Microsystems - Beijing China kmutex_t sc_mt_lock; 128c7ee0b5cSfei feng - Sun Microsystems - Beijing China kmutex_t sc_tx_lock; 129e2cf88acSQuaker Fang kmutex_t sc_suspend_lock; 130c7ee0b5cSfei feng - Sun Microsystems - Beijing China kcondvar_t sc_mt_cv; 131c7ee0b5cSfei feng - Sun Microsystems - Beijing China kcondvar_t sc_tx_cv; 132c7ee0b5cSfei feng - Sun Microsystems - Beijing China kcondvar_t sc_cmd_cv; 133c7ee0b5cSfei feng - Sun Microsystems - Beijing China kcondvar_t sc_fw_cv; 134c7ee0b5cSfei feng - Sun Microsystems - Beijing China kcondvar_t sc_put_seg_cv; 135c7ee0b5cSfei feng - Sun Microsystems - Beijing China kcondvar_t sc_ucode_cv; 136c7ee0b5cSfei feng - Sun Microsystems - Beijing China 137c7ee0b5cSfei feng - Sun Microsystems - Beijing China kthread_t *sc_mf_thread; 138c7ee0b5cSfei feng - Sun Microsystems - Beijing China volatile uint32_t sc_mf_thread_switch; 139c7ee0b5cSfei feng - Sun Microsystems - Beijing China 140c7ee0b5cSfei feng - Sun Microsystems - Beijing China volatile uint32_t sc_flags; 141c7ee0b5cSfei feng - Sun Microsystems - Beijing China uint32_t sc_dmabuf_sz; 142c7ee0b5cSfei feng - Sun Microsystems - Beijing China uint16_t sc_clsz; 143c7ee0b5cSfei feng - Sun Microsystems - Beijing China uint8_t sc_rev; 144c7ee0b5cSfei feng - Sun Microsystems - Beijing China uint8_t sc_resv; 145c7ee0b5cSfei feng - Sun Microsystems - Beijing China uint16_t sc_assoc_id; 146c7ee0b5cSfei feng - Sun Microsystems - Beijing China uint16_t sc_reserved0; 147c7ee0b5cSfei feng - Sun Microsystems - Beijing China 148c7ee0b5cSfei feng - Sun Microsystems - Beijing China /* shared area */ 149c7ee0b5cSfei feng - Sun Microsystems - Beijing China iwh_dma_t sc_dma_sh; 150c7ee0b5cSfei feng - Sun Microsystems - Beijing China iwh_shared_t *sc_shared; 151c7ee0b5cSfei feng - Sun Microsystems - Beijing China /* keep warm area */ 152c7ee0b5cSfei feng - Sun Microsystems - Beijing China iwh_dma_t sc_dma_kw; 153c7ee0b5cSfei feng - Sun Microsystems - Beijing China /* tx scheduler base address */ 154c7ee0b5cSfei feng - Sun Microsystems - Beijing China uint32_t sc_scd_base_addr; 155c7ee0b5cSfei feng - Sun Microsystems - Beijing China 156c7ee0b5cSfei feng - Sun Microsystems - Beijing China uint32_t sc_hw_rev; 157c7ee0b5cSfei feng - Sun Microsystems - Beijing China struct iwh_phy_rx sc_rx_phy_res; 158c7ee0b5cSfei feng - Sun Microsystems - Beijing China 159c7ee0b5cSfei feng - Sun Microsystems - Beijing China iwh_tx_ring_t sc_txq[IWH_NUM_QUEUES]; 160c7ee0b5cSfei feng - Sun Microsystems - Beijing China iwh_rx_ring_t sc_rxq; 161c7ee0b5cSfei feng - Sun Microsystems - Beijing China 162c7ee0b5cSfei feng - Sun Microsystems - Beijing China /* firmware dma */ 163c7ee0b5cSfei feng - Sun Microsystems - Beijing China iwh_firmware_hdr_t *sc_hdr; 164c7ee0b5cSfei feng - Sun Microsystems - Beijing China char *sc_boot; 165c7ee0b5cSfei feng - Sun Microsystems - Beijing China iwh_dma_t sc_dma_fw_text; 166c7ee0b5cSfei feng - Sun Microsystems - Beijing China iwh_dma_t sc_dma_fw_init_text; 167c7ee0b5cSfei feng - Sun Microsystems - Beijing China iwh_dma_t sc_dma_fw_data; 168c7ee0b5cSfei feng - Sun Microsystems - Beijing China iwh_dma_t sc_dma_fw_data_bak; 169c7ee0b5cSfei feng - Sun Microsystems - Beijing China iwh_dma_t sc_dma_fw_init_data; 170c7ee0b5cSfei feng - Sun Microsystems - Beijing China 171c7ee0b5cSfei feng - Sun Microsystems - Beijing China ddi_acc_handle_t sc_cfg_handle; 172c7ee0b5cSfei feng - Sun Microsystems - Beijing China caddr_t sc_cfg_base; 173c7ee0b5cSfei feng - Sun Microsystems - Beijing China ddi_acc_handle_t sc_handle; 174c7ee0b5cSfei feng - Sun Microsystems - Beijing China caddr_t sc_base; 175c7ee0b5cSfei feng - Sun Microsystems - Beijing China ddi_intr_handle_t *sc_intr_htable; 176c7ee0b5cSfei feng - Sun Microsystems - Beijing China uint_t sc_intr_pri; 177c7ee0b5cSfei feng - Sun Microsystems - Beijing China 178c7ee0b5cSfei feng - Sun Microsystems - Beijing China iwh_rxon_cmd_t sc_config; 1796f12def4Spengcheng chen - Sun Microsystems - Beijing China iwh_rxon_cmd_t sc_config_save; 1806f12def4Spengcheng chen - Sun Microsystems - Beijing China 181c7ee0b5cSfei feng - Sun Microsystems - Beijing China uint8_t sc_eep_map[IWH_SP_EEPROM_SIZE]; 182c7ee0b5cSfei feng - Sun Microsystems - Beijing China struct iwh_eep_calibration *sc_eep_calib; 183c7ee0b5cSfei feng - Sun Microsystems - Beijing China struct iwh_calib_results sc_calib_results; 184c7ee0b5cSfei feng - Sun Microsystems - Beijing China uint32_t sc_scd_base; 185c7ee0b5cSfei feng - Sun Microsystems - Beijing China 186c7ee0b5cSfei feng - Sun Microsystems - Beijing China struct iwh_alive_resp sc_card_alive_run; 187c7ee0b5cSfei feng - Sun Microsystems - Beijing China struct iwh_init_alive_resp sc_card_alive_init; 188e2cf88acSQuaker Fang iwh_ht_conf_t sc_ht_conf; 189e2cf88acSQuaker Fang uint16_t sc_dev_id; 190c7ee0b5cSfei feng - Sun Microsystems - Beijing China 191c7ee0b5cSfei feng - Sun Microsystems - Beijing China uint32_t sc_tx_timer; 192d5bd65e4Sfei feng - Sun Microsystems - Beijing China uint32_t sc_scan_pending; 193c7ee0b5cSfei feng - Sun Microsystems - Beijing China uint8_t *sc_fw_bin; 194c7ee0b5cSfei feng - Sun Microsystems - Beijing China 195c7ee0b5cSfei feng - Sun Microsystems - Beijing China ddi_softint_handle_t sc_soft_hdl; 196c7ee0b5cSfei feng - Sun Microsystems - Beijing China 197c7ee0b5cSfei feng - Sun Microsystems - Beijing China uint32_t sc_rx_softint_pending; 198c7ee0b5cSfei feng - Sun Microsystems - Beijing China uint32_t sc_need_reschedule; 199c7ee0b5cSfei feng - Sun Microsystems - Beijing China 200c7ee0b5cSfei feng - Sun Microsystems - Beijing China clock_t sc_clk; 201c7ee0b5cSfei feng - Sun Microsystems - Beijing China 202c7ee0b5cSfei feng - Sun Microsystems - Beijing China /* kstats */ 203c7ee0b5cSfei feng - Sun Microsystems - Beijing China uint32_t sc_tx_nobuf; 204c7ee0b5cSfei feng - Sun Microsystems - Beijing China uint32_t sc_rx_nobuf; 205c7ee0b5cSfei feng - Sun Microsystems - Beijing China uint32_t sc_tx_err; 206c7ee0b5cSfei feng - Sun Microsystems - Beijing China uint32_t sc_rx_err; 207c7ee0b5cSfei feng - Sun Microsystems - Beijing China uint32_t sc_tx_retries; 208c7ee0b5cSfei feng - Sun Microsystems - Beijing China } iwh_sc_t; 209c7ee0b5cSfei feng - Sun Microsystems - Beijing China 210e2cf88acSQuaker Fang #define SC_CMD_FLG_NONE (0) 211e2cf88acSQuaker Fang #define SC_CMD_FLG_PENDING (1) 212e2cf88acSQuaker Fang #define SC_CMD_FLG_DONE (2) 213e2cf88acSQuaker Fang 214c7ee0b5cSfei feng - Sun Microsystems - Beijing China #define IWH_F_ATTACHED (1 << 0) 215c7ee0b5cSfei feng - Sun Microsystems - Beijing China #define IWH_F_CMD_DONE (1 << 1) 216c7ee0b5cSfei feng - Sun Microsystems - Beijing China #define IWH_F_FW_INIT (1 << 2) 217c7ee0b5cSfei feng - Sun Microsystems - Beijing China #define IWH_F_HW_ERR_RECOVER (1 << 3) 218c7ee0b5cSfei feng - Sun Microsystems - Beijing China #define IWH_F_RATE_AUTO_CTL (1 << 4) 219c7ee0b5cSfei feng - Sun Microsystems - Beijing China #define IWH_F_RUNNING (1 << 5) 220c7ee0b5cSfei feng - Sun Microsystems - Beijing China #define IWH_F_SCANNING (1 << 6) 221c7ee0b5cSfei feng - Sun Microsystems - Beijing China #define IWH_F_SUSPEND (1 << 7) 222c7ee0b5cSfei feng - Sun Microsystems - Beijing China #define IWH_F_RADIO_OFF (1 << 8) 223c7ee0b5cSfei feng - Sun Microsystems - Beijing China #define IWH_F_STATISTICS (1 << 9) 224c7ee0b5cSfei feng - Sun Microsystems - Beijing China #define IWH_F_READY (1 << 10) 225c7ee0b5cSfei feng - Sun Microsystems - Beijing China #define IWH_F_PUT_SEG (1 << 11) 226faceed93Sfei feng - Sun Microsystems - Beijing China #define IWH_F_QUIESCED (1 << 12) 227d40f4da4Spengcheng chen - Sun Microsystems - Beijing China #define IWH_F_LAZY_RESUME (1 << 13) 228c7ee0b5cSfei feng - Sun Microsystems - Beijing China 229c7ee0b5cSfei feng - Sun Microsystems - Beijing China #define IWH_SUCCESS 0 230c7ee0b5cSfei feng - Sun Microsystems - Beijing China #define IWH_FAIL EIO 231e2cf88acSQuaker Fang 232e2cf88acSQuaker Fang /* 233e2cf88acSQuaker Fang * Interaction steps for 802.11e/n between net80211 module 234e2cf88acSQuaker Fang * and iwh driver: 235e2cf88acSQuaker Fang * -- setup link with 802.11n AP: net80211 module is responsible 236e2cf88acSQuaker Fang * for setup link with 802.11n AP. iwh driver monitors current 237e2cf88acSQuaker Fang * state and make relevant configurations according work mode. 238e2cf88acSQuaker Fang * -- QoS parameter updating: net80211 module is responsible for 239e2cf88acSQuaker Fang * extract EDCA parameters from the fram of AP, iwh driver get 240e2cf88acSQuaker Fang * these parameters and make relevant configuration to HW. 241e2cf88acSQuaker Fang * -- TX queue management: iwh driver place a frame into suitable 242e2cf88acSQuaker Fang * TX queue according to frame type and user priority extracted 243e2cf88acSQuaker Fang * from frame head. 244e2cf88acSQuaker Fang * -- MIMO: iwh driver make relevant configurations in TX and RX 245e2cf88acSQuaker Fang * direction according to AP mode from net80211 module. 246e2cf88acSQuaker Fang * -- Link aggregation: AMSDU is implemented by net80211 module and 247e2cf88acSQuaker Fang * AMPDU is implemented by both iwh driver and net80211 module. 248e2cf88acSQuaker Fang * iwh driver distinguish frames in one AMPDU frame and net80211 249e2cf88acSQuaker Fang * module is responsible reordering every frame. 250e2cf88acSQuaker Fang * -- Block ACK: net80211 module is responsible for setup agreement 251e2cf88acSQuaker Fang * with AP and iwh driver is responsible for realistic ACK. 252e2cf88acSQuaker Fang * -- Rate scaling: This function is implemented independently by 253e2cf88acSQuaker Fang * iwh driver. 254e2cf88acSQuaker Fang * -- HT protection: This feature is also implemented by iwh driver 255e2cf88acSQuaker Fang * no interaction with net80211 module. 256e2cf88acSQuaker Fang */ 257e2cf88acSQuaker Fang 258c7ee0b5cSfei feng - Sun Microsystems - Beijing China #ifdef __cplusplus 259c7ee0b5cSfei feng - Sun Microsystems - Beijing China } 260c7ee0b5cSfei feng - Sun Microsystems - Beijing China #endif 261c7ee0b5cSfei feng - Sun Microsystems - Beijing China 262c7ee0b5cSfei feng - Sun Microsystems - Beijing China #endif /* _IWH_VAR_H */ 263