1. 05 6月, 2013 3 次提交
  2. 04 6月, 2013 4 次提交
  3. 03 6月, 2013 3 次提交
  4. 29 5月, 2013 2 次提交
    • J
      mac80211: always send multicast on CAB queue · f4d57941
      Johannes Berg 提交于
      If the driver advertised support for a CAB queue, then we
      should put all multicast frames there, otherwise sending
      them can be racy with clients going to sleep while we TX
      a frame. To avoid this, always TX multicast frames on the
      multicast queue.
      
      It seems like even drivers not using the queue framework
      might want to do this which would mean also moving the
      IEEE80211_TX_CTL_SEND_AFTER_DTIM flag assignment, but it
      also seems that drivers behave differently here so that
      just moving it wouldn't be a good idea. It'd be better to
      modify those drivers to use the queue framework.
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      f4d57941
    • F
      mac80211: support active monitor interfaces · 31eba5bc
      Felix Fietkau 提交于
      Support them only if the driver advertises support for them via
      IEEE80211_HW_SUPPORTS_ACTIVE_MONITOR. Unlike normal monitor interfaces,
      they are added to the driver, along with their MAC address.
      Signed-off-by: NFelix Fietkau <nbd@openwrt.org>
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      31eba5bc
  5. 25 5月, 2013 3 次提交
  6. 24 5月, 2013 4 次提交
    • O
      mac80211: add STBC flag for radiotap · 786677d1
      Oleksij Rempel 提交于
      Some chips can tell us if received frame was
      encoded with STBC or not. To make this information available
      in user space we can use updated radiotap specification:
      http://www.radiotap.org/defined-fields/MCS
      
      This patch will set number of STBC encoded spatial streams (Nss).
      The HAVE_STBC flag should be provided by driver.
      Signed-off-by: NOleksij Rempel <linux@rempel-privat.de>
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      786677d1
    • J
      mac80211: close AP_VLAN interfaces before unregistering all · 4c8a9d4b
      Johannes Berg 提交于
      Since Eric's commit efe117ab ("Speedup ieee80211_remove_interfaces")
      there's a bug in mac80211 when it unregisters with AP_VLAN interfaces
      up. If the AP_VLAN interface was registered after the AP it belongs
      to (which is the typical case) and then we get into this code path,
      unregister_netdevice_many() will crash because it isn't prepared to
      deal with interfaces being closed in the middle of it. Exactly this
      happens though, because we iterate the list, find the AP master this
      AP_VLAN belongs to and dev_close() the dependent VLANs. After this,
      unregister_netdevice_many() won't pick up the fact that the AP_VLAN
      is already down and will do it again, causing a crash.
      
      Cc: stable@vger.kernel.org [2.6.33+]
      Cc: Eric Dumazet <eric.dumazet@gmail.com>
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      4c8a9d4b
    • J
      mac80211: assign AP_VLAN hw queues correctly · 5f38a112
      Johannes Berg 提交于
      A lot of code in mac80211 assumes that the hw queues are
      set up correctly for all interfaces (except for monitor)
      but this isn't true for AP_VLAN interfaces. Fix this by
      copying the AP master configuration when an AP VLAN is
      brought up, after this the AP interface can't change its
      configuration any more and needs to be brought down to
      change it, which also forces AP_VLAN interfaces down, so
      just copying in open() is sufficient.
      Reported-by: NJouni Malinen <j@w1.fi>
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      5f38a112
    • J
      mac80211: fix queue handling crash · 2b436312
      Johannes Berg 提交于
      The code I added in "mac80211: don't start new netdev queues
      if driver stopped" crashes for monitor and AP VLAN interfaces
      because while they have a netdev, they don't have queues set
      up by the driver.
      
      To fix the crash, exclude these from queue accounting here
      and just start their netdev queues unconditionally.
      
      For monitor, this is the best we can do, as we can redirect
      frames there to any other interface and don't know which one
      that will since it can be different for each frame.
      
      For AP VLAN interfaces, we can do better later and actually
      properly track the queue status. Not doing this is really a
      separate bug though.
      Reported-by: NIlan Peer <ilan.peer@intel.com>
      Reported-by: NJouni Malinen <j@w1.fi>
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      2b436312
  7. 17 5月, 2013 13 次提交
  8. 22 4月, 2013 7 次提交
  9. 19 4月, 2013 1 次提交