1. 27 Jul, 2017 10 commits
  2. 26 Jul, 2017 6 commits
  3. 25 Jul, 2017 7 commits
  4. 24 Jul, 2017 13 commits
  5. 21 Jul, 2017 4 commits
    • Kalle Valo's avatar
      Merge tag 'iwlwifi-for-kalle-2017-07-21' of... · d755cbc2
      Kalle Valo authored
      Merge tag 'iwlwifi-for-kalle-2017-07-21' of git://git.kernel.org/pub/scm/linux/kernel/git/iwlwifi/iwlwifi-fixes
      
      Some iwlwifi fixes for 4.13:
      
      * A few NULL pointer dereferences in the recovery flow;
      * A small but important fix for IBSS;
      * A one-liner fix for tracing, which was including too much data;
      * Some of these are bugzilla bug fixes;
      d755cbc2
    • Johannes Berg's avatar
      iwlwifi: mvm: defer setting IWL_MVM_STATUS_IN_HW_RESTART · bf8b286f
      Johannes Berg authored
      A hardware/firmware error may happen at any point in time. In
      particular, it might happen while mac80211 is in the middle of
      a flow. We observed the following situation:
       * mac80211 is in authentication flow, in ieee80211_prep_connection()
       * iwlwifi firmware crashes, but no error can be reported at this
         precise point (mostly because the driver method is void, but even
         if it wasn't we'd just shift to a race condition)
       * mac80211 continues the flow, trying to add the AP station
       * iwlwifi has already set its internal restart flag, and so thinks
         that adding the station is part of the restart and already set up,
         so it uses the information that's supposed to already be in the
         struct
      
      This can happen with any flow in mac80211 and with any information
      we try to preserve across hardware restarts.
      
      To fix this, only set a new HW_RESTART_REQUESTED flag and translate
      that to IN_HW_RESTART once mac80211 actually starts the restart by
      calling our start() method. As a consequence, any mac80211 flow in
      progress at the time of the restart will properly finish (certainly
      with errors), before the restart is attempted.
      
      This fixes https://bugzilla.kernel.org/show_bug.cgi?id=195299.
      Reported-by: default avatardjagoo <dev@djagoo.io>
      Reported-by: default avatarŁukasz Siudut <lsiudut@gmail.com>
      Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
      Signed-off-by: default avatarLuca Coelho <luciano.coelho@intel.com>
      bf8b286f
    • Luca Coelho's avatar
      iwlwifi: mvm: handle IBSS probe_queue in a few missing places · 7b758a11
      Luca Coelho authored
      When IBSS was implemented for DQA, we missid a few places where it
      should be handled in the same way as AP.
      
      Fixes: ee48b722 ("iwlwifi: mvm: support ibss in dqa mode")
      Signed-off-by: default avatarLuca Coelho <luciano.coelho@intel.com>
      7b758a11
    • Emmanuel Grumbach's avatar
      iwlwifi: fix tracing when tx only is enabled · 5462bcd8
      Emmanuel Grumbach authored
      iwl_trace_data is somewhat confusing. It returns a bool
      that tells if the payload of the skb should be added to
      the tx_data event. If it returns false, then the payload
      of the skb is added to the tx event.
      
      The purpose is to be able to start tracing with
      -e iwlwifi
      and record non-data packets only which saves bandwidth.
      
      Since EAPOLs are important, seldom and not real data
      packet (despite being WiFi data packets), they are
      included in tx event and thus iwl_trace_data returns false
      on those. This last part was buggy, and because of that,
      all the data packets were included in the tx event.
      
      Fix that.
      
      Fixes: 0c4cb731 ("iwlwifi: tracing: decouple from mac80211")
      Signed-off-by: default avatarEmmanuel Grumbach <emmanuel.grumbach@intel.com>
      Signed-off-by: default avatarLuca Coelho <luciano.coelho@intel.com>
      5462bcd8