libertas: handle mesh networks in lbs_iface_active()
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 <error27@gmail.com> Acked-by: Dan Williams <dcbw@redhat.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:

committed by
John W. Linville

parent
ba2d00e816
commit
bfe2ed8f4d
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user