/* This function checks if the command is allowed.  */
static int lbs_is_cmd_allowed(struct lbs_private *priv)
/* This function checks if the command is allowed.  */
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("command not allowed in deep sleep\n");
			ret = 0;
		}
	}
	lbs_deb_leave(LBS_DEB_CMD);
	return ret;
}