On Thu, May 12, 2011 at 10:55:21PM +0530, Johannes Berg wrote: > On Thu, 2011-05-12 at 22:39 +0530, Rajkumar Manoharan wrote: > > scan_work is never stopped if the device was unplugged during > > s/w scan. > > How did you come to that conclusion? ieee80211_do_stop() does stop the > scan. > True. But Sometimes ieee80211_scan_cancel is waiting for mutex where the lock was already aquired by scan work and scan_work never releases the lock till scan completion whenever next_delay == 0. This scenario was observed while unplug the card during scan. -- Rajkumar -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html