[PATCH] libertas: Use lbs_is_cmd_allowed() check in command handling routines.

Andrey Yurovsky andrey at cozybit.com
Tue Oct 6 21:01:14 EDT 2009


Hi Bing,

On Tue, Oct 6, 2009 at 5:02 PM, Bing Zhao <bzhao at marvell.com> wrote:
> From: Amitkumar Karwar <akarwar at marvell.com>
> +static int lbs_is_cmd_allowed(struct lbs_private *priv)
> +{
> +       int         ret = 1;
> +
> +       lbs_deb_enter(LBS_DEB_CMD);
> +
> +       if (!priv->is_auto_deep_sleep_enabled) {
> +               if (priv->is_deep_sleep) {
> +                       lbs_deb_cmd("IOCTLS called when station"
> +                                       " is in deep sleep\n");
> +                       ret = 0;
> +               }
> +       }

Can this debug message be something like "command not allowed in deep
sleep" instead of mentioning IOCTLS?

  -Andrey



More information about the libertas-dev mailing list