1. 05 2月, 2014 1 次提交
    • J
      nl80211: fix scheduled scan RSSI matchset attribute confusion · ea73cbce
      Johannes Berg 提交于
      The scheduled scan matchsets were intended to be a list of filters,
      with the found BSS having to pass at least one of them to be passed
      to the host. When the RSSI attribute was added, however, this was
      broken and currently wpa_supplicant adds that attribute in its own
      matchset; however, it doesn't intend that to mean that anything
      that passes the RSSI filter should be passed to the host, instead
      it wants it to mean that everything needs to also have higher RSSI.
      
      This is semantically problematic because we have a list of filters
      like [ SSID1, SSID2, SSID3, RSSI ] with no real indication which
      one should be OR'ed and which one AND'ed.
      
      To fix this, move the RSSI filter attribute into each matchset. As
      we need to stay backward compatible, treat a matchset with only the
      RSSI attribute as a "default RSSI filter" for all other matchsets,
      but only if there are other matchsets (an RSSI-only matchset by
      itself is still desirable.)
      
      To make driver implementation easier, keep a global min_rssi_thold
      for the entire request as well. The only affected driver is ath6kl.
      
      I found this when I looked into the code after Raja Mani submitted
      a patch fixing the n_match_sets calculation to disregard the RSSI,
      but that patch didn't address the semantic issue.
      Reported-by: NRaja Mani <rmani@qti.qualcomm.com>
      Acked-by: NLuciano Coelho <luciano.coelho@intel.com>
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      ea73cbce
  2. 01 1月, 2014 2 次提交
  3. 10 12月, 2013 2 次提交
  4. 26 11月, 2013 1 次提交
    • L
      cfg80211: consolidate passive-scan and no-ibss flags · 8fe02e16
      Luis R. Rodriguez 提交于
      These two flags are used for the same purpose, just
      combine them into a no-ir flag to annotate no initiating
      radiation is allowed.
      
      Old userspace sending either flag will have it treated as
      the no-ir flag. To be considerate to older userspace we
      also send both the no-ir flag and the old no-ibss flags.
      Newer userspace will have to be aware of older kernels.
      
      Update all places in the tree using these flags with the
      following semantic patch:
      
      @@
      @@
      -NL80211_RRF_PASSIVE_SCAN
      +NL80211_RRF_NO_IR
      @@
      @@
      -NL80211_RRF_NO_IBSS
      +NL80211_RRF_NO_IR
      @@
      @@
      -IEEE80211_CHAN_PASSIVE_SCAN
      +IEEE80211_CHAN_NO_IR
      @@
      @@
      -IEEE80211_CHAN_NO_IBSS
      +IEEE80211_CHAN_NO_IR
      @@
      @@
      -NL80211_RRF_NO_IR | NL80211_RRF_NO_IR
      +NL80211_RRF_NO_IR
      @@
      @@
      -IEEE80211_CHAN_NO_IR | IEEE80211_CHAN_NO_IR
      +IEEE80211_CHAN_NO_IR
      @@
      @@
      -(NL80211_RRF_NO_IR)
      +NL80211_RRF_NO_IR
      @@
      @@
      -(IEEE80211_CHAN_NO_IR)
      +IEEE80211_CHAN_NO_IR
      
      Along with some hand-optimisations in documentation, to
      remove duplicates and to fix some indentation.
      Signed-off-by: NLuis R. Rodriguez <mcgrof@do-not-panic.com>
      [do all the driver updates in one go]
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      8fe02e16
  5. 11 10月, 2013 1 次提交
  6. 03 10月, 2013 3 次提交
  7. 02 10月, 2013 1 次提交
    • E
      iwlwifi: mvm: call ieee80211_scan_completed when needed · 5a3e9f7f
      Emmanuel Grumbach 提交于
      When RFKill cuts short a scan, mac80211 cancels the scan.
      This is done by sending a host command to the firmware, but
      this command was dropped because of RFKill. Flag this
      command as "SEND_IN_RFKILL" to make sure it is sent to the
      firmware. The firmware will send SCAN_COMPLETE_NOTIFICATION
      which will trigger a call to ieee80211_scan_completed.
      
      If the scan cannot be aborted, it is because the firmware
      already finished the scan but we hadn't notified mac80211
      at the time mac80211 decided to cancel the scan. By the time
      we see the scan could not be aborted, mac80211 has been
      notified already.
      
      This patch fixes situations in which we didn't notify
      mac80211 upon completion of the scan that was cut short
      by RFkill.
      
      Cc: stable@vger.kernel.org [3.10+]
      Signed-off-by: NEmmanuel Grumbach <emmanuel.grumbach@intel.com>
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      5a3e9f7f
  8. 25 7月, 2013 1 次提交
  9. 24 7月, 2013 1 次提交
  10. 16 7月, 2013 2 次提交
  11. 27 5月, 2013 1 次提交
  12. 17 5月, 2013 1 次提交
  13. 20 3月, 2013 1 次提交
  14. 06 3月, 2013 1 次提交
  15. 19 2月, 2013 1 次提交
  16. 01 2月, 2013 1 次提交
    • J
      iwlwifi: add the MVM driver · 8ca151b5
      Johannes Berg 提交于
      Newer firmware revisions have a completely new
      firmware API. This is the new driver for this
      new API.
      
      I've listed the people who directly contributed
      code, but many others from various teams have
      contributed in other ways.
      
      Cc: Alexander Bondar <alexander.bondar@intel.com>
      Cc: Amit Beka <amit.beka@intel.com>
      Cc: Amnon Paz <amnonx.paz@intel.com>
      Cc: Assaf Krauss <assaf.krauss@intel.com>
      Cc: David Spinadel <david.spinadel@intel.com>
      Cc: Dor Shaish <dor.shaish@intel.com>
      Cc: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
      Cc: Eytan Lifshitz <eytan.lifshitz@intel.com>
      Cc: Ilan Peer <ilan.peer@intel.com>
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      8ca151b5