From: Eliad Peller Date: Mon, 13 Jun 2011 09:47:30 +0000 (+0300) Subject: mac80211: add cancel_hw_scan() callback X-Git-Tag: v3.1-rc1~316^2~350^2^2~84 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b856439b1b54358e580aaee5dbe683af5ada9403;p=pandora-kernel.git mac80211: add cancel_hw_scan() callback When suspending, __ieee80211_suspend() calls ieee80211_scan_cancel(), which will only cancel sw scan. In order to cancel hw scan, the low-level driver has to cancel it in the suspend() callback. however, this is too late, as a new scan_work will be enqueued (while the driver is going into suspend). Add a new cancel_hw_scan() callback, asking the driver to cancel an active hw scan, and call it in ieee80211_scan_cancel(). Signed-off-by: Eliad Peller Reviewed-by: Stanislaw Gruszka Signed-off-by: John W. Linville --- Reading git-diff-tree failed