1. 11 10月, 2013 1 次提交
  2. 28 2月, 2012 1 次提交
  3. 20 4月, 2011 2 次提交
    • I
      rt2x00: Implement get_antenna and set_antenna callback functions · 0ed7b3c0
      Ivo van Doorn 提交于
      Implement the get_antenna and set_antenna callback functions, which will
      allow clients to control the antenna for all non-11n hardware (Antenna handling
      in rt2800 is still a bit magical, so we can't use the set_antenna for those drivers
      yet).
      
      To best support the set_antenna callback some modifications are needed in the
      diversity handling. We should never look at the default antenna settings to determine
      if software diversity is enabled. Instead we should set the diversity flag when
      possible, which will allow the link_tuner to automatically pick up the tuning.
      Signed-off-by: NIvo van Doorn <IvDoorn@gmail.com>
      Acked-by: NGertjan van Wingerde <gwingerde@gmail.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      0ed7b3c0
    • I
      rt2x00: Split rt2x00dev->flags · 7dab73b3
      Ivo van Doorn 提交于
      The number of flags defined for the rt2x00dev->flags field,
      has been growing over the years. Currently we are approaching
      the maximum number of bits which are available in the field.
      
      A secondary problem, is that one part of the field are initialized only
      during boot, because the driver requirements are initialized or device
      requirements are loaded from the EEPROM. In both cases, the flags are
      fixed and will not change during device operation. The other flags are
      the device state, and will change frequently. So far this resulted in the fact
      that for some flags, the atomic bit accessors are used, while for the others
      the non-atomic variants are used.
      
      By splitting the flags up into a "flags" and "cap_flags" we can put all flags
      which are fixed inside "cap_flags". This field can then be read non-atomically.
      In the "flags" field we keep the device state, which is going to be read atomically.
      
      This adds more room for more flags in the future, and sanitizes the field access methods.
      Signed-off-by: NIvo van Doorn <IvDoorn@gmail.com>
      Acked-by: NHelmut Schaa <helmut.schaa@googlemail.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      7dab73b3
  4. 05 4月, 2011 2 次提交
  5. 31 3月, 2011 1 次提交
  6. 01 2月, 2011 1 次提交
  7. 16 11月, 2010 1 次提交
  8. 12 10月, 2010 2 次提交
  9. 15 9月, 2010 1 次提交
    • L
      rt2x00: Antenna diversity does not work in 2.6.35 · 85f4d648
      Lars Ericsson 提交于
      The test if antenna diversity is at all enabled uses a local variable
      'flags' to prepare the test condition, but uses 'ant->flags' when the test
      is evaluated. The effect is that the diversity evaluation will never start.
      I can see two solutions, use the 'flag' in the test condition or revert the
      local flag change. My attached patch took alternative two.
      
      Then the evaluation start but it will still not switch antenna. The problem
      is a code section in rt2x00lib_config_antenna (). The effect of that code
      section is that any change the diversity function perform will be
      effectively shorten and no antenna selection command issued. The attached
      patch will filter out any ANTENNA_SW_DIVERSITY setting but forward all
      other
      Signed-off-by: NLars Ericsson <lars_ericsson@telia.com>
      Signed-off-by: NIvo van Doorn <IvDoorn@gmail.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      85f4d648
  10. 13 7月, 2010 4 次提交
  11. 01 7月, 2010 1 次提交
  12. 12 11月, 2009 2 次提交
  13. 07 11月, 2009 1 次提交
  14. 14 8月, 2009 3 次提交
  15. 05 8月, 2009 1 次提交
    • L
      mac80211: redefine usage of the mac80211 workqueue · 42935eca
      Luis R. Rodriguez 提交于
      The mac80211 workqueue exists to enable mac80211 and drivers
      to queue their own work on a single threaded workqueue. mac80211
      takes care to flush the workqueue during suspend but we never
      really had requirements on drivers for how they should use
      the workqueue in consideration for suspend.
      
      We extend mac80211 to document how the mac80211 workqueue should
      be used, how it should not be used and finally move raw access to
      the workqueue to mac80211 only. Drivers and mac80211 use helpers
      to queue work onto the mac80211 workqueue:
      
        * ieee80211_queue_work()
        * ieee80211_queue_delayed_work()
      
      These helpers will now warn if mac80211 already completed its
      suspend cycle and someone is trying to queue work. mac80211
      flushes the mac80211 workqueue prior to suspend a few times,
      but we haven't taken the care to ensure drivers won't add more
      work after suspend. To help with this we add a warning when
      someone tries to add work and mac80211 already completed the
      suspend cycle.
      
      Drivers should ensure they cancel any work or delayed work
      in the mac80211 stop() callback.
      Signed-off-by: NLuis R. Rodriguez <lrodriguez@atheros.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      42935eca
  16. 28 7月, 2009 1 次提交
  17. 25 7月, 2009 1 次提交
  18. 23 4月, 2009 1 次提交
  19. 06 3月, 2009 1 次提交
    • I
      rt2x00: Fix SW antenna diversity · 64abd803
      Ivo van Doorn 提交于
      Software antenna tuning is broken because of an function
      ordering problem during rt2x00link_tuner().
      
      rt2x00link_precalculate_signal()
      rt2x00leds_led_quality()
      rt2x00lib_antenna_diversity()
      
      rt2x00link_precalculate_signal() will reset the quality TX/RX counters,
      however rt2x00lib_antenna_diversity() requires the RX counter to
      see what RSSI value must be used for a particular antenna.
      We can't change the ordering since rt2x00lib_antenna_diversity() might
      reset other statistics which are needed by the function called earlier.
      
      Move the reset of the quality TX/RX counters into a seperate function
      and move the call to after rt2x00lib_antenna_diversity().
      Signed-off-by: NIvo van Doorn <IvDoorn@gmail.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      64abd803
  20. 30 1月, 2009 3 次提交