Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 171747
b: refs/heads/master
c: c258d2d
h: refs/heads/master
i:
  171745: 2e3109a
  171743: 9e484f8
v: v3
  • Loading branch information
Felix Fietkau authored and John W. Linville committed Nov 13, 2009
1 parent c0188d5 commit f68d803
Show file tree
Hide file tree
Showing 2 changed files with 4 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: f501dba4c4c5bda1b64c941997ab7ece1d503945
refs/heads/master: c258d2de972d1e391a3dec731e0801ed1cc85494
4 changes: 3 additions & 1 deletion trunk/net/wireless/nl80211.c
Original file line number Diff line number Diff line change
Expand Up @@ -1821,7 +1821,7 @@ static int nl80211_get_station(struct sk_buff *skb, struct genl_info *info)
}

/*
* Get vlan interface making sure it is on the right wiphy.
* Get vlan interface making sure it is running and on the right wiphy.
*/
static int get_vlan(struct genl_info *info,
struct cfg80211_registered_device *rdev,
Expand All @@ -1839,6 +1839,8 @@ static int get_vlan(struct genl_info *info,
return -EINVAL;
if ((*vlan)->ieee80211_ptr->wiphy != &rdev->wiphy)
return -EINVAL;
if (!netif_running(*vlan))
return -ENETDOWN;
}
return 0;
}
Expand Down

0 comments on commit f68d803

Please sign in to comment.