aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/driver-ops.h
diff options
context:
space:
mode:
Diffstat (limited to 'net/mac80211/driver-ops.h')
-rw-r--r--net/mac80211/driver-ops.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/mac80211/driver-ops.h b/net/mac80211/driver-ops.h
index 8ad40f68f2c3..492c08c27c5f 100644
--- a/net/mac80211/driver-ops.h
+++ b/net/mac80211/driver-ops.h
@@ -101,7 +101,8 @@ static inline int drv_add_interface(struct ieee80211_local *local,
101 might_sleep(); 101 might_sleep();
102 102
103 if (WARN_ON(sdata->vif.type == NL80211_IFTYPE_AP_VLAN || 103 if (WARN_ON(sdata->vif.type == NL80211_IFTYPE_AP_VLAN ||
104 sdata->vif.type == NL80211_IFTYPE_MONITOR)) 104 (sdata->vif.type == NL80211_IFTYPE_MONITOR &&
105 !(local->hw.flags & IEEE80211_HW_WANT_MONITOR_VIF))))
105 return -EINVAL; 106 return -EINVAL;
106 107
107 trace_drv_add_interface(local, sdata); 108 trace_drv_add_interface(local, sdata);