aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlegacy/iwl-4965-tx.c
Commit message (Collapse)AuthorAge
* iwlegacy: merge iwl-4965-{tx,rx}.c into 4965-mac.cStanislaw Gruszka2011-11-15
| | | | Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
* iwlegacy: s/index/idx/Stanislaw Gruszka2011-11-15
| | | | Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
* iwlegacy: s/INDEX/IDX/Stanislaw Gruszka2011-11-15
| | | | Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
* iwlegacy: s/IL_RATE/RATE/Stanislaw Gruszka2011-11-15
| | | | Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
* iwlegacy: s/window/win/Stanislaw Gruszka2011-11-15
| | | | Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
* iwlegacy: s/il_rx_mem_buffer/il_rx_buf/Stanislaw Gruszka2011-11-15
| | | | Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
* iwlegacy: partial rxon context cleanupStanislaw Gruszka2011-11-15
| | | | Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
* iwlegacy: s/iwl_rx_packet/iwl_rx_pkt/Stanislaw Gruszka2011-11-15
| | | | Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
* iwlegacy: rename remaining IWLs to ILsStanislaw Gruszka2011-11-15
| | | | | | Also rename config names IWLWIFI_LEGACY to IWLEGACY Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
* iwlegacy: remove not needed parenthesesStanislaw Gruszka2011-11-15
| | | | Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
* iwlegacy: rename il_{read,write}_prphStanislaw Gruszka2011-11-15
| | | | Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
* iwlegacy: rename i/o direct methodsStanislaw Gruszka2011-11-15
| | | | Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
* iwlegacy: remove il argument from IWL_ERR/INFO/WARN/CRITStanislaw Gruszka2011-11-15
| | | | Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
* iwlegacy: rename IL_DEBUG_ to D_Stanislaw Gruszka2011-11-15
| | | | Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
* iwlegacy: rename iwlegacy to ilStanislaw Gruszka2011-11-15
| | | | | | More renaming to make code shorter. Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
* iwlegacy: rename priv to ilStanislaw Gruszka2011-11-15
| | | | | | Make code shorter. Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
* iwlegacy: rename iwl to ilStanislaw Gruszka2011-11-15
| | | | | | | | | iwl_legacy prefix result in long function names, what cause that we have frequent line split and not readable code. Also iwl_foo symbols are duplicated in iwlwifi driver, what is annoying when editing kernel tree with cscope. Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
* iwlegacy: remove tracingStanislaw Gruszka2011-11-15
| | | | | | This is not useful. Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
* mac80211: implement uAPSDJohannes Berg2011-09-30
| | | | | | | | | | | | | | | | | | | Add uAPSD support to mac80211. This is probably not possible with all devices, so advertising it with the cfg80211 flag will be left up to drivers that want it. Due to my previous patches it is now a fairly straight-forward extension. Drivers need to have accurate TX status reporting for the EOSP frame. For drivers that buffer themselves, the provided APIs allow releasing the right number of frames, but then drivers need to set EOSP and more-data themselves. This is documented in more detail in the new code itself. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
* mac80211: fix TKIP races, make API easier to useJohannes Berg2011-07-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Our current TKIP code races against itself on TX since we can process multiple packets at the same time on different ACs, but they all share the TX context for TKIP. This can lead to bad IVs etc. Also, the crypto offload helper code just obtains the P1K/P2K from the cache, and can update it as well, but there's no guarantee that packets are really processed in order. To fix these issues, first introduce a spinlock that will protect the IV16/IV32 values in the TX context. This first step makes sure that we don't assign the same IV multiple times or get confused in other ways. Secondly, change the way the P1K cache works. I add a field "p1k_iv32" that stores the value of the IV32 when the P1K was last recomputed, and if different from the last time, then a new P1K is recomputed. This can cause the P1K computation to flip back and forth if packets are processed out of order. All this also happens under the new spinlock. Finally, because there are argument differences, split up the ieee80211_get_tkip_key() API into ieee80211_get_tkip_p1k() and ieee80211_get_tkip_p2k() and give them the correct arguments. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
* iwl4965: fix "Received BA when not expected"Stanislaw Gruszka2011-04-29
| | | | | | | | | | | | | | | | | | | | | | | Need to use broadcast sta_id for management frames, otherwise we broke BA session in the firmware and get messages like that: "Received BA when not expected" or (on older kernels): "BA scd_flow 0 does not match txq_id 10" This fix regression introduced in 2.6.35 during station management code rewrite by: commit 2a87c26bbe9587baeb9e56d3ce0b4971bd777643 Author: Johannes Berg <johannes.berg@intel.com> Date: Fri Apr 30 11:30:45 2010 -0700 iwlwifi: use iwl_find_station less Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
* iwl4965: fix skb usage after freeStanislaw Gruszka2011-04-20
| | | | | | | | | | | | | | | | | | | | Since commit a120e912eb51e347f36c71b60a1d13af74d30e83 Author: Stanislaw Gruszka <sgruszka@redhat.com> Date: Fri Feb 19 15:47:33 2010 -0800 iwlwifi: sanity check before counting number of tfds can be free we use skb->data after calling ieee80211_tx_status_irqsafe(), which could free skb instantly. On current kernels I do not observe practical problems related with bug, but on 2.6.35.y it cause random system hangs when stressing wireless link, making bisection of other problems impossible. Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
* iwlegacy: fix dma mappings and skbs leakStanislaw Gruszka2011-02-28
| | | | | | | | | | Fix possible dma mappings and skbs introduced by commit 470058e0ad82fcfaaffd57307d8bf8c094e8e9d7 "iwlwifi: avoid Tx queue memory allocation in interface down". Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com> Acked-by: Wey-Yi Guy <wey-yi.w.guy@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
* iwlegacy: change some symbols duplicated from iwlwifi directoryJohn W. Linville2011-02-25
| | | | | | | | | | | | | | | | | drivers/net/wireless/iwlegacy/built-in.o:(.rodata+0x29f0): multiple definition of `iwl_rates' drivers/net/wireless/iwlwifi/built-in.o:(.rodata+0xa68): first defined here powerpc64-linux-ld: Warning: size of symbol `iwl_rates' changed from 143 in drivers/net/wireless/iwlwifi/built-in.o to 130 in drivers/net/wireless/iwlegacy/built-in.o drivers/net/wireless/iwlegacy/built-in.o:(.data+0x0): multiple definition of `bt_coex_active' drivers/net/wireless/iwlwifi/built-in.o:(.data+0x668): first defined here drivers/net/wireless/iwlegacy/built-in.o:(.rodata+0x750): multiple definition of `iwl_eeprom_band_1' drivers/net/wireless/iwlwifi/built-in.o:(.rodata+0x27d0): first defined here drivers/net/wireless/iwlegacy/built-in.o:(.rodata+0x3f0): multiple definition of `iwl_bcast_addr' drivers/net/wireless/iwlwifi/built-in.o:(.rodata+0x24f8): first defined here drivers/net/wireless/iwlegacy/built-in.o:(.bss+0x3d48): multiple definition of `iwl_debug_level' drivers/net/wireless/iwlwifi/built-in.o:(.bss+0x21950): first defined here Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: John W. Linville <linville@tuxdriver.com>
* iwlwifi: split the drivers for agn and legacy devices 3945/4965Wey-Yi Guy2011-02-21
Intel WiFi devices 3945 and 4965 now have their own driver in the folder drivers/net/wireless/iwlegacy Add support to build these drivers independently of the driver for AGN devices. Selecting the 3945 builds iwl3945.ko and iwl_legacy.ko, and selecting the 4965 builds iwl4965.ko and iwl_legacy.ko. iwl-legacy.ko contains code shared between both devices. The 3945 is an ABG/BG device, with no support for 802.11n. The 4965 is a 2x3 ABGN device. Signed-off-by: Meenakshi Venkataraman <meenakshi.venkataraman@intel.com> Acked-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>