Skip to content

Commit

Permalink
mac80211: warn only once if ampdu_action isn't assigned
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Chaitanya authored and Johannes Berg committed Dec 7, 2012
1 parent 0b7dff4 commit 50c16e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/mac80211/agg-tx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) ||
Expand Down

0 comments on commit 50c16e2

Please sign in to comment.