From: Marcel Holtmann <marcel@holtmann.org>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: linux-wireless@vger.kernel.org, Marcel Holtmann <marcel@holtmann.org>
Subject: [PATCH] add option to dump unknown IEs with scan command
Date: Sat, 2 May 2009 13:07:24 -0700 [thread overview]
Message-ID: <1241294844-27746-1-git-send-email-marcel@holtmann.org> (raw)
---
scan.c | 13 ++++++++++---
1 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/scan.c b/scan.c
index 48f803a..91e94ed 100644
--- a/scan.c
+++ b/scan.c
@@ -340,12 +340,13 @@ static int handle_scan_combined(struct nl80211_state *state,
NULL,
"scan",
"dump",
+ NULL,
};
static const __u32 cmds[] = {
NL80211_CMD_NEW_SCAN_RESULTS,
NL80211_CMD_SCAN_ABORTED,
};
- int err;
+ int dump_argc, err;
trig_argv[0] = argv[0];
err = handle_cmd(state, II_NETDEV, ARRAY_SIZE(trig_argv), trig_argv);
@@ -382,7 +383,13 @@ static int handle_scan_combined(struct nl80211_state *state,
return 0;
}
+ if (argc == 3 && !strcmp(argv[2], "-u")) {
+ dump_argc = 4;
+ dump_argv[3] = "-u";
+ } else
+ dump_argc = 3;
+
dump_argv[0] = argv[0];
- return handle_cmd(state, II_NETDEV, ARRAY_SIZE(dump_argv), dump_argv);
+ return handle_cmd(state, II_NETDEV, dump_argc, dump_argv);
}
-TOPLEVEL(scan, NULL, 0, 0, CIB_NETDEV, handle_scan_combined);
+TOPLEVEL(scan, "[-u]", 0, 0, CIB_NETDEV, handle_scan_combined);
--
1.6.0.6
next reply other threads:[~2009-05-02 20:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-02 20:07 Marcel Holtmann [this message]
2009-05-02 21:08 ` [PATCH] add option to dump unknown IEs with scan command 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=1241294844-27746-1-git-send-email-marcel@holtmann.org \
--to=marcel@holtmann.org \
--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