aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/mac80211/main.c')
-rw-r--r--net/mac80211/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/mac80211/main.c b/net/mac80211/main.c
index 6192caadfab9..f4fc540aac17 100644
--- a/net/mac80211/main.c
+++ b/net/mac80211/main.c
@@ -535,6 +535,9 @@ struct ieee80211_hw *ieee80211_alloc_hw(size_t priv_data_len,
535 int priv_size, i; 535 int priv_size, i;
536 struct wiphy *wiphy; 536 struct wiphy *wiphy;
537 537
538 if (WARN_ON(ops->sta_state && (ops->sta_add || ops->sta_remove)))
539 return NULL;
540
538 /* Ensure 32-byte alignment of our private data and hw private data. 541 /* Ensure 32-byte alignment of our private data and hw private data.
539 * We use the wiphy priv data for both our ieee80211_local and for 542 * We use the wiphy priv data for both our ieee80211_local and for
540 * the driver's private data 543 * the driver's private data