Commit edf5dabf authored by David Woodhouse's avatar David Woodhouse Committed by John W. Linville
Browse files

libertas: Add reset_card() callback to hardware driver

Signed-off-by: default avatarDavid Woodhouse <>
Signed-off-by: default avatarJohn W. Linville <>
parent 15dbaac0
......@@ -153,6 +153,7 @@ struct lbs_private {
/** Hardware access */
int (*hw_host_to_card) (struct lbs_private *priv, u8 type, u8 *payload, u16 nb);
void (*reset_card) (struct lbs_private *priv);
/* Wake On LAN */
uint32_t wol_criteria;
......@@ -787,6 +787,11 @@ static int lbs_thread(void *data)
lbs_complete_command(priv, cmdnode, -ETIMEDOUT);
priv->nr_retries = 0;
if (priv->reset_card) {
} else {
priv->cur_cmd = NULL;
lbs_pr_info("requeueing command %x due to timeout (#%d)\n",
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment