1. 26 2月, 2011 2 次提交
    • J
      mac80211: support direct offchannel TX offload · 5f16a436
      Johannes Berg 提交于
      For devices supported by iwlwifi sometimes
      off-channel transmissions need to be handled
      by the device completely. To support this
      mac80211 needs to pass the frame directly
      to the driver and not through the TX path
      as the driver needs the frame and channel
      information at the same time.
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      5f16a436
    • J
      mac80211: make tx() operation return void · 7bb45683
      Johannes Berg 提交于
      The return value of the tx operation is commonly
      misused by drivers, leading to errors. All drivers
      will drop frames if they fail to TX the frame, and
      they must also properly manage the queues (if they
      didn't, mac80211 would already warn).
      
      Removing the ability for drivers to return a BUSY
      value also allows significant cleanups of the TX
      TX handling code in mac80211.
      
      Note that this also fixes a bug in ath9k_htc, the
      old "return -1" there was wrong.
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      Tested-by: Sedat Dilek <sedat.dilek@googlemail.com> [ath5k]
      Acked-by: Gertjan van Wingerde <gwingerde@gmail.com> [rt2x00]
      Acked-by: Larry Finger <Larry.Finger@lwfinger.net> [b43, rtl8187, rtlwifi]
      Acked-by: Luciano Coelho <coelho@ti.com> [wl12xx]
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      7bb45683
  2. 24 2月, 2011 1 次提交
  3. 04 2月, 2011 2 次提交
    • J
      mac80211: Add testing functionality for TKIP · 681d1190
      Jouni Malinen 提交于
      TKIP countermeasures depend on devices being able to detect Michael
      MIC failures on received frames and for stations to report errors to
      the AP. In order to test that behavior, it is useful to be able to
      send out TKIP frames with incorrect Michael MIC. This testing behavior
      has minimal effect on the TX path, so it can be added to mac80211 for
      convenient use.
      
      The interface for using this functionality is a file in mac80211
      netdev debugfs (tkip_mic_test). Writing a MAC address to the file
      makes mac80211 generate a dummy data frame that will be sent out using
      invalid Michael MIC value. In AP mode, the address needs to be for one
      of the associated stations or ff:ff:ff:ff:ff:ff to use a broadcast
      frame. In station mode, the address can be anything, e.g., the current
      BSSID. It should be noted that this functionality works correctly only
      when associated and using TKIP.
      Signed-off-by: NJouni Malinen <jouni.malinen@atheros.com>
      Acked-by: NJohannes Berg <johannes@sipsolutions.net>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      681d1190
    • A
      mac80211: add HW flag for disabling auto link-PS in AP mode · d057e5a3
      Arik Nemtsov 提交于
      When operating in AP mode the wl1271 hardware filters out null-data
      packets as well as management packets. This makes it impossible for
      mac80211 to monitor the PS mode by using the PM bit of incoming frames.
      
      Implement a HW flag to indicate that mac80211 should ignore the PM bit.
      In addition, expose ieee80211_sta_ps_transition() to make low-level
      drivers capable of controlling PS-mode.
      Signed-off-by: NArik Nemtsov <arik@wizery.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      d057e5a3
  4. 20 1月, 2011 3 次提交
  5. 11 1月, 2011 2 次提交
  6. 06 1月, 2011 1 次提交
  7. 23 12月, 2010 2 次提交
  8. 21 12月, 2010 1 次提交
  9. 16 12月, 2010 1 次提交
  10. 01 12月, 2010 1 次提交
  11. 25 11月, 2010 2 次提交
  12. 18 11月, 2010 1 次提交
  13. 17 11月, 2010 4 次提交
  14. 14 10月, 2010 1 次提交
  15. 07 10月, 2010 1 次提交
  16. 06 10月, 2010 1 次提交
  17. 28 9月, 2010 2 次提交
    • J
      mac80211: move packet flags into packet · 554891e6
      Johannes Berg 提交于
      commit 8c0c709e
      Author: Johannes Berg <johannes@sipsolutions.net>
      Date:   Wed Nov 25 17:46:15 2009 +0100
      
          mac80211: move cmntr flag out of rx flags
      
      moved the CMNTR flag into the skb RX flags for
      some aggregation cleanups, but this was wrong
      since the optimisation this flag tried to make
      requires that it is kept across the processing
      of multiple interfaces -- which isn't true for
      flags in the skb. The patch not only broke the
      optimisation, it also introduced a bug: under
      some (common!) circumstances the flag will be
      set on an already freed skb!
      
      However, investigating this in more detail, I
      found that most of the flags that we set should
      be per packet, _except_ for this one, due to
      a-MPDU processing. Additionally, the flags used
      for processing (currently just this one) need
      to be reset before processing a new packet.
      
      Since we haven't actually seen bugs reported as
      a result of the wrong flags handling (which is
      not too surprising -- the only real bug case I
      can come up with is an a-MSDU contained in an
      a-MPDU), I'll make a different fix for rc.
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      554891e6
    • B
      mac80211/ath9k: Support AMPDU with multiple VIFs. · 686b9cb9
      Ben Greear 提交于
      The old ieee80211_find_sta_by_hw method didn't properly
      find VIFS when there was more than one per AP.  This caused
      AMPDU logic in ath9k to get the wrong VIF when trying to
      account for transmitted SKBs.
      
      This patch changes ieee80211_find_sta_by_hw to take a
      localaddr argument to distinguish between VIFs with the
      same AP but different local addresses.  The method name
      is changed to ieee80211_find_sta_by_ifaddr.
      Signed-off-by: NBen Greear <greearb@candelatech.com>
      Acked-by: NJohannes Berg <johannes@sipsolutions.net>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      686b9cb9
  18. 25 9月, 2010 1 次提交
  19. 17 9月, 2010 1 次提交
  20. 15 9月, 2010 1 次提交
  21. 28 8月, 2010 2 次提交
  22. 26 8月, 2010 1 次提交
  23. 25 8月, 2010 1 次提交
  24. 17 8月, 2010 4 次提交
  25. 30 7月, 2010 1 次提交