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

Bing Zhao bzhao at marvell.com
Tue Oct 6 21:12:04 EDT 2009


Hi Andrey,

> -----Original Message-----
> From: Andrey Yurovsky [mailto:andrey at cozybit.com]
> Sent: Tuesday, October 06, 2009 6:01 PM
> To: Bing Zhao
> Cc: libertas-dev at lists.infradead.org; Amitkumar Karwar; linux-wireless at vger.kernel.org
> Subject: Re: [PATCH] libertas: Use lbs_is_cmd_allowed() check in command handling routines.
> 
> 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?

Thanks for your suggestion. Yes, it will be changed.

Regards,

Bing

> 
>   -Andrey



More information about the libertas-dev mailing list