]> git.ipfire.org Git - thirdparty/iw.git/commitdiff
iw: correction in coalesce condition display message
authorAmitkumar Karwar <akarwar@marvell.com>
Mon, 5 Aug 2013 22:06:06 +0000 (15:06 -0700)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 9 Aug 2013 13:13:58 +0000 (15:13 +0200)
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

index 22d153485d767978dc84c9276ba823e9603ff293..02399151bf36a7f0306e3cf0a39953653420ceb4 100644 (file)
@@ -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,