projects
/
platform
/
upstream
/
neard.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
35ef0c0
)
nfctool: Power up the device when start poll
author
Thierry Escande
<thierry.escande@linux.intel.com>
Fri, 3 May 2013 15:03:05 +0000
(17:03 +0200)
committer
Samuel Ortiz
<sameo@linux.intel.com>
Tue, 21 May 2013 10:39:41 +0000
(12:39 +0200)
with --poll, --enable is now implicit
tools/nfctool/main.c
patch
|
blob
|
history
diff --git
a/tools/nfctool/main.c
b/tools/nfctool/main.c
index
340f53b
..
ba9a83d
100644
(file)
--- a/
tools/nfctool/main.c
+++ b/
tools/nfctool/main.c
@@
-577,6
+577,9
@@
static int nfctool_options_parse(int argc, char **argv)
if (opts.enable_dev || opts.disable_dev)
opts.list = TRUE;
+ if (opts.poll)
+ opts.enable_dev = TRUE;
+
opts.need_netlink = opts.list || opts.poll ||
opts.set_param || opts.snl;