libertas: Check return status of command functions
[linux-2.6.git] / drivers / net / wireless / libertas / main.c
index 87bfd17b9c8c83cf6bb563dda303b2fe3352f6a9..b7363236cc539f99239779b161251bbfc77ce1c6 100644 (file)
@@ -1089,6 +1089,8 @@ static void auto_deepsleep_timer_fn(unsigned long data)
                        ret = lbs_prepare_and_send_command(priv,
                                        CMD_802_11_DEEP_SLEEP, 0,
                                        0, 0, NULL);
+                       if (ret)
+                               lbs_pr_err("Enter Deep Sleep command failed\n");
                }
        }
        mod_timer(&priv->auto_deepsleep_timer , jiffies +