ath: use GFP_DMA for rx buffer allocations to fix allocation errors on ixp4xx devices...
[openwrt.git] / package / mac80211 / patches / 510-nl80211_vlan_add_fix.patch
1 --- a/net/wireless/nl80211.c
2 +++ b/net/wireless/nl80211.c
3 @@ -1813,7 +1813,7 @@ static int nl80211_get_station(struct sk
4  }
5  
6  /*
7 - * Get vlan interface making sure it is on the right wiphy.
8 + * Get vlan interface making sure it is running and on the right wiphy.
9   */
10  static int get_vlan(struct genl_info *info,
11                     struct cfg80211_registered_device *rdev,
12 @@ -1831,6 +1831,8 @@ static int get_vlan(struct genl_info *in
13                         return -EINVAL;
14                 if ((*vlan)->ieee80211_ptr->wiphy != &rdev->wiphy)
15                         return -EINVAL;
16 +               if (!netif_running(*vlan))
17 +                       return -ENETDOWN;
18         }
19         return 0;
20  }