aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/wireless/nl80211.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c
index 24168560ebae..2c55d25ed34d 100644
--- a/net/wireless/nl80211.c
+++ b/net/wireless/nl80211.c
@@ -1763,7 +1763,8 @@ static int nl80211_new_station(struct sk_buff *skb, struct genl_info *info)
1763 goto out_rtnl; 1763 goto out_rtnl;
1764 1764
1765 if (dev->ieee80211_ptr->iftype != NL80211_IFTYPE_AP && 1765 if (dev->ieee80211_ptr->iftype != NL80211_IFTYPE_AP &&
1766 dev->ieee80211_ptr->iftype != NL80211_IFTYPE_AP_VLAN) { 1766 dev->ieee80211_ptr->iftype != NL80211_IFTYPE_AP_VLAN &&
1767 dev->ieee80211_ptr->iftype != NL80211_IFTYPE_MESH_POINT) {
1767 err = -EINVAL; 1768 err = -EINVAL;
1768 goto out; 1769 goto out;
1769 } 1770 }
@@ -1812,7 +1813,8 @@ static int nl80211_del_station(struct sk_buff *skb, struct genl_info *info)
1812 goto out_rtnl; 1813 goto out_rtnl;
1813 1814
1814 if (dev->ieee80211_ptr->iftype != NL80211_IFTYPE_AP && 1815 if (dev->ieee80211_ptr->iftype != NL80211_IFTYPE_AP &&
1815 dev->ieee80211_ptr->iftype != NL80211_IFTYPE_AP_VLAN) { 1816 dev->ieee80211_ptr->iftype != NL80211_IFTYPE_AP_VLAN &&
1817 dev->ieee80211_ptr->iftype != NL80211_IFTYPE_MESH_POINT) {
1816 err = -EINVAL; 1818 err = -EINVAL;
1817 goto out; 1819 goto out;
1818 } 1820 }