1. 15 2月, 2013 3 次提交
  2. 12 2月, 2013 1 次提交
    • T
      mac80211: fix mesh sta teardown · 45b5028e
      Thomas Pedersen 提交于
      The patch "mac80211: clean up mesh sta allocation warning"
      moved some mesh initialization into a path which is only
      called when the kernel handles peering. This causes a hang
      when mac80211 tries to clean up a userspace-allocated
      station entry and delete a timer which has never been
      initialized.
      
      To avoid this, only do any mesh sta peering teardown if
      the kernel is actually handling it.
      
      The same is true when quiescing before suspend.
      Signed-off-by: NThomas Pedersen <thomas@cozybit.com>
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      45b5028e
  3. 05 2月, 2013 1 次提交
    • M
      mac80211: mesh power save basics · 3f52b7e3
      Marco Porsch 提交于
      Add routines to
      - maintain a PS mode for each peer and a non-peer PS mode
      - indicate own PS mode in transmitted frames
      - track neighbor STAs power modes
      - buffer frames when neighbors are in PS mode
      - add TIM and Awake Window IE to beacons
      - release frames in Mesh Peer Service Periods
      
      Add local_pm to sta_info to represent the link-specific power
      mode at this station towards the remote station. When a peer
      link is established, use the default power mode stored in mesh
      config. Update the PS status if the peering status of a neighbor
      changes.
      Maintain a mesh power mode for non-peer mesh STAs. Set the
      non-peer power mode to active mode during peering. Authenticated
      mesh peering is currently not working when either node is
      configured to be in power save mode.
      
      Indicate the current power mode in transmitted frames. Use QoS
      Nulls to indicate mesh power mode transitions.
      For performance reasons, calls to the function setting the frame
      flags are placed in HWMP routing routines, as there the STA
      pointer is already available.
      
      Add peer_pm to sta_info to represent the peer's link-specific
      power mode towards the local station. Add nonpeer_pm to
      represent the peer's power mode towards all non-peer stations.
      Track power modes based on received frames.
      
      Add the ps_data structure to ieee80211_if_mesh (for TIM map, PS
      neighbor counter and group-addressed frame buffer).
      
      Set WLAN_STA_PS flag for STA in PS mode to use the unicast frame
      buffering routines in the tx path. Update num_sta_ps to buffer
      and release group-addressed frames after DTIM beacons.
      
      Announce the awake window duration in beacons if in light or
      deep sleep mode towards any peer or non-peer. Create a TIM IE
      similarly to AP mode and add it to mesh beacons. Parse received
      Awake Window IEs and check TIM IEs for buffered frames.
      
      Release frames towards peers in mesh Peer Service Periods. Use
      the corresponding trigger frames and monitor the MPSP status.
      Append a QoS Null as trigger frame if neccessary to properly end
      the MPSP. Currently, in HT channels MPSPs behave imperfectly and
      show large delay spikes and frame losses.
      Signed-off-by: NMarco Porsch <marco@cozybit.com>
      Signed-off-by: NIvan Bezyazychnyy <ivan.bezyazychnyy@gmail.com>
      Signed-off-by: NMike Krinkin <krinkin.m.u@gmail.com>
      Signed-off-by: NMax Filippov <jcmvbkbc@gmail.com>
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      3f52b7e3
  4. 17 1月, 2013 2 次提交
  5. 03 1月, 2013 1 次提交
  6. 26 11月, 2012 1 次提交
  7. 18 10月, 2012 1 次提交
  8. 17 10月, 2012 1 次提交
  9. 20 8月, 2012 1 次提交
  10. 14 8月, 2012 1 次提交
  11. 18 6月, 2012 1 次提交
  12. 09 6月, 2012 1 次提交
  13. 25 4月, 2012 1 次提交
  14. 24 4月, 2012 1 次提交
  15. 12 4月, 2012 1 次提交
  16. 11 4月, 2012 1 次提交
    • J
      mac80211: Implement mesh synchronization framework · dbf498fb
      Javier Cardona 提交于
      This patch adds MBSS extensible synchronization framework (Sec.
      13.13.2 of IEEE Std. 802.11-2012).
      
      The framework is implemented via an ops table which defines the
      following functions:
      
          rx_bcn_presp() - this is called every time a mesh beacon is
      received.
          adjust_tbtt() - this is called immediately before a beacon is about
      to be transmitted.
      
      The default neighbor offset synchronization defined in the standard is
      implemented.  We also provide template functions for vendor specific
      methods.
      
      When neighbor offset synchronization is active (which is the default)
      mesh neighbors in the same MBSS will track timing offsets to each other
      and compensate clock drift.
      
      In our tests we observed that this mesh synchronization implementation
      successfully corrected drifts between stations of ~2PPM while
      introducing a jitter of ~20us.
      
      It is also possible to test this framework on mac80211_hwsim simulated
      phys to see how it behaves under different topologies, over poor links,
      etc.
      Signed-off-by: NMarco Porsch <marco.porsch@s2005.tu-chemnitz.de>
      Signed-off-by: NPavel Zubarev <pavel.zubarev@gmail.com>
      Signed-off-by: NJavier Cardona <javier@cozybit.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      dbf498fb
  17. 10 4月, 2012 2 次提交
  18. 06 3月, 2012 1 次提交
  19. 28 2月, 2012 1 次提交
  20. 29 11月, 2011 1 次提交
  21. 10 11月, 2011 1 次提交
  22. 09 11月, 2011 1 次提交
  23. 01 10月, 2011 1 次提交
  24. 14 9月, 2011 2 次提交
  25. 25 8月, 2011 2 次提交
  26. 23 8月, 2011 2 次提交
  27. 17 5月, 2011 3 次提交
    • J
      mac80211: annotate and fix RCU in mesh code · 349eb8cf
      Johannes Berg 提交于
      This adds proper RCU annotations to the mesh path
      table code, and fixes a number of bugs in the code
      that I found while checking the sparse warnings I
      got as a result of the annotations.
      
      Some things like the changes in mesh_path_add() or
      mesh_pathtbl_init() only serve to shut up sparse,
      but other changes like the changes surrounding the
      for_each_mesh_entry() macro fix real RCU bugs in
      the code.
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      349eb8cf
    • J
      mac80211: fix and simplify mesh locking · 1928ecab
      Johannes Berg 提交于
      The locking in mesh_{mpath,mpp}_table_grow not only
      has an rcu_read_unlock() missing, it's also racy
      (though really only technically since it's invoked
      from a single function only) since it obtains the
      new size of the table without any locking, so two
      invocations of the function could attempt the same
      resize.
      
      Additionally, it uses synchronize_rcu() which is
      rather expensive and can be avoided trivially here.
      
      Modify the functions to only use the table lock
      and use call_rcu() instead of synchronize_rcu().
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      1928ecab
    • J
      mac80211: sparse RCU annotations · 40b275b6
      Johannes Berg 提交于
      This adds sparse RCU annotations to most of
      mac80211, only the mesh code remains to be
      done.
      
      Due the the previous patches, the annotations
      are pretty simple. The only thing that this
      actually changes is removing the RCU usage of
      key->sta in debugfs since this pointer isn't
      actually an RCU-managed pointer (it only has
      a single assignment done before the key even
      goes live). As that is otherwise harmless, I
      decided to make it part of this patch.
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      40b275b6
  28. 13 5月, 2011 1 次提交
  29. 13 4月, 2011 1 次提交
  30. 21 12月, 2010 2 次提交