1. 04 10月, 2011 1 次提交
    • E
      mac80211: pass vif param to conf_tx() callback · 8a3a3c85
      Eliad Peller 提交于
      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: NEliad Peller <eliad@wizery.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      8a3a3c85
  2. 08 4月, 2011 2 次提交
    • J
      wl1251: Add support for idle mode · 1e5f52de
      Jarkko Nikula 提交于
      On Nokia N900 the wl1251 consumes the most power when the interface is up
      but not associated to access point (that supports PSM). In terms of battery
      current consumption, the consumption is ~180 mA higher when the interface is
      up but not associated and only ~5 mA higher when associated compared to
      interface down and driver not loaded cases.
      
      This patch adds support for the mac80211 idle notifications. Chip is put into
      idle very much the same way when entering into PSM by utilizing the Extreme
      Low Power (ELP) mode. I.e. idle is entered by setting necessary conditions
      in wl1251_ps_set_mode followed by a call to wl1251_ps_elp_sleep.
      
      It seems it is just enough the authorize ELP mode followed by
      CMD_DISCONNECT (thanks to Kalle Valo about the idea to use it).
      Without disconnect command the chip remains somewhat active and stays
      consuming ~20 mA. Idle mode is left by same way than PSM. The wl1251_join
      call is used to revert the CMD_DISCONNECT. Without it association to AP
      doesn't work when trying second time.
      
      With this patch the interface up but not associated case the battery current
      consumption is less than 1 mA higher compared to interface down case.
      Signed-off-by: NJarkko Nikula <jhnikula@gmail.com>
      Acked-by: NKalle Valo <kvalo@adurom.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      1e5f52de
    • J
      wl1251: Prepare for idle mode support · a0bbb58b
      Jarkko Nikula 提交于
      RFC for WL1251 idle mode support brought a few issues that are worth to
      update before adding the idle mode support.
      
      Since the idle mode can reuse the code that is now used in Power Save Mode
      (PSM), the flag psm in struct wl1251 is changed to variable station_mode
      to be able to distinguish between PSM and idle modes.
      
      As the station mode is different than the power power save mode command
      that is sent to chip, the enum wl1251_cmd_ps_mod values are used only when
      communicating with the chip and new enum wl1251_station_mode values are used
      inside the driver.
      
      Confusing comment about psm and elp relation is removed since the PSM is
      actually activated by putting the chip into Entreme Low Power (ELP) mode.
      Signed-off-by: NJarkko Nikula <jhnikula@gmail.com>
      Acked-by: NKalle Valo <kvalo@adurom.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      a0bbb58b
  3. 26 2月, 2011 1 次提交
    • J
      mac80211: make tx() operation return void · 7bb45683
      Johannes Berg 提交于
      The return value of the tx operation is commonly
      misused by drivers, leading to errors. All drivers
      will drop frames if they fail to TX the frame, and
      they must also properly manage the queues (if they
      didn't, mac80211 would already warn).
      
      Removing the ability for drivers to return a BUSY
      value also allows significant cleanups of the TX
      TX handling code in mac80211.
      
      Note that this also fixes a bug in ath9k_htc, the
      old "return -1" there was wrong.
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      Tested-by: Sedat Dilek <sedat.dilek@googlemail.com> [ath5k]
      Acked-by: Gertjan van Wingerde <gwingerde@gmail.com> [rt2x00]
      Acked-by: Larry Finger <Larry.Finger@lwfinger.net> [b43, rtl8187, rtlwifi]
      Acked-by: Luciano Coelho <coelho@ti.com> [wl12xx]
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      7bb45683
  4. 04 2月, 2011 3 次提交
  5. 16 11月, 2010 1 次提交
  6. 12 10月, 2010 1 次提交
    • K
      wl1251: move to it's own directory · 9bc6772e
      Kalle Valo 提交于
      wl1271 driver is under heavy development but on the other hand the older
      wl1251 driver is currently considered more as a legacy driver. To make it
      easier to develop wl1271 features move wl1251 to it's own directory,
      drivers/net/wireless/wl1251.
      
      There are no functional changes, only moving of files. One regression
      is that Kconfig won't be updated automatically and user needs to enable
      wl1251 manually with an older config file.
      Signed-off-by: NKalle Valo <kvalo@adurom.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      9bc6772e
  7. 01 9月, 2010 1 次提交
  8. 28 8月, 2010 1 次提交
  9. 26 8月, 2010 2 次提交
  10. 25 8月, 2010 2 次提交
  11. 17 8月, 2010 1 次提交
  12. 30 7月, 2010 2 次提交
  13. 07 7月, 2010 1 次提交
  14. 03 6月, 2010 1 次提交
  15. 01 5月, 2010 1 次提交
  16. 28 4月, 2010 1 次提交
  17. 17 4月, 2010 1 次提交
  18. 15 4月, 2010 1 次提交
  19. 30 3月, 2010 1 次提交
    • T
      include cleanup: Update gfp.h and slab.h includes to prepare for breaking... · 5a0e3ad6
      Tejun Heo 提交于
      include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h
      
      percpu.h is included by sched.h and module.h and thus ends up being
      included when building most .c files.  percpu.h includes slab.h which
      in turn includes gfp.h making everything defined by the two files
      universally available and complicating inclusion dependencies.
      
      percpu.h -> slab.h dependency is about to be removed.  Prepare for
      this change by updating users of gfp and slab facilities include those
      headers directly instead of assuming availability.  As this conversion
      needs to touch large number of source files, the following script is
      used as the basis of conversion.
      
        http://userweb.kernel.org/~tj/misc/slabh-sweep.py
      
      The script does the followings.
      
      * Scan files for gfp and slab usages and update includes such that
        only the necessary includes are there.  ie. if only gfp is used,
        gfp.h, if slab is used, slab.h.
      
      * When the script inserts a new include, it looks at the include
        blocks and try to put the new include such that its order conforms
        to its surrounding.  It's put in the include block which contains
        core kernel includes, in the same order that the rest are ordered -
        alphabetical, Christmas tree, rev-Xmas-tree or at the end if there
        doesn't seem to be any matching order.
      
      * If the script can't find a place to put a new include (mostly
        because the file doesn't have fitting include block), it prints out
        an error message indicating which .h file needs to be added to the
        file.
      
      The conversion was done in the following steps.
      
      1. The initial automatic conversion of all .c files updated slightly
         over 4000 files, deleting around 700 includes and adding ~480 gfp.h
         and ~3000 slab.h inclusions.  The script emitted errors for ~400
         files.
      
      2. Each error was manually checked.  Some didn't need the inclusion,
         some needed manual addition while adding it to implementation .h or
         embedding .c file was more appropriate for others.  This step added
         inclusions to around 150 files.
      
      3. The script was run again and the output was compared to the edits
         from #2 to make sure no file was left behind.
      
      4. Several build tests were done and a couple of problems were fixed.
         e.g. lib/decompress_*.c used malloc/free() wrappers around slab
         APIs requiring slab.h to be added manually.
      
      5. The script was run on all .h files but without automatically
         editing them as sprinkling gfp.h and slab.h inclusions around .h
         files could easily lead to inclusion dependency hell.  Most gfp.h
         inclusion directives were ignored as stuff from gfp.h was usually
         wildly available and often used in preprocessor macros.  Each
         slab.h inclusion directive was examined and added manually as
         necessary.
      
      6. percpu.h was updated not to include slab.h.
      
      7. Build test were done on the following configurations and failures
         were fixed.  CONFIG_GCOV_KERNEL was turned off for all tests (as my
         distributed build env didn't work with gcov compiles) and a few
         more options had to be turned off depending on archs to make things
         build (like ipr on powerpc/64 which failed due to missing writeq).
      
         * x86 and x86_64 UP and SMP allmodconfig and a custom test config.
         * powerpc and powerpc64 SMP allmodconfig
         * sparc and sparc64 SMP allmodconfig
         * ia64 SMP allmodconfig
         * s390 SMP allmodconfig
         * alpha SMP allmodconfig
         * um on x86_64 SMP allmodconfig
      
      8. percpu.h modifications were reverted so that it could be applied as
         a separate patch and serve as bisection point.
      
      Given the fact that I had only a couple of failures from tests on step
      6, I'm fairly confident about the coverage of this conversion patch.
      If there is a breakage, it's likely to be something in one of the arch
      headers which should be easily discoverable easily on most builds of
      the specific arch.
      Signed-off-by: NTejun Heo <tj@kernel.org>
      Guess-its-ok-by: NChristoph Lameter <cl@linux-foundation.org>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Lee Schermerhorn <Lee.Schermerhorn@hp.com>
      5a0e3ad6
  20. 16 3月, 2010 1 次提交
  21. 09 2月, 2010 1 次提交
  22. 27 1月, 2010 1 次提交
  23. 13 1月, 2010 7 次提交
  24. 29 12月, 2009 1 次提交
  25. 22 12月, 2009 4 次提交