From: Carlos Corbacho Date: Sat, 12 Apr 2008 15:39:47 +0000 (+0100) Subject: rfkill: Fix device type check when toggling states X-Git-Tag: v2.6.25~4^2~1^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=89796f64a20d31e74ee0051df2e26812c852e734;p=pandora-kernel.git rfkill: Fix device type check when toggling states rfkill_switch_all() is supposed to only switch all the interfaces of a given type, but does not actually do this; instead, it just switches everything currently in the same state. Add the necessary type check in. (This fixes a bug I've been seeing while developing an rfkill laptop driver, with both bluetooth and wireless simultaneously changing state after only pressing either KEY_WLAN or KEY_BLUETOOTH). Signed-off-by: Carlos Corbacho Signed-off-by: John W. Linville --- Reading git-diff-tree failed