1. 07 3月, 2008 36 次提交
  2. 06 3月, 2008 1 次提交
  3. 05 3月, 2008 1 次提交
    • S
      rc80211-pid: fix rate adjustment · 1d60ab05
      Stefano Brivio 提交于
      Merge rate_control_pid_shift_adjust() to rate_control_pid_adjust_rate()
      in order to make the learning algorithm aware of constraints on rates. Also
      add some comments and rename variables.
      
      This fixes a bug which prevented 802.11b/g non-AP STAs from working with
      802.11b only AP STAs.
      
      This patch was originally destined for 2.6.26, and is being backported
      to fix a user reported problem in post-2.6.24 kernels.
      Signed-off-by: NStefano Brivio <stefano.brivio@polimi.it>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      1d60ab05
  4. 01 3月, 2008 2 次提交
    • J
      mac80211: fix key replacing, hw accel · e4861829
      Johannes Berg 提交于
      Even though I thought about it a lot and had also tested it, some
      of my recent changes in the key code broke replacing keys, making
      the kernel oops because a key is removed from a list while not on
      it.
      
      This patch fixes that using the list as an indication whether or
      not the key is on it (an empty list means it's not on any list.)
      
      Also, this patch fixes hw accel enabling, the check for not doing
      hw accel when the interface is down was lost and is restored by
      this.
      
      Additionally, move adding the key to the list into the function
      __ieee80211_key_replace() for more consistency.
      Signed-off-by: NJohannes Berg <johannes@sipsolutions.net>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      e4861829
    • J
      mac80211: split ieee80211_key_alloc/free · db4d1169
      Johannes Berg 提交于
      In order to RCU-ify sta_info, we need to be able to allocate
      a key without linking it to an sdata/sta structure (because
      allocation cannot be done in an rcu critical section). This
      patch splits up ieee80211_key_alloc() and updates all users
      appropriately.
      
      While at it, this patch fixes a number of race conditions
      such as finally making key replacement atomic, unfortunately
      at the expense of more complex code.
      
      Note that this patch documents /existing/ bugs with sta info
      and key interaction, there is currently a race condition
      when a sta info is freed without holding the RTNL. This will
      finally be fixed by a followup patch.
      Signed-off-by: NJohannes Berg <johannes@sipsolutions.net>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      db4d1169