Search Linux Wireless

[PATCH] wireless/p54: fw_state can't be both OFF and RESET

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



fw_state can't be both OFF and RESET

Signed-off-by: Roel Kluin <roel.kluin@xxxxxxxxx>
---
This was not tested in any way, so please review.

diff --git a/drivers/net/wireless/p54/p54spi.c b/drivers/net/wireless/p54/p54spi.c
index d1fe577..c327659 100644
--- a/drivers/net/wireless/p54/p54spi.c
+++ b/drivers/net/wireless/p54/p54spi.c
@@ -516,7 +516,7 @@ static void p54spi_work(struct work_struct *work)
 
 	mutex_lock(&priv->mutex);
 
-	if (priv->fw_state == FW_STATE_OFF &&
+	if (priv->fw_state == FW_STATE_OFF ||
 	    priv->fw_state == FW_STATE_RESET)
 		goto out;
 
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux