1. 11 9月, 2010 1 次提交
  2. 28 8月, 2010 10 次提交
  3. 27 8月, 2010 4 次提交
  4. 26 8月, 2010 1 次提交
  5. 25 8月, 2010 1 次提交
  6. 18 8月, 2010 1 次提交
  7. 17 8月, 2010 4 次提交
  8. 10 8月, 2010 1 次提交
    • J
      iwlagn: fix rts cts protection · 94597ab2
      Johannes Berg 提交于
      Currently the driver will try to protect all frames,
      which leads to a lot of odd things like sending an
      RTS with a zeroed RA before multicast frames, which
      is clearly bogus.
      
      In order to fix all of this, we need to take a step
      back and see what we need to achieve:
       * we need RTS/CTS protection if requested by
         the AP for the BSS, mac80211 tells us this
       * in that case, CTS-to-self should only be
         enabled when mac80211 tells us
       * additionally, as a hardware workaround, on
         some devices we have to protect aggregated
         frames with RTS
      
      To achieve the first two items, set up the RXON
      accordingly and set the protection required flag
      in the transmit command when mac80211 requests
      protection for the frame.
      
      To achieve the last item, set the rate-control
      RTS-requested flag for all stations that we have
      aggregation sessions with, and set the protection
      required flag when sending aggregated frames (on
      those devices where this is required).
      
      Since otherwise bugs can occur, do not allow the
      user to override the RTS-for-aggregation setting
      from sysfs any more.
      
      Finally, also clean up the way all these flags get
      set in the driver and move everything into the
      device-specific functions.
      
      Cc: stable@kernel.org [2.6.35]
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      Signed-off-by: NWey-Yi Guy <wey-yi.w.guy@intel.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      94597ab2
  9. 28 7月, 2010 1 次提交
  10. 27 7月, 2010 1 次提交
  11. 23 7月, 2010 1 次提交
  12. 22 6月, 2010 1 次提交
  13. 15 6月, 2010 3 次提交
  14. 06 6月, 2010 6 次提交
  15. 05 6月, 2010 1 次提交
  16. 14 5月, 2010 3 次提交
    • J
      drivers/net: Remove unnecessary returns from void function()s · a4b77097
      Joe Perches 提交于
      This patch removes from drivers/net/ all the unnecessary
      return; statements that precede the last closing brace of
      void functions.
      
      It does not remove the returns that are immediately
      preceded by a label as gcc doesn't like that.
      
      It also does not remove null void functions with return.
      
      Done via:
      $ grep -rP --include=*.[ch] -l "return;\n}" net/ | \
        xargs perl -i -e 'local $/ ; while (<>) { s/\n[ \t\n]+return;\n}/\n}/g; print; }'
      
      with some cleanups by hand.
      
      Compile tested x86 allmodconfig only.
      Signed-off-by: NJoe Perches <joe@perches.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      a4b77097
    • J
      iwlwifi: use proper short slot/preamble settings · c213d745
      Johannes Berg 提交于
      The short preamble setting might change on the
      fly, and then we already use the right mac80211
      variable. However, in other places we don't,
      which is especially wrong in the AP code since
      in that case the assoc_capability is invalid.
      Also, the IBSS special case is not needed since
      "use_short_slot" will be properly cleared, but
      the "assoc_capability" might be invalid (which
      must be the reason for the special case).
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      Signed-off-by: NReinette Chatre <reinette.chatre@intel.com>
      c213d745
    • R
      iwlwifi: fix and add missing sta_lock usage · 9c5ac091
      Reinette Chatre 提交于
      There are a few places where sta_lock is used, but the
      station information protected by it is accessed outside
      of the lock. Address this in two ways, if the access
      won't sleep then just move the access into the lock, if
      the access can sleep then copy the needed station
      information to the stack to be accessed without risk of
      it changing while access in progress.
      
      Additionally, a number of other places access station
      station information without holding the sta_lock, fix
      those as well.
      Signed-off-by: NReinette Chatre <reinette.chatre@intel.com>
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      9c5ac091