aboutsummaryrefslogtreecommitdiffstats
path: root/net/wireless/nl80211.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/wireless/nl80211.c')
-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 90ab3c8519be..c65e67e9231c 100644
--- a/net/wireless/nl80211.c
+++ b/net/wireless/nl80211.c
@@ -4653,7 +4653,8 @@ static int nl80211_register_action(struct sk_buff *skb, struct genl_info *info)
4653 if (err) 4653 if (err)
4654 goto unlock_rtnl; 4654 goto unlock_rtnl;
4655 4655
4656 if (dev->ieee80211_ptr->iftype != NL80211_IFTYPE_STATION) { 4656 if (dev->ieee80211_ptr->iftype != NL80211_IFTYPE_STATION &&
4657 dev->ieee80211_ptr->iftype != NL80211_IFTYPE_ADHOC) {
4657 err = -EOPNOTSUPP; 4658 err = -EOPNOTSUPP;
4658 goto out; 4659 goto out;
4659 } 4660 }
@@ -4703,7 +4704,8 @@ static int nl80211_action(struct sk_buff *skb, struct genl_info *info)
4703 goto out; 4704 goto out;
4704 } 4705 }
4705 4706
4706 if (dev->ieee80211_ptr->iftype != NL80211_IFTYPE_STATION) { 4707 if (dev->ieee80211_ptr->iftype != NL80211_IFTYPE_STATION &&
4708 dev->ieee80211_ptr->iftype != NL80211_IFTYPE_ADHOC) {
4707 err = -EOPNOTSUPP; 4709 err = -EOPNOTSUPP;
4708 goto out; 4710 goto out;
4709 } 4711 }