1. 14 11月, 2009 3 次提交
  2. 12 11月, 2009 3 次提交
  3. 28 10月, 2009 1 次提交
  4. 29 8月, 2009 1 次提交
  5. 14 8月, 2009 4 次提交
  6. 05 8月, 2009 1 次提交
    • L
      mac80211: redefine usage of the mac80211 workqueue · 42935eca
      Luis R. Rodriguez 提交于
      The mac80211 workqueue exists to enable mac80211 and drivers
      to queue their own work on a single threaded workqueue. mac80211
      takes care to flush the workqueue during suspend but we never
      really had requirements on drivers for how they should use
      the workqueue in consideration for suspend.
      
      We extend mac80211 to document how the mac80211 workqueue should
      be used, how it should not be used and finally move raw access to
      the workqueue to mac80211 only. Drivers and mac80211 use helpers
      to queue work onto the mac80211 workqueue:
      
        * ieee80211_queue_work()
        * ieee80211_queue_delayed_work()
      
      These helpers will now warn if mac80211 already completed its
      suspend cycle and someone is trying to queue work. mac80211
      flushes the mac80211 workqueue prior to suspend a few times,
      but we haven't taken the care to ensure drivers won't add more
      work after suspend. To help with this we add a warning when
      someone tries to add work and mac80211 already completed the
      suspend cycle.
      
      Drivers should ensure they cancel any work or delayed work
      in the mac80211 stop() callback.
      Signed-off-by: NLuis R. Rodriguez <lrodriguez@atheros.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      42935eca
  7. 28 7月, 2009 1 次提交
  8. 25 7月, 2009 1 次提交
  9. 11 7月, 2009 1 次提交
    • J
      mac80211: push rx status into skb->cb · f1d58c25
      Johannes Berg 提交于
      Within mac80211, we often need to copy the rx status into
      skb->cb. This is wasteful, as drivers could be building it
      in there to start with. This patch changes the API so that
      drivers are expected to pass the RX status in skb->cb, now
      accessible as IEEE80211_SKB_RXCB(skb). It also updates all
      drivers to pass the rx status in there, but only by making
      them memcpy() it into place before the call to the receive
      function (ieee80211_rx(_irqsafe)). Each driver can now be
      optimised on its own schedule.
      Signed-off-by: NJohannes Berg <johannes@sipsolutions.net>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      f1d58c25
  10. 27 6月, 2009 1 次提交
  11. 21 5月, 2009 1 次提交
    • J
      mac80211: cancel/restart all timers across suspend/resume · 5bb644a0
      Johannes Berg 提交于
      We forgot to cancel all timers in mac80211 when suspending.
      In particular we forgot to deal with some things that can
      cause hardware reconfiguration -- while it is down.
      
      While at it we go ahead and add a warning in ieee80211_sta_work()
      if its run while the suspend->resume cycle is in effect. This
      should not happen and if it does it would indicate there is
      a bug lurking in either mac80211 or mac80211 drivers.
      
      With this now wpa_supplicant doesn't blink when I go to suspend
      and resume where as before there where issues with some timers
      running during the suspend->resume cycle. This caused a lot of
      incorrect assumptions and would at times bring back the device
      in an incoherent, but mostly recoverable, state.
      Signed-off-by: NLuis R. Rodriguez <lrodriguez@atheros.com>
      Signed-off-by: NJohannes Berg <johannes@sipsolutions.net>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      5bb644a0
  12. 07 5月, 2009 1 次提交
  13. 14 2月, 2009 1 次提交
  14. 30 1月, 2009 2 次提交
  15. 11 11月, 2008 1 次提交
  16. 01 11月, 2008 1 次提交
  17. 25 9月, 2008 1 次提交
    • J
      mac80211: make master iface not wireless · 133b8226
      Johannes Berg 提交于
      There's no need to register the master netdev with cfg80211,
      in fact, this is quite dangerous and lead to having to add
      checks for the master interface all over the config handlers.
      This patch removes the "ieee80211_ptr" from the master iface
      in favour of having a small netdev_priv() associated with
      the master interface that stores the ieee80211_local pointer.
      Because of this, a lot of code in the configuration handlers
      can go away. To make this patch easier to verify I have also
      removed a number of wiphy_priv() calls in favour of getting
      the sdata first and then the local pointer from that.
      Signed-off-by: NJohannes Berg <johannes@sipsolutions.net>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      133b8226
  18. 16 9月, 2008 3 次提交
  19. 27 8月, 2008 1 次提交
    • J
      net/mac80211/mesh.c: correct the argument to __mesh_table_free · 667d8af9
      Julia Lawall 提交于
      In the function mesh_table_grow, it is the new table not the argument table
      that should be freed if the function fails (cf commit
      bd9b448f)
      
      The semantic match that detects this problem is as follows:
      (http://www.emn.fr/x-info/coccinelle/)
      
      // <smpl>
      @r exists@
      local idexpression x;
      expression E,f;
      position p1,p2,p3;
      identifier l;
      statement S;
      @@
      
      x = mesh_table_alloc@p1(...)
      ...
      if (x == NULL) S
      ... when != E = x
          when != mesh_table_free(x)
      goto@p2 l;
      ... when != E = x
          when != f(...,x,...)
          when any
      (
      return \(0\|x\);
      |
      return@p3 ...;
      )
      
      @script:python@
      p1 << r.p1;
      p2 << r.p2;
      p3 << r.p3;
      @@
      
      print "%s: call on line %s not freed or saved before return on line %s via line %s" % (p1[0].file,p1[0].line,p3[0].line,p2[0].line)
      // </smpl>
      Signed-off-by: NJulia Lawall <julia@diku.dk>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      667d8af9
  20. 23 8月, 2008 1 次提交
  21. 22 5月, 2008 3 次提交
  22. 13 5月, 2008 1 次提交
  23. 01 5月, 2008 1 次提交
  24. 09 4月, 2008 1 次提交
  25. 02 4月, 2008 1 次提交
  26. 07 3月, 2008 3 次提交