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