1. 22 2月, 2019 3 次提交
  2. 12 2月, 2019 1 次提交
  3. 11 2月, 2019 3 次提交
    • J
      cfg80211: fix and clean up cfg80211_gen_new_bssid() · 5d4071ab
      Johannes Berg 提交于
      Fix cfg80211_gen_new_bssid() to not rely on u64 modulo arithmetic,
      which isn't needed since we really just want to mask there. Also,
      clean it up to calculate the mask only once and use GENMASK_ULL()
      instead of open-coding the mask calculation.
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      5d4071ab
    • J
      cfg80211: Use const more consistently in for_each_element macros · 7388afe0
      Jouni Malinen 提交于
      Enforce the first argument to be a correct type of a pointer to struct
      element and avoid unnecessary typecasts from const to non-const pointers
      (the change in validate_ie_attr() is needed to make this part work). In
      addition, avoid signed/unsigned comparison within for_each_element() and
      mark struct element packed just in case.
      Signed-off-by: NJouni Malinen <j@w1.fi>
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      7388afe0
    • J
      cfg80211: restore regulatory without calling userspace · e646a025
      Johannes Berg 提交于
      Jouni reports that in some cases it is possible that getting
      disconnected (or stopping AP, after previous patches) results
      in further operations hitting the window within the regulatory
      core restoring the regdomain to the defaults. The reason for
      this is that we have to call out to CRDA or otherwise do some
      asynchronous work, and thus can't do the restore atomically.
      
      However, we've previously seen all the data we need to do the
      restore, so we can hang on to that data and use it later for
      the restore. This makes the whole thing happen within a single
      locked section and thus atomic.
      
      However, we can't *always* do this - there are unfortunately
      cases where the restore needs to re-request, because this is
      also used (abused?) as an error recovery process, so make the
      new behaviour optional and only use it when doing a regular
      restore as described above.
      Reported-by: NJouni Malinen <j@w1.fi>
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      e646a025
  4. 09 2月, 2019 1 次提交
  5. 08 2月, 2019 20 次提交
  6. 06 2月, 2019 7 次提交
  7. 05 2月, 2019 5 次提交