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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c
index dbf0563c397d..81087281b031 100644
--- a/net/mac80211/cfg.c
+++ b/net/mac80211/cfg.c
@@ -674,7 +674,7 @@ static int ieee80211_add_station(struct wiphy *wiphy, struct net_device *dev,
674 if (params->vlan) { 674 if (params->vlan) {
675 sdata = IEEE80211_DEV_TO_SUB_IF(params->vlan); 675 sdata = IEEE80211_DEV_TO_SUB_IF(params->vlan);
676 676
677 if (sdata->vif.type != IEEE80211_IF_TYPE_VLAN || 677 if (sdata->vif.type != IEEE80211_IF_TYPE_VLAN &&
678 sdata->vif.type != IEEE80211_IF_TYPE_AP) 678 sdata->vif.type != IEEE80211_IF_TYPE_AP)
679 return -EINVAL; 679 return -EINVAL;
680 } else 680 } else
@@ -762,7 +762,7 @@ static int ieee80211_change_station(struct wiphy *wiphy,
762 if (params->vlan && params->vlan != sta->sdata->dev) { 762 if (params->vlan && params->vlan != sta->sdata->dev) {
763 vlansdata = IEEE80211_DEV_TO_SUB_IF(params->vlan); 763 vlansdata = IEEE80211_DEV_TO_SUB_IF(params->vlan);
764 764
765 if (vlansdata->vif.type != IEEE80211_IF_TYPE_VLAN || 765 if (vlansdata->vif.type != IEEE80211_IF_TYPE_VLAN &&
766 vlansdata->vif.type != IEEE80211_IF_TYPE_AP) { 766 vlansdata->vif.type != IEEE80211_IF_TYPE_AP) {
767 rcu_read_unlock(); 767 rcu_read_unlock();
768 return -EINVAL; 768 return -EINVAL;