1. 11 7月, 2012 1 次提交
  2. 24 6月, 2012 1 次提交
    • J
      mac80211: clean up debugging · bdcbd8e0
      Johannes Berg 提交于
      There are a few things that make the logging and
      debugging in mac80211 less useful than it should
      be right now:
       * a lot of messages should be pr_info, not pr_debug
       * wholesale use of pr_debug makes it require *both*
         Kconfig and dynamic configuration
       * there are still a lot of ifdefs
       * the style is very inconsistent, sometimes the
         sdata->name is printed in front
      
      Clean up everything, introducing new macros and
      separating out the station MLME debugging into
      a new Kconfig symbol.
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      bdcbd8e0
  3. 06 6月, 2012 1 次提交
  4. 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
  5. 13 4月, 2012 1 次提交
  6. 08 3月, 2012 1 次提交
    • T
      mac80211: fix smatch lock errors in mesh · f06c7885
      Thomas Pedersen 提交于
      smatch was complaining:
      
      CHECK   net/mac80211/mesh_pathtbl.c
      net/mac80211/mesh_pathtbl.c:562 mesh_path_add() error: double lock
      'bottom_half:'
      net/mac80211/mesh_pathtbl.c:580 mesh_path_add() error: double unlock
      'bottom_half:'
      net/mac80211/mesh_pathtbl.c:589 mesh_path_add() error: double unlock
      'bottom_half:'
      net/mac80211/mesh_pathtbl.c:691 mpp_path_add() error: double lock
      'bottom_half:'
      net/mac80211/mesh_pathtbl.c:707 mpp_path_add() error: double unlock
      'bottom_half:'
      net/mac80211/mesh_pathtbl.c:716 mpp_path_add() error: double unlock
      'bottom_half:'
      net/mac80211/mesh_pathtbl.c:814 mesh_path_flush_by_nexthop() error:
      double lock 'bottom_half:'
      net/mac80211/mesh_pathtbl.c:819 mesh_path_flush_by_nexthop() error:
      double unlock 'bottom_half:'
      net/mac80211/mesh_pathtbl.c:887 mesh_path_del() error: double lock
      'bottom_half:'
      net/mac80211/mesh_pathtbl.c:901 mesh_path_del() error: double unlock
      'bottom_half:'
      
      So don't lock / unlock with _bh() while bottom halves are already
      disabled.
      Reported-by: NJohannes Berg <johannes@sipsolutions.net>
      Signed-off-by: NThomas Pedersen <thomas@cozybit.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      f06c7885
  7. 06 3月, 2012 1 次提交
  8. 22 2月, 2012 1 次提交
  9. 09 2月, 2012 1 次提交
    • L
      mac80211: rename mesh static path_lookup() · 5ad20dd1
      Luis R. Rodriguez 提交于
      If you want to use mesh support from mac80211 on a recent
      kernel on 2.6.24 you'll run into a name clash when compiling
      against include/linux/namei.h, so rename this routine.
      
      /home/mcgrof/tmp/compat-wireless-3.2.5-1/net/mac80211/mesh_pathtbl.c: At top level:
      /home/mcgrof/tmp/compat-wireless-3.2.5-1/net/mac80211/mesh_pathtbl.c:342:26: error: conflicting types for ‘path_lookup’
      include/linux/namei.h:71:12: note: previous declaration of ‘path_lookup’ was here
      
      Although this could sit as a separate patch in compat-wireless it seems
      best to just merge upstream.
      
      Cc: Javier Cardona <javier@cozybit.com>
      Signed-off-by: NLuis R. Rodriguez <mcgrof@frijolero.org>
      Acked-by: NJavier Cardona <javier@cozybit.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      5ad20dd1
  10. 29 11月, 2011 2 次提交
  11. 22 11月, 2011 1 次提交
    • J
      mac80211: fix RCU warnings in mesh · 30be52e4
      Johannes Berg 提交于
      Sparse RCU checking reports two warnings in the mesh
      path table code. These are due to questionable uses of
      rcu_dereference.
      
      To fix the first one, get rid of mesh_gate_add() and
      just make mesh_path_add_gate() do the correct deref.
      
      To fix the second one, simply remove rcu_dereference()
      in mesh_gate_del() -- it already gets a proper pointer
      as indicated by the prototype (no __rcu annotation)
      and confirmed by the code.
      
      Cc: Javier Cardona <javier@cozybit.com>
      Cc: Thomas Pedersen <thomas@cozybit.com>
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      30be52e4
  12. 10 11月, 2011 1 次提交
  13. 15 9月, 2011 2 次提交
  14. 14 9月, 2011 8 次提交
  15. 30 8月, 2011 1 次提交
  16. 26 8月, 2011 1 次提交
  17. 25 8月, 2011 5 次提交
  18. 23 8月, 2011 1 次提交
  19. 12 8月, 2011 1 次提交
  20. 06 7月, 2011 1 次提交
  21. 20 5月, 2011 1 次提交
  22. 17 5月, 2011 3 次提交
  23. 13 5月, 2011 1 次提交
  24. 12 5月, 2011 2 次提交