From: Vipin Mehta Date: Fri, 18 Feb 2011 21:13:05 +0000 (-0800) Subject: staging: ath6kl: Fixing target crash due to mismatch connect/disconnect X-Git-Tag: v2.6.39-rc1~469^2~491 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=83195cc8a83df3546d72873ca2aed51f97b0c901;p=pandora-kernel.git staging: ath6kl: Fixing target crash due to mismatch connect/disconnect Firmware design requires a WMI_DISCONNECT_CMD for every WMI_CONNECT_CMD to clear the firmware previous profile state. There is one case in linux host driver where two WMI_CONNECT_CMD are given without a WMI_DISCONNECT_CMD. This causes firmware state to mismatch causing an ASSERT. Use the driver state variable arConnectPending to track whether a WMI_CONNECT_CMD is issued to firmware. Signed-off-by: Vipin Mehta Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed