Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 301042
b: refs/heads/master
c: 0beecac
h: refs/heads/master
v: v3
  • Loading branch information
Daniel Drake authored and John W. Linville committed Apr 17, 2012
1 parent 807699d commit 7b23ca3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 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: 370803c25dd77332ee4ca97884c3a5e1e1eafbca
refs/heads/master: 0beecac8abb3af890d470df541142d55343382d6
9 changes: 8 additions & 1 deletion trunk/drivers/net/wireless/libertas/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1033,7 +1033,9 @@ void lbs_remove_card(struct lbs_private *priv)
lbs_deb_enter(LBS_DEB_MAIN);

lbs_remove_mesh(priv);
lbs_scan_deinit(priv);

if (priv->wiphy_registered)
lbs_scan_deinit(priv);

/* worker thread destruction blocks on the in-flight command which
* should have been cleared already in lbs_stop_card().
Expand Down Expand Up @@ -1128,6 +1130,11 @@ void lbs_stop_card(struct lbs_private *priv)
goto out;
dev = priv->dev;

/* If the netdev isn't registered, it means that lbs_start_card() was
* never called so we have nothing to do here. */
if (dev->reg_state != NETREG_REGISTERED)
goto out;

netif_stop_queue(dev);
netif_carrier_off(dev);

Expand Down

0 comments on commit 7b23ca3

Please sign in to comment.