summaryrefslogtreecommitdiffstats
path: root/net/mac80211/agg-tx.c
diff options
context:
space:
mode:
authorChaitanya <chaitanyatk@posedge.com>2012-12-07 12:19:34 +0530
committerJohannes Berg <johannes.berg@intel.com>2012-12-07 09:12:50 +0100
commit50c16e2251b63224c05e35d80d434a479a312b4a (patch)
tree01aba4cd32234aec79846d2c6dff5e8aa3acb3a6 /net/mac80211/agg-tx.c
parent0b7dff4faed07f55be2a98dd0eafc02623174236 (diff)
downloadlinux-stable-50c16e2251b63224c05e35d80d434a479a312b4a.tar.gz
linux-stable-50c16e2251b63224c05e35d80d434a479a312b4a.tar.bz2
linux-stable-50c16e2251b63224c05e35d80d434a479a312b4a.zip
mac80211: warn only once if ampdu_action isn't assigned
New drivers that might not support ampdu_action yet while in development cause a lot of warnings, use WARN_ON_ONCE instead. Signed-off-by: T Krushna Chaitanya <chaitanyatk@posedge.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/agg-tx.c')
-rw-r--r--net/mac80211/agg-tx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/agg-tx.c b/net/mac80211/agg-tx.c
index 4152ed1034b8..eb9df22418f0 100644
--- a/net/mac80211/agg-tx.c
+++ b/net/mac80211/agg-tx.c
@@ -445,7 +445,7 @@ int ieee80211_start_tx_ba_session(struct ieee80211_sta *pubsta, u16 tid,
trace_api_start_tx_ba_session(pubsta, tid);
- if (WARN_ON(!local->ops->ampdu_action))
+ if (WARN_ON_ONCE(!local->ops->ampdu_action))
return -EINVAL;
if ((tid >= IEEE80211_NUM_TIDS) ||