1. 22 9月, 2015 1 次提交
  2. 17 7月, 2015 1 次提交
  3. 10 6月, 2015 1 次提交
  4. 04 3月, 2015 1 次提交
  5. 01 3月, 2015 1 次提交
    • M
      nl/mac80211: allow zero plink timeout to disable STA expiration · 31f909a2
      Masashi Honma 提交于
      Both wpa_supplicant and mac80211 have and inactivity timer. By default
      wpa_supplicant will be timed out in 5 minutes and mac80211's it is 30
      minutes. If wpa_supplicant uses a longer timer than mac80211, it will
      get unexpected disconnection by mac80211.
      
      Using 0xffffffff instead as the configured value could solve this w/o
      changing the code, but due to integer overflow in the expression used
      this doesn't work. The expression is:
      
      (current jiffies) > (frame Rx jiffies + NL80211_MESHCONF_PLINK_TIMEOUT * 250)
      
      On 32bit system, the right side would overflow and be a very small
      value if NL80211_MESHCONF_PLINK_TIMEOUT is sufficiently large,
      causing unexpectedly early disconnections.
      
      Instead allow disabling the inactivity timer to avoid this situation,
      by passing the (previously invalid and useless) value 0.
      Signed-off-by: NMasashi Honma <masashi.honma@gmail.com>
      [reword/rewrap commit log]
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      31f909a2
  6. 29 10月, 2014 1 次提交
    • L
      mac80211: use secondary channel offset IE also beacons during CSA · 84469a45
      Luciano Coelho 提交于
      If we are switching from an HT40+ to an HT40- channel (or vice-versa),
      we need the secondary channel offset IE to specify what is the
      post-CSA offset to be used.  This applies both to beacons and to probe
      responses.
      
      In ieee80211_parse_ch_switch_ie() we were ignoring this IE from
      beacons and using the *current* HT information IE instead.  This was
      causing us to use the same offset as before the switch.
      
      Fix that by using the secondary channel offset IE also for beacons and
      don't ever use the pre-switch offset.  Additionally, remove the
      "beacon" argument from ieee80211_parse_ch_switch_ie(), since it's not
      needed anymore.
      
      Cc: stable@vger.kernel.org
      Reported-by: NJouni Malinen <j@w1.fi>
      Signed-off-by: NLuciano Coelho <luciano.coelho@intel.com>
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      84469a45
  7. 23 6月, 2014 2 次提交
  8. 15 5月, 2014 1 次提交
  9. 22 4月, 2014 1 次提交
  10. 09 4月, 2014 2 次提交
  11. 05 2月, 2014 6 次提交
  12. 07 1月, 2014 1 次提交
  13. 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
  14. 26 11月, 2013 2 次提交
  15. 25 11月, 2013 1 次提交
  16. 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
  17. 23 8月, 2013 1 次提交
  18. 16 7月, 2013 2 次提交
  19. 18 6月, 2013 2 次提交
  20. 11 6月, 2013 3 次提交
  21. 03 6月, 2013 1 次提交
  22. 25 5月, 2013 2 次提交
  23. 17 5月, 2013 1 次提交
  24. 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
  25. 08 4月, 2013 1 次提交