|
@@ -1369,7 +1369,7 @@ EXPORT_SYMBOL_GPL(lbs_start_card);
|
|
|
|
|
|
void lbs_stop_card(struct lbs_private *priv)
|
|
|
{
|
|
|
- struct net_device *dev = priv->dev;
|
|
|
+ struct net_device *dev;
|
|
|
struct cmd_ctrl_node *cmdnode;
|
|
|
unsigned long flags;
|
|
|
|
|
@@ -1377,9 +1377,10 @@ void lbs_stop_card(struct lbs_private *priv)
|
|
|
|
|
|
if (!priv)
|
|
|
goto out;
|
|
|
+ dev = priv->dev;
|
|
|
|
|
|
- netif_stop_queue(priv->dev);
|
|
|
- netif_carrier_off(priv->dev);
|
|
|
+ netif_stop_queue(dev);
|
|
|
+ netif_carrier_off(dev);
|
|
|
|
|
|
lbs_debugfs_remove_one(priv);
|
|
|
if (priv->mesh_tlv) {
|