1. 05 2月, 2014 6 次提交
  2. 07 1月, 2014 1 次提交
  3. 16 12月, 2013 1 次提交
    • T
      mac80211: update adjusting TBTT bit in beacon · 43552be1
      Thomas Pedersen 提交于
      This regression was introduced in "mac80211: cache mesh
      beacon".
      
      mesh_sync_offset_adjust_tbtt()  was assuming that the
      beacon would be rebuilt in every single pre-tbtt
      interrupt, but now the beacon update happens on the
      workqueue, and it must be ready for immediate delivery to
      the driver.
      
      Save a pointer to the meshconf IE in the beacon_data (this
      works because both the IE pointer and beacon buffer are
      protected by the same rcu_{dereference,assign_pointer}())
      for quick updates during pre-tbtt. This is faster and a
      little prettier than iterating over the elements to find
      the meshconf IE every time.
      Signed-off-by: NThomas Pedersen <thomas@cozybit.com>
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      43552be1
  4. 26 11月, 2013 2 次提交
  5. 25 11月, 2013 1 次提交
  6. 28 10月, 2013 3 次提交
    • C
      mac80211: process mesh channel switching using beacon · 33a45867
      Chun-Yeow Yeoh 提交于
      Trigger the mesh channel switching procedure if the mesh STA
      happens to miss the CSA action frame but able to receive the
      beacon containing the CSA and MCSP elements from its peer
      mesh STAs.
      Signed-off-by: NChun-Yeow Yeoh <yeohchunyeow@cozybit.com>
      [fix locking in ieee80211_mesh_process_chnswitch()]
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      33a45867
    • C
      {nl,cfg,mac}80211: implement mesh channel switch userspace API · b8456a14
      Chun-Yeow Yeoh 提交于
      Implement the required procedures for mesh channel switching as defined
      in the IEEE Std 802.11-2012 section 10.9.8.4.3 and also handle the CSA
      and MCSP elements as followed:
       * Add the function for updating the beacon and probe response frames
         with CSA and MCSP elements during the period of switching to the new
         channel. Both CSA and MCSP elements must be included in beacon and
         probe response frames until the intended channel switch time.
       * The ifmsh->csa_settings is set to NULL and the CSA and MCSP elements
         will then be removed from the beacon or probe response frames once the
         new channel is switched to.
      Signed-off-by: NChun-Yeow Yeoh <yeohchunyeow@cozybit.com>
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      b8456a14
    • C
      mac80211: process the CSA frame for mesh accordingly · 8f2535b9
      Chun-Yeow Yeoh 提交于
      Process the CSA frame according to the procedures define in IEEE Std
      802.11-2012 section 10.9.8.4.3 as follow:
      * The mesh channel switch parameters element (MCSP) must be availabe.
      * If the MCSP's TTL is 1, drop the frame but still process the CSA.
      * If the MCSP's precedence value is less than or equal to the current
        precedence value, drop the frame and do not process the CSA.
      * The CSA frame is forwarded after TTL is decremented by 1 and the
        initiator field is set to 0. Transmit restrict field and others
        are maintained as is.
      * No beacon or probe response frame are handled here.
      
      Also, introduce the debug message used for mesh CSA purpose.
      Signed-off-by: NChun-Yeow Yeoh <yeohchunyeow@cozybit.com>
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      8f2535b9
  7. 23 8月, 2013 1 次提交
  8. 16 7月, 2013 2 次提交
  9. 18 6月, 2013 2 次提交
  10. 11 6月, 2013 3 次提交
  11. 03 6月, 2013 1 次提交
  12. 25 5月, 2013 2 次提交
  13. 17 5月, 2013 1 次提交
  14. 16 4月, 2013 1 次提交
    • J
      mac80211: parse VHT channel switch IEs · b2e506bf
      Johannes Berg 提交于
      VHT introduces multiple IEs that need to be parsed for a
      wide bandwidth channel switch. Two are (currently) needed
      in mac80211:
       * wide bandwidth channel switch element
       * channel switch wrapper element
      
      The former is contained in the latter for beacons and probe
      responses, but not for the spectrum management action frames
      so the IE parser needs a new argument to differentiate them.
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      b2e506bf
  15. 08 4月, 2013 1 次提交
  16. 24 3月, 2013 1 次提交
  17. 11 3月, 2013 1 次提交
  18. 06 3月, 2013 2 次提交
  19. 18 2月, 2013 1 次提交
  20. 15 2月, 2013 4 次提交
  21. 12 2月, 2013 2 次提交
  22. 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