1. 11 4月, 2012 1 次提交
  2. 20 12月, 2011 1 次提交
  3. 08 11月, 2011 2 次提交
  4. 03 11月, 2011 1 次提交
  5. 15 10月, 2011 2 次提交
  6. 12 10月, 2011 1 次提交
  7. 23 8月, 2011 5 次提交
  8. 08 7月, 2011 1 次提交
    • J
      mac80211: fix TKIP races, make API easier to use · 523b02ea
      Johannes Berg 提交于
      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: NJohannes Berg <johannes.berg@intel.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      523b02ea
  9. 07 7月, 2011 1 次提交
  10. 02 6月, 2011 1 次提交
  11. 17 5月, 2011 1 次提交
  12. 26 2月, 2011 1 次提交
  13. 24 2月, 2011 1 次提交
  14. 29 4月, 2010 1 次提交
  15. 07 11月, 2009 1 次提交
  16. 28 10月, 2009 2 次提交
  17. 13 10月, 2009 1 次提交
  18. 08 10月, 2009 1 次提交
  19. 23 9月, 2009 2 次提交
  20. 09 9月, 2009 1 次提交
    • M
      b43: Fix sparse warning in hw-tkip code · cde1b55b
      Michael Buesch 提交于
      This fixes a sparse warning in the hardware-TKIP code:
      
      drivers/net/wireless/b43/xmit.c:272:18: warning: incorrect type in assignment (different base types)
      drivers/net/wireless/b43/xmit.c:272:18:    expected unsigned short [unsigned] [short] <noident>
      drivers/net/wireless/b43/xmit.c:272:18:    got restricted unsigned short [usertype] <noident>
      
      The code should work correctly with and without this patch applied.
      Signed-off-by: NMichael Buesch <mb@bu3sch.de>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      cde1b55b
  21. 20 8月, 2009 2 次提交
  22. 14 8月, 2009 1 次提交
  23. 11 7月, 2009 1 次提交
    • J
      mac80211: push rx status into skb->cb · f1d58c25
      Johannes Berg 提交于
      Within mac80211, we often need to copy the rx status into
      skb->cb. This is wasteful, as drivers could be building it
      in there to start with. This patch changes the API so that
      drivers are expected to pass the RX status in skb->cb, now
      accessible as IEEE80211_SKB_RXCB(skb). It also updates all
      drivers to pass the rx status in there, but only by making
      them memcpy() it into place before the call to the receive
      function (ieee80211_rx(_irqsafe)). Each driver can now be
      optimised on its own schedule.
      Signed-off-by: NJohannes Berg <johannes@sipsolutions.net>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      f1d58c25
  24. 11 6月, 2009 1 次提交
  25. 28 3月, 2009 1 次提交
  26. 06 3月, 2009 1 次提交
  27. 22 11月, 2008 1 次提交
    • J
      b43: remove rate index warning · 1e87d680
      Johannes Berg 提交于
      I frequently run into this warning, and added some
      debugging to see why, and got this:
      
      b43 bad rx: 00000000: 2f d2 e2 63 cf a7 14 04 28 18 c8 5f 88 4a a2 00
                            bogus junk       | plcp            | fctl| dur
      
      b43 bad rx: 00000010: 00 11 24 91 07 4d 00 06 25 ff 8f 78 00 06 25 ff
                            my MAC address   | BSSID           | AP MAC
      b43 bad rx: 00000020: 8f 76 20 74 00 00 42 07 00 20 00 00 00 00 aa aa
                                 | seq | QoS | CCMP IV               | data
                            ...
      
      As you can see, there are 6 bogus bytes (sometimes only five) and then
      the frame. I don't know why, and I don't see how to recover, so let's
      just drop these frames.
      Signed-off-by: NJohannes Berg <johannes@sipsolutions.net>
      Signed-off-by: NMichael Buesch <mb@bu3sch.de>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      1e87d680
  28. 01 11月, 2008 1 次提交
  29. 07 10月, 2008 2 次提交
  30. 30 8月, 2008 1 次提交
    • M
      b43: Rewrite TX power adjustment · 18c8adeb
      Michael Buesch 提交于
      This patch rewrites the TX power recalculation algorithms to scale better
      with changed enviromnent. If there's low
      TX traffic, the power will be checked against the desired values
      every 60 seconds.
      If there is high TX traffic, the check is redone every 2 seconds. This improves
      the reaction times a lot and confuses the rate control less.
      It will also reduce the time it initially takes to tune to a new TX power
      value. With the old algorithm it could take about 30 to 45 seconds to settle to
      a new power value. This will happen in about two to four seconds now.
      Signed-off-by: NMichael Buesch <mb@bu3sch.de>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      18c8adeb