aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlegacy
Commit message (Collapse)AuthorAge
...
* | iwlegacy: merge iwl-4965-ucode.c into 4965.cStanislaw Gruszka2011-11-15
| | | | | | | | Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
* | iwlegacy: merge iwl-4965-eeprom.c into 4965.cStanislaw Gruszka2011-11-15
| | | | | | | | Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
* | iwlegacy: merge iwl-3945-led.c into 3945.cStanislaw Gruszka2011-11-15
| | | | | | | | Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
* | iwlegacy: merge iwl-4965-led.c into 4965.cStanislaw Gruszka2011-11-15
| | | | | | | | Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
* | iwlegacy: rename base 4965 and 3945 file namesStanislaw Gruszka2011-11-15
| | | | | | | | Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
* | iwlegacy: remove for_each_contextStanislaw Gruszka2011-11-15
| | | | | | | | | | | | We do not support many contexts. Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
* | iwlegacy: s/TABLE/TBL/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/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/statistics/stats/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_{read,write}_direct32Stanislaw Gruszka2011-11-15
| | | | | | | | | | | | Use _il_{rd,wr} instead of another name of these operations. Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
* | iwlegacy: mark il_{grab,release}_nic_access as unlockedStanislaw Gruszka2011-11-15
| | | | | | | | Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
* | iwlegacy: mark poll bit as unlocked functionStanislaw Gruszka2011-11-15
| | | | | | | | | | | | | | We do not take reg_lock during poll bit, so mark it such using underscore. Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
* | iwlegacy: rename il_{read,write}32 to _il_{rd,wr}Stanislaw Gruszka2011-11-15
| | | | | | | | | | | | Introduce rule that underscore at the beginning mean unlocked I/O method. Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
* | iwlegacy: remove IL_CRITStanislaw 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: remove DEBUG_LIMITStanislaw Gruszka2011-11-15
| | | | | | | | | | | | | | Even if messages are generating fast we want to see all of them when debugging. Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
* | iwlegacy: remove DEBUG_IOStanislaw Gruszka2011-11-15
| | | | | | | | | | | | Nothing useful at present. 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: pass vif param to conf_tx() callbackEliad Peller2011-10-03
| | | | | | | | | | | | | | | | | | | | | | | | | | tx params should be configured per interface. add ieee80211_vif param to the conf_tx callback, and change all the drivers that use this callback. The following spatch was used: @rule1@ struct ieee80211_ops ops; identifier conf_tx_op; @@ ops.conf_tx = conf_tx_op; @rule2@ identifier rule1.conf_tx_op; identifier hw, queue, params; @@ conf_tx_op ( - struct ieee80211_hw *hw, + struct ieee80211_hw *hw, struct ieee80211_vif *vif, u16 queue, const struct ieee80211_tx_queue_params *params) {...} Signed-off-by: Eliad Peller <eliad@wizery.com> Signed-off-by: John W. Linville <linville@tuxdriver.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>
* Merge branch 'master' of git://git.infradead.org/users/linville/wirelessJohn W. Linville2011-09-28
|\ | | | | | | | | | | Conflicts: drivers/net/wireless/iwlwifi/iwl-scan.c net/wireless/nl80211.c
| * iwlegacy: do not use interruptible waitsStanislaw Gruszka2011-09-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | iwlegacy version of fix: commit effd4d9aece9184f526e6556786a94d335e38b71 Author: Johannes Berg <johannes.berg@intel.com> Date: Thu Sep 15 11:46:52 2011 -0700 iwlagn: do not use interruptible waits Since the dawn of its time, iwlwifi has used interruptible waits to wait for synchronous commands and firmware loading. This leads to "interesting" bugs, because it can't actually handle the interruptions; for example when a command sending is interrupted it will assume the command completed fully, and then leave it pending, which leads to all kinds of trouble when the command finishes later. Since there's no easy way to gracefully deal with interruptions, fix the driver to not use interruptible waits. This at least fixes the error iwlagn 0000:02:00.0: Error: Response NULL in 'REPLY_SCAN_ABORT_CMD' I have seen in P2P testing, but it is likely that there are other errors caused by this. Cc: stable@kernel.org # 2.6.39+ Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
| * iwlegacy: fix command queue timeoutStanislaw Gruszka2011-09-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | iwlegacy version of fix: commit 282cdb325aea4ebbc42ce753b47cc96145eb54bc Author: Johannes Berg <johannes.berg@intel.com> Date: Mon Sep 12 12:09:10 2011 -0700 iwlagn: fix command queue timeout If the command queue is constantly busy, which can happen in P2P, the hangcheck timer will frequently find a command in it and will eventually reset the device because nothing sets the timestamp for this queue when commands are processed. Fix this by setting the timestamp when a command completes. iwlegacy does not support P2P, but this patch fix possible unneeded hardware resets, hence is needed. Cc: stable@kernel.org # 2.6.39+ Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
* | mac80211: add ieee80211_vif param to tsf functionsEliad Peller2011-09-27
| | | | | | | | | | | | | | | | | | | | | | TSF can be kept per vif. Add ieee80211_vif param to set/get/reset_tsf, and move the debugfs entries to the per-vif directory. Update all the drivers that implement these callbacks. Signed-off-by: Eliad Peller <eliad@wizery.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
* | Merge branch 'master' of git://git.infradead.org/users/linville/wirelessJohn W. Linville2011-09-20
|\| | | | | | | | | | | | | | | Conflicts: drivers/net/wireless/iwlwifi/iwl-pci.c drivers/net/wireless/iwlwifi/iwl-trans-pcie-tx.c drivers/net/wireless/rt2x00/rt2800usb.c drivers/net/wireless/wl12xx/main.c
| * iwlegacy: fix BUG_ON(info->control.rates[0].idx < 0)Stanislaw Gruszka2011-08-29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When trying to connect to 5GHz we can provide negative index to mac80211 what trigger BUG_ON. Reason of iwl-3945-rs malfunction on 5GHz is unknown and needs further investigation. For now, to do not trigger a bug, correct value and just print WARNING. Address bug: https://bugzilla.redhat.com/show_bug.cgi?id=730653 Reported-and-tested-by: Jan Teichmann <jan.teichmann@gmail.com> Cc: stable@kernel.org Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
* | iwlegacy: remove wireless extensions inclusionsJohannes Berg2011-08-08
|/ | | | | | | | | linux/wireless.h and net/iw_handler.h headers are for wireless extensions only, so mac80211 drivers shouldn't be including them. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
* Merge git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next ↵John W. Linville2011-08-03
|\ | | | | | | into for-davem
| * iwlegacy: set tx power after rxon_assocStanislaw Gruszka2011-08-01
| | | | | | | | | | | | | | | | | | | | | | | | | | If settings of tx power was deferred during scan or changing channel we have to setup them during commit rxon. Fix problem on 3945 (4965 already has this fix). Optimize code to apply tx settings only when tx power was actually changed. Cc: stable@kernel.org # 2.6.39+ Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
* | Merge branch 'for-linus' of ↵Linus Torvalds2011-07-25
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial: (43 commits) fs: Merge split strings treewide: fix potentially dangerous trailing ';' in #defined values/expressions uwb: Fix misspelling of neighbourhood in comment net, netfilter: Remove redundant goto in ebt_ulog_packet trivial: don't touch files that are removed in the staging tree lib/vsprintf: replace link to Draft by final RFC number doc: Kconfig: `to be' -> `be' doc: Kconfig: Typo: square -> squared doc: Konfig: Documentation/power/{pm => apm-acpi}.txt drivers/net: static should be at beginning of declaration drivers/media: static should be at beginning of declaration drivers/i2c: static should be at beginning of declaration XTENSA: static should be at beginning of declaration SH: static should be at beginning of declaration MIPS: static should be at beginning of declaration ARM: static should be at beginning of declaration rcu: treewide: Do not use rcu_read_lock_held when calling rcu_dereference_check Update my e-mail address PCIe ASPM: forcedly -> forcibly gma500: push through device driver tree ... Fix up trivial conflicts: - arch/arm/mach-ep93xx/dma-m2p.c (deleted) - drivers/gpio/gpio-ep93xx.c (renamed and context nearby) - drivers/net/r8169.c (just context changes)
| * | treewide: fix potentially dangerous trailing ';' in #defined values/expressionsPhil Carmody2011-07-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | All these are instances of #define NAME value; or #define NAME(params_opt) value; These of course fail to build when used in contexts like if(foo $OP NAME) while(bar $OP NAME) and may silently generate the wrong code in contexts such as foo = NAME + 1; /* foo = value; + 1; */ bar = NAME - 1; /* bar = value; - 1; */ baz = NAME & quux; /* baz = value; & quux; */ Reported on comp.lang.c, Message-ID: <ab0d55fe-25e5-482b-811e-c475aa6065c3@c29g2000yqd.googlegroups.com> Initial analysis of the dangers provided by Keith Thompson in that thread. There are many more instances of more complicated macros having unnecessary trailing semicolons, but this pile seems to be all of the cases of simple values suffering from the problem. (Thus things that are likely to be found in one of the contexts above, more complicated ones aren't.) Signed-off-by: Phil Carmody <ext-phil.2.carmody@nokia.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
* | | Merge branch 'master' of ↵John W. Linville2011-07-15
|\ \ \ | | |/ | |/| | | | | | | | | | | | | git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6 into for-davem Conflicts: net/bluetooth/l2cap_core.c
| * | iwlegacy: Add missing comma between constant string arrayJoe Perches2011-07-13
| | | | | | | | | | | | | | | | | | | | | Multiple quoted strings are concatenated without comma separators. Signed-off-by: Joe Perches <joe@perches.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>
* | | Merge branch 'master' of ↵John W. Linville2011-06-30
|\| | | | | | | | | | | git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6 into for-davem
| * | iwlegacy: remove unnecessary read of PCI_CAP_ID_EXPJon Mason2011-06-29
| | | | | | | | | | | | | | | | | | | | | | | | | | | The PCIE capability offset is saved during PCI bus walking. It will remove an unnecessary search in the PCI configuration space if this value is referenced instead of reacquiring it. Signed-off-by: Jon Mason <jdmason@kudzu.us> Signed-off-by: John W. Linville <linville@tuxdriver.com>