1. 06 6月, 2012 6 次提交
  2. 05 6月, 2012 1 次提交
  3. 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
  4. 09 5月, 2012 4 次提交
  5. 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
  6. 14 4月, 2012 1 次提交
  7. 12 4月, 2012 4 次提交
  8. 11 4月, 2012 3 次提交
  9. 07 3月, 2012 1 次提交
  10. 06 3月, 2012 1 次提交
  11. 01 3月, 2012 1 次提交
  12. 23 2月, 2012 1 次提交
  13. 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
  14. 31 1月, 2012 2 次提交
  15. 28 1月, 2012 2 次提交
  16. 25 1月, 2012 1 次提交
  17. 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
  18. 13 1月, 2012 1 次提交
  19. 20 12月, 2011 1 次提交
  20. 16 12月, 2011 4 次提交
  21. 29 11月, 2011 2 次提交