1. 06 6月, 2012 2 次提交
  2. 10 5月, 2012 1 次提交
    • J
      mac80211: Convert compare_ether_addr to ether_addr_equal · b203ca39
      Joe Perches 提交于
      Use the new bool function ether_addr_equal to add
      some clarity and reduce the likelihood for misuse
      of compare_ether_addr for sorting.
      
      Done via cocci script:
      
      $ cat compare_ether_addr.cocci
      @@
      expression a,b;
      @@
      -	!compare_ether_addr(a, b)
      +	ether_addr_equal(a, b)
      
      @@
      expression a,b;
      @@
      -	compare_ether_addr(a, b)
      +	!ether_addr_equal(a, b)
      
      @@
      expression a,b;
      @@
      -	!ether_addr_equal(a, b) == 0
      +	ether_addr_equal(a, b)
      
      @@
      expression a,b;
      @@
      -	!ether_addr_equal(a, b) != 0
      +	!ether_addr_equal(a, b)
      
      @@
      expression a,b;
      @@
      -	ether_addr_equal(a, b) == 0
      +	!ether_addr_equal(a, b)
      
      @@
      expression a,b;
      @@
      -	ether_addr_equal(a, b) != 0
      +	ether_addr_equal(a, b)
      
      @@
      expression a,b;
      @@
      -	!!ether_addr_equal(a, b)
      +	ether_addr_equal(a, b)
      Signed-off-by: NJoe Perches <joe@perches.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      b203ca39
  3. 09 5月, 2012 4 次提交
  4. 25 4月, 2012 1 次提交
    • F
      mac80211: fix num_mcast_sta counting issues · 7e3ed02c
      Felix Fietkau 提交于
      Moving a STA to an AP VLAN prevents num_mcast_sta from being decremented
      once the STA leaves, because sta->sdata changes. Fix this by checking
      for AP VLANs as well.
      
      Also exclude 4-addr VLAN stations from num_mcast_sta - remote 4-addr
      stations ignore 3-address multicast frames anyway. In a typical bridge
      configuration they receive the same packets as 4-address unicast.
      
      This patch also fixes clearing the sdata->u.vlan.sta pointer when the
      STA is removed from a 4-addr VLAN.
      Signed-off-by: NFelix Fietkau <nbd@openwrt.org>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      7e3ed02c
  5. 14 4月, 2012 1 次提交
  6. 12 4月, 2012 4 次提交
  7. 11 4月, 2012 3 次提交
  8. 07 3月, 2012 1 次提交
  9. 06 3月, 2012 1 次提交
  10. 01 3月, 2012 1 次提交
  11. 23 2月, 2012 1 次提交
  12. 07 2月, 2012 1 次提交
    • J
      mac80211: redesign auth/assoc · 66e67e41
      Johannes Berg 提交于
      This is the second part of the auth/assoc redesign,
      the mac80211 part. This moves the auth/assoc code
      out of the work abstraction and into the MLME, so
      that we don't flip channels all the time etc.
      
      The only downside is that when we are associated,
      we need to drop the association in order to create
      a connection to another AP, but for most drivers
      this is actually desirable and the ability to do
      was never used by any applications. If we want to
      implement resource reservation with FT-OTA, we'd
      probably best do it with explicit R-O-C in wpa_s.
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      66e67e41
  13. 31 1月, 2012 2 次提交
  14. 28 1月, 2012 2 次提交
  15. 25 1月, 2012 1 次提交
  16. 14 1月, 2012 1 次提交
    • J
      mac80211: fix no-op authorized transitions · 543d1b92
      Johannes Berg 提交于
      When userspace attempts to authorize a station
      that is already authorized, nothing happens as
      you'd expect. Similarly, when it unauthorizes
      a station that is associated, nothing happens.
      
      However, when it unauthorizes a station that
      isn't even associated yet, we erroneously try
      to move the station to associated. This seems
      to happen occasionally as a result of a race
      when wpa_supplicant attempts to unauthorize
      the port in managed mode. Particularly with my
      new patches to keep stations, it can then move
      a station into ASSOCIATED state before we have
      really associated, which is really confusing.
      
      I introduced this bug in
      "mac80211: refactor station state transitions"
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      543d1b92
  17. 13 1月, 2012 1 次提交
  18. 20 12月, 2011 1 次提交
  19. 16 12月, 2011 4 次提交
  20. 29 11月, 2011 4 次提交
  21. 22 11月, 2011 1 次提交
    • B
      mac80211: Support ht-cap over-rides. · ef96a842
      Ben Greear 提交于
      This implements ht-cap over-rides for mac80211 drivers.
      HT may be disabled, making an /a/b/g/n station act like an
      a/b/g station.  HT40 may be disabled forcing the station to
      be HT20 even if the AP and local hardware support HT40.
      
      MAX-AMSDU may be disabled.
      AMPDU-Density may be increased.
      AMPDU-Factor may be decreased.
      
      This has been successfully tested with ath9k using patched
      wpa_supplicant and iw.
      Signed-off-by: NBen Greear <greearb@candelatech.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      ef96a842
  22. 12 11月, 2011 2 次提交