2012-12-05 12:27:42

by Chaitanya

[permalink] [raw]
Subject: [PATCH] mac80211: fix the multiple warnings for budding chipsets without ampdu_action defined

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 <[email protected]>
---
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) ||


2012-12-07 09:29:41

by Chaitanya

[permalink] [raw]
Subject: Re: [PATCH] mac80211: fix the multiple warnings for budding chipsets without ampdu_action defined

Great to hear that johannes.
Finally after exhausting all options used the sendmail and it worked :-)

On Friday 07 December 2012 01:44 PM, Johannes Berg wrote:
> On Fri, 2012-12-07 at 12:19 +0530, Chaitanya wrote:
>> 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
> Yay, this worked. Applied with a changed commit log.
>
> johannes
>


2012-12-07 08:13:43

by Johannes Berg

[permalink] [raw]
Subject: Re: [PATCH] mac80211: fix the multiple warnings for budding chipsets without ampdu_action defined

On Fri, 2012-12-07 at 12:19 +0530, Chaitanya wrote:
>
> 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

Yay, this worked. Applied with a changed commit log.

johannes


2012-12-05 12:32:10

by Chaitanya

[permalink] [raw]
Subject: Re: [PATCH] mac80211: fix the multiple warnings for budding chipsets without ampdu_action defined

Hmm..yes true i need to fix my environment.
But i just tested this patch manually and it worked.

Let me check this once again, will fix this and send it again.

Sorry for the trouble caused.


On Wednesday 05 December 2012 06:00 PM, Johannes Berg wrote:
> Hm, no tabs it seems, so this doesn't apply either.
>
> I'd just fix it myself for this simple a thing, but you'll probably
> eventually want to submit more complicated patches ...


2012-12-05 12:30:19

by Johannes Berg

[permalink] [raw]
Subject: Re: [PATCH] mac80211: fix the multiple warnings for budding chipsets without ampdu_action defined

On Wed, 2012-12-05 at 17:57 +0530, Chaitanya wrote:

> --- 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;

Hm, no tabs it seems, so this doesn't apply either.

I'd just fix it myself for this simple a thing, but you'll probably
eventually want to submit more complicated patches ...

johannes