Skip to content
Snippets Groups Projects
  1. Apr 05, 2016
  2. Feb 24, 2016
  3. Jan 26, 2016
  4. Nov 03, 2015
  5. Oct 05, 2015
  6. Sep 22, 2015
  7. Jul 17, 2015
  8. Jun 09, 2015
  9. Mar 03, 2015
  10. Feb 28, 2015
    • Masashi Honma's avatar
      nl/mac80211: allow zero plink timeout to disable STA expiration · 31f909a2
      Masashi Honma authored
      
      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: default avatarMasashi Honma <masashi.honma@gmail.com>
      [reword/rewrap commit log]
      Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
      31f909a2
  11. Oct 29, 2014
    • Luciano Coelho's avatar
      mac80211: use secondary channel offset IE also beacons during CSA · 84469a45
      Luciano Coelho authored
      
      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: default avatarJouni Malinen <j@w1.fi>
      Signed-off-by: default avatarLuciano Coelho <luciano.coelho@intel.com>
      Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
      84469a45
  12. Jun 23, 2014
  13. May 15, 2014
  14. Apr 22, 2014
  15. Apr 09, 2014
  16. Feb 04, 2014
  17. Jan 06, 2014
  18. Dec 16, 2013
    • Thomas Pedersen's avatar
      mac80211: update adjusting TBTT bit in beacon · 43552be1
      Thomas Pedersen authored
      
      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: default avatarThomas Pedersen <thomas@cozybit.com>
      Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
      43552be1
  19. Nov 25, 2013
  20. Oct 28, 2013
    • Chun-Yeow Yeoh's avatar
      mac80211: process mesh channel switching using beacon · 33a45867
      Chun-Yeow Yeoh authored
      
      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: default avatarChun-Yeow Yeoh <yeohchunyeow@cozybit.com>
      [fix locking in ieee80211_mesh_process_chnswitch()]
      Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
      33a45867
    • Chun-Yeow Yeoh's avatar
      {nl,cfg,mac}80211: implement mesh channel switch userspace API · b8456a14
      Chun-Yeow Yeoh authored
      
      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: default avatarChun-Yeow Yeoh <yeohchunyeow@cozybit.com>
      Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
      b8456a14
    • Chun-Yeow Yeoh's avatar
      mac80211: process the CSA frame for mesh accordingly · 8f2535b9
      Chun-Yeow Yeoh authored
      
      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: default avatarChun-Yeow Yeoh <yeohchunyeow@cozybit.com>
      Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
      8f2535b9
  21. Aug 23, 2013
  22. Jul 16, 2013
  23. Jun 18, 2013
  24. Jun 11, 2013
Loading