From: Arik Nemtsov Date: Tue, 15 May 2012 14:08:54 +0000 (+0300) Subject: wlcore: fixes for connection_loss_work X-Git-Tag: v3.6-rc1~125^2~559^2~8^2~47 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6b8bf5bc5e99f52334bec1b06b14d28dc595c95a;p=pandora-kernel.git wlcore: fixes for connection_loss_work We can't use cancel_delayed_work_sync() from functions that take the wl->mutex, since connection_loss_work also takes the mutex. This might result in a deadlock. Restructure the code so the work is synchronously canceled before taking the mutex. Avoid a bug where we would indefinitely delay the connection loss indication by re-queuing the connection loss work on consecutive beacon loss events. Cc: bartosz.markowski Signed-off-by: Arik Nemtsov Signed-off-by: Luciano Coelho --- Reading git-diff-tree failed