1. 22 1月, 2011 38 次提交
  2. 20 1月, 2011 2 次提交
    • J
      mac80211: track receiver's aggregation reorder buffer size · 0b01f030
      Johannes Berg 提交于
      The aggregation code currently doesn't implement the
      buffer size negotiation. It will always request a max
      buffer size (which is fine, if a little pointless, as
      the mac80211 code doesn't know and might just use 0
      instead), but if the peer requests a smaller size it
      isn't possible to honour this request.
      
      In order to fix this, look at the buffer size in the
      addBA response frame, keep track of it and pass it to
      the driver in the ampdu_action callback when called
      with the IEEE80211_AMPDU_TX_OPERATIONAL action. That
      way the driver can limit the number of subframes in
      aggregates appropriately.
      
      Note that this doesn't fix any drivers apart from the
      addition of the new argument -- they all need to be
      updated separately to use this variable!
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      0b01f030
    • B
      ath9k: Fix up hardware mode and beacons with multiple vifs. · 4801416c
      Ben Greear 提交于
      When using a mixture of AP and Station interfaces,
      the hardware mode was using the type of the
      last VIF registered.  Instead, we should keep track
      of the number of different types of vifs and set the
      mode accordingly.
      
      In addtion, use the vif type instead of hardware opmode
      when dealing with beacons.
      
      Attempt to move some of the common setup code into smaller
      methods so we can re-use it when changing vif mode as
      well as adding/deleting vifs.
      Signed-off-by: NBen Greear <greearb@candelatech.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      4801416c