1. 24 8月, 2009 2 次提交
  2. 23 8月, 2009 21 次提交
  3. 20 8月, 2009 12 次提交
  4. 18 8月, 2009 1 次提交
  5. 15 8月, 2009 2 次提交
  6. 14 8月, 2009 2 次提交
    • J
      cfg80211: allow driver to override PS default · 16cb9d42
      Johannes Berg 提交于
      Sometimes drivers might have a good reason to override
      the PS default, like iwlwifi right now where it affects
      RX performance significantly at this point. This will
      allow them to override the default, if desired, in a
      way that users can still change it according to their
      trade-off choices, not the driver's, like would happen
      if the driver just disabled PS completely then.
      Signed-off-by: NJohannes Berg <johannes@sipsolutions.net>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      16cb9d42
    • J
      cfg80211: check for and abort dangling scan requests · 36e6fea8
      Johannes Berg 提交于
      If you trigger a scan request on an interface and then
      take it down, or rmmod the module or unplug the device
      the driver might "forget" to cancel the scan request.
      That is a bug in the driver, but the current behaviour
      is that we just hang endlessly waiting for the netdev
      refcount to become 0 which it never will. To improve
      robustness, check for this situation in cfg80211, warn
      about it and clean up behind the driver. I don't just
      clean up silently because it's likely that the driver
      also has some internal state it has now leaked.
      
      Additionally, this fixes a locking bug, clearing the
      scan_req pointer should be done under the rdev lock.
      
      Finally, we also need to _wait_ for the scan work and
      not just abort it since it might be pending and wanting
      to do a cleanup.
      Signed-off-by: NJohannes Berg <johannes@sipsolutions.net>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      36e6fea8