1. 06 2月, 2014 2 次提交
    • J
      cfg80211: send scan results from work queue · f9d15d16
      Johannes Berg 提交于
      Due to the previous commit, when a scan finishes, it is in theory
      possible to hit the following sequence:
       1. interface starts being removed
       2. scan is cancelled by driver and cfg80211 is notified
       3. scan done work is scheduled
       4. interface is removed completely, rdev->scan_req is freed,
          event sent to userspace but scan done work remains pending
       5. new scan is requested on another virtual interface
       6. scan done work runs, freeing the still-running scan
      
      To fix this situation, hang on to the scan done message and block
      new scans while that is the case, and only send the message from
      the work function, regardless of whether the scan_req is already
      freed from interface removal. This makes step 5 above impossible
      and changes step 6 to be
       5. scan done work runs, sending the scan done message
      
      As this can't work for wext, so we send the message immediately,
      but this shouldn't be an issue since we still return -EBUSY.
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      f9d15d16
    • P
      nl80211: Reset split_start when netlink skb is exhausted · f12cb289
      Pontus Fuchs 提交于
      When the netlink skb is exhausted split_start is left set. In the
      subsequent retry, with a larger buffer, the dump is continued from the
      failing point instead of from the beginning.
      
      This was causing my rt28xx based USB dongle to now show up when
      running "iw list" with an old iw version without split dump support.
      
      Cc: stable@vger.kernel.org
      Fixes: 3713b4e3 ("nl80211: allow splitting wiphy information in dumps")
      Signed-off-by: NPontus Fuchs <pontus.fuchs@gmail.com>
      [avoid the entire workaround when state->split is set]
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      f12cb289
  2. 15 1月, 2014 1 次提交
  3. 09 1月, 2014 1 次提交
  4. 06 1月, 2014 1 次提交
  5. 19 12月, 2013 2 次提交
  6. 16 12月, 2013 1 次提交
  7. 05 12月, 2013 2 次提交
  8. 03 12月, 2013 4 次提交
  9. 02 12月, 2013 4 次提交
  10. 26 11月, 2013 6 次提交
  11. 25 11月, 2013 4 次提交
  12. 20 11月, 2013 3 次提交
  13. 15 11月, 2013 2 次提交
  14. 28 10月, 2013 4 次提交
  15. 11 10月, 2013 1 次提交
  16. 01 10月, 2013 1 次提交
  17. 26 9月, 2013 1 次提交