Linux wireless drivers development
 help / color / mirror / Atom feed
From: Bing Zhao <bzhao@marvell.com>
To: <linux-wireless@vger.kernel.org>
Cc: Johannes Berg <johannes@sipsolutions.net>,
	Bing Zhao <bzhao@marvell.com>,
	Amitkumar Karwar <akarwar@marvell.com>
Subject: [PATCH] iw: correction in coalesce condition display message
Date: Mon, 5 Aug 2013 15:06:06 -0700	[thread overview]
Message-ID: <1375740366-8986-1-git-send-email-bzhao@marvell.com> (raw)

From: Amitkumar Karwar <akarwar@marvell.com>

NL80211_COALESCE_CONDITION_MATCH is 0 and
NL80211_COALESCE_CONDITION_NO_MATCH is 1.
Hence this change is required

Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
---
 coalesce.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/coalesce.c b/coalesce.c
index 22d1534..0239915 100644
--- a/coalesce.c
+++ b/coalesce.c
@@ -175,7 +175,7 @@ COMMAND(coalesce, enable, "<config-file>",
 	"  patterns=<[offset1+]<pattern1>,<[offset2+]<pattern2>,...>\n"
 	"  ...\n"
 	"delay: maximum coalescing delay in msec.\n"
-	"condition: 0/1 i.e. 'not match'/'match' the patterns\n"
+	"condition: 1/0 i.e. 'not match'/'match' the patterns\n"
 	"patterns: each pattern is given as a bytestring with '-' in\n"
 	"places where any byte may be present, e.g. 00:11:22:-:44 will\n"
 	"match 00:11:22:33:44 and 00:11:22:33:ff:44 etc. Offset and\n"
@@ -224,9 +224,9 @@ static int print_coalesce_handler(struct nl_msg *msg, void *arg)
 
 		printf("Rule - max coalescing delay: %dmsec condition:", delay);
 		if (condition)
-			printf("match\n");
-		else
 			printf("not match\n");
+		else
+			printf("match\n");
 
 		if (ruleattr[NL80211_ATTR_COALESCE_RULE_PKT_PATTERN]) {
 			nla_for_each_nested(pattern,
-- 
1.8.0


             reply	other threads:[~2013-08-05 22:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-05 22:06 Bing Zhao [this message]
2013-08-09 13:14 ` [PATCH] iw: correction in coalesce condition display message Johannes Berg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1375740366-8986-1-git-send-email-bzhao@marvell.com \
    --to=bzhao@marvell.com \
    --cc=akarwar@marvell.com \
    --cc=johannes@sipsolutions.net \
    --cc=linux-wireless@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox