aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/cfg.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/mac80211/cfg.c')
-rw-r--r--net/mac80211/cfg.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c
index 9e63fc28f859..a7a78f28ff6f 100644
--- a/net/mac80211/cfg.c
+++ b/net/mac80211/cfg.c
@@ -1549,7 +1549,11 @@ static int ieee80211_mgmt_tx(struct wiphy *wiphy, struct net_device *dev,
1549 1549
1550 switch (sdata->vif.type) { 1550 switch (sdata->vif.type) {
1551 case NL80211_IFTYPE_ADHOC: 1551 case NL80211_IFTYPE_ADHOC:
1552 if (mgmt->u.action.category == WLAN_CATEGORY_PUBLIC) 1552 case NL80211_IFTYPE_AP:
1553 case NL80211_IFTYPE_AP_VLAN:
1554 case NL80211_IFTYPE_P2P_GO:
1555 if (!ieee80211_is_action(mgmt->frame_control) ||
1556 mgmt->u.action.category == WLAN_CATEGORY_PUBLIC)
1553 break; 1557 break;
1554 rcu_read_lock(); 1558 rcu_read_lock();
1555 sta = sta_info_get(sdata, mgmt->da); 1559 sta = sta_info_get(sdata, mgmt->da);
@@ -1558,6 +1562,7 @@ static int ieee80211_mgmt_tx(struct wiphy *wiphy, struct net_device *dev,
1558 return -ENOLINK; 1562 return -ENOLINK;
1559 break; 1563 break;
1560 case NL80211_IFTYPE_STATION: 1564 case NL80211_IFTYPE_STATION:
1565 case NL80211_IFTYPE_P2P_CLIENT:
1561 break; 1566 break;
1562 default: 1567 default:
1563 return -EOPNOTSUPP; 1568 return -EOPNOTSUPP;