Skip to content

Commit

Permalink
libertas: handle mesh networks in lbs_iface_active()
Browse files Browse the repository at this point in the history
There was an extra semicolon so the if condition wasn't used.  We
checked "priv->dev" twice instead of "priv->mesh_dev".

Signed-off-by: Dan Carpenter <[email protected]>
Acked-by: Dan Williams <[email protected]>
Signed-off-by: John W. Linville <[email protected]>
  • Loading branch information
error27 authored and linvjw committed Aug 24, 2011
1 parent ba2d00e commit bfe2ed8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/wireless/libertas/dev.h
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,8 @@ static inline int lbs_iface_active(struct lbs_private *priv)
int r;

r = netif_running(priv->dev);
if (priv->mesh_dev);
r |= netif_running(priv->dev);
if (priv->mesh_dev)
r |= netif_running(priv->mesh_dev);

return r;
}
Expand Down

0 comments on commit bfe2ed8

Please sign in to comment.