wl12xx: Fix potential interrupt storm
authorIdo Yariv <ido@wizery.com>
Wed, 11 Jan 2012 07:42:41 +0000 (09:42 +0200)
committerLuciano Coelho <coelho@ti.com>
Wed, 15 Feb 2012 06:38:28 +0000 (08:38 +0200)
commit46b0cc9ffce356fbcb2135219a3ed8500714a9e4
tree3f7af09f3b7ff2380701eeb0764e170903182765
parenta454969ede024a209e6a755d5f7a928ab81ed00c
wl12xx: Fix potential interrupt storm

The interrupt threaded handler exits immediately if the driver's state
is WL1271_STATE_OFF. As a result, the interrupt status is not read. If
the interrupt is level triggered, it will be fired again.

Fix this by disabling interrupts before setting the state to OFF.

Signed-off-by: Ido Yariv <ido@wizery.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
drivers/net/wireless/wl12xx/main.c