linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mac80211: fix the multiple warnings for budding chipsets without ampdu_action defined
@ 2012-12-06  8:16 Chaitanya
  2012-12-06  8:51 ` Stanislaw Gruszka
  0 siblings, 1 reply; 10+ messages in thread
From: Chaitanya @ 2012-12-06  8:16 UTC (permalink / raw)
  To: Johannes Berg; +Cc: linux-wireless

Warn once should suffice.

Eg: our driver doesn't support the ampdu_action yet, so
seeing a lot of warnings, hence the check for any
new drivers to avoid messing the kernel log.

Changed the mail client to thunder bird to avoid whitespace issues.
Changed the subject and also the signing off to use offical mail.
Changed the setting for tabs (width=8, noexpandtab) and whitespaces.

Signed-off-by: T Krishna Chaitanya <chaitanyatk@posedge.com>
---
net/mac80211/agg-tx.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/net/mac80211/agg-tx.c b/net/mac80211/agg-tx.c
index 4152ed1..eb9df22 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) ||

^ permalink raw reply related	[flat|nested] 10+ messages in thread
* [PATCH] mac80211: fix the multiple warnings for budding chipsets without ampdu_action defined
@ 2012-12-05 12:27 Chaitanya
  2012-12-05 12:30 ` Johannes Berg
  0 siblings, 1 reply; 10+ messages in thread
From: Chaitanya @ 2012-12-05 12:27 UTC (permalink / raw)
  To: johannes; +Cc: linux-wireless

Warn once should suffice.

Eg: our driver doesn't support the ampdu_action yet, so
seeing a lot of warnings, hence the check for any
new drivers to avoid messing the kernel log.

Changed the mail client to thunder bird to avoid whitespace issues.
Changed the subject and also the signing off to use offical mail.

Signed-off-by: T Krushna Chaitanya <chaitanyatk@posedge.com>
---
net/mac80211/agg-tx.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/net/mac80211/agg-tx.c b/net/mac80211/agg-tx.c
index 4152ed1..eb9df22 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) ||

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2012-12-07  9:29 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <201212070645.qB76jSjN013395@chaitanya-desktop>
2012-12-07  6:49 ` [PATCH] mac80211: fix the multiple warnings for budding chipsets without ampdu_action defined Chaitanya
2012-12-07  8:14   ` Johannes Berg
2012-12-07  9:29     ` Chaitanya
2012-12-06  8:16 Chaitanya
2012-12-06  8:51 ` Stanislaw Gruszka
2012-12-06  9:37   ` Chaitanya
2012-12-06 10:40     ` Johannes Berg
  -- strict thread matches above, loose matches on Subject: below --
2012-12-05 12:27 Chaitanya
2012-12-05 12:30 ` Johannes Berg
2012-12-05 12:32   ` Chaitanya

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).