Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 102511
b: refs/heads/master
c: 652e3f2
h: refs/heads/master
i:
  102509: a17afd6
  102507: 52c44c0
  102503: 428ae38
  102495: 66e9a01
v: v3
  • Loading branch information
Holger Schurig authored and John W. Linville committed May 7, 2008
1 parent d19fcd2 commit c2187f7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a63e5cb22fcc8590abc7d5050118a6d3589ed95f
refs/heads/master: 652e3f208619dfe75867349d6164afe735eaf159
9 changes: 7 additions & 2 deletions trunk/drivers/net/wireless/libertas/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1166,8 +1166,8 @@ void lbs_remove_card(struct lbs_private *priv)

dev = priv->dev;

cancel_delayed_work(&priv->scan_work);
cancel_delayed_work(&priv->assoc_work);
cancel_delayed_work_sync(&priv->scan_work);
cancel_delayed_work_sync(&priv->assoc_work);
destroy_workqueue(priv->work_thread);

if (priv->psmode == LBS802_11POWERMODEMAX_PSP) {
Expand Down Expand Up @@ -1267,6 +1267,9 @@ void lbs_stop_card(struct lbs_private *priv)

lbs_deb_enter(LBS_DEB_MAIN);

if (!priv)
goto out;

netif_stop_queue(priv->dev);
netif_carrier_off(priv->dev);

Expand All @@ -1276,6 +1279,7 @@ void lbs_stop_card(struct lbs_private *priv)
device_remove_file(&dev->dev, &dev_attr_lbs_mesh);

/* Flush pending command nodes */
del_timer_sync(&priv->command_timer);
spin_lock_irqsave(&priv->driver_lock, flags);
list_for_each_entry(cmdnode, &priv->cmdpendingq, list) {
cmdnode->result = -ENOENT;
Expand All @@ -1286,6 +1290,7 @@ void lbs_stop_card(struct lbs_private *priv)

unregister_netdev(dev);

out:
lbs_deb_leave(LBS_DEB_MAIN);
}
EXPORT_SYMBOL_GPL(lbs_stop_card);
Expand Down

0 comments on commit c2187f7

Please sign in to comment.