aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorAdrian Chadd <adrian@FreeBSD.org>2016-02-07 04:28:03 +0000
committerAdrian Chadd <adrian@FreeBSD.org>2016-02-07 04:28:03 +0000
commit65f41e586bc547d7571d2b01c79bd127b84b3ebf (patch)
tree0cee402aa830941748efba2313b125db41104c38 /tools
parent062b0cc0e66539a2057589e2f3baf71d4d642e29 (diff)
downloadsrc-65f41e586bc547d7571d2b01c79bd127b84b3ebf.tar.gz
src-65f41e586bc547d7571d2b01c79bd127b84b3ebf.zip
Remove the hard-coded 'ath0' strings and use ATH_DEFAULT.
Remove the duplicate ATH_DEFAULT fields. The build bits should be including ../Makefile.inc as appropriate.
Notes
Notes: svn path=/head/; revision=295363
Diffstat (limited to 'tools')
-rw-r--r--tools/tools/ath/athaggrstats/main.c2
-rw-r--r--tools/tools/ath/athdebug/athdebug.c4
-rw-r--r--tools/tools/ath/athradar/athradar.c4
-rw-r--r--tools/tools/ath/athratestats/main.c2
-rw-r--r--tools/tools/ath/athspectral/athspectral.c4
-rw-r--r--tools/tools/ath/athstats/main.c2
6 files changed, 5 insertions, 13 deletions
diff --git a/tools/tools/ath/athaggrstats/main.c b/tools/tools/ath/athaggrstats/main.c
index 95e7917455ba..6a0de98b0069 100644
--- a/tools/tools/ath/athaggrstats/main.c
+++ b/tools/tools/ath/athaggrstats/main.c
@@ -89,7 +89,7 @@ main(int argc, char *argv[])
ifname = getenv("ATH");
if (ifname == NULL)
- ifname = "ath0";
+ ifname = ATH_DEFAULT;
wf = athaggrstats_new(ifname, getfmt("default"));
while ((c = getopt(argc, argv, "bi:lo:z")) != -1) {
switch (c) {
diff --git a/tools/tools/ath/athdebug/athdebug.c b/tools/tools/ath/athdebug/athdebug.c
index bcdbcc8aae47..b28f0432f435 100644
--- a/tools/tools/ath/athdebug/athdebug.c
+++ b/tools/tools/ath/athdebug/athdebug.c
@@ -31,7 +31,7 @@
/*
* athdebug [-i interface] flags
- * (default interface is ath0).
+ * (default interface is wlan0).
*/
#include <sys/param.h>
@@ -156,7 +156,7 @@ main(int argc, char *argv[])
ifname = getenv("ATH");
if (ifname == NULL)
- ifname = "ath0";
+ ifname = ATH_DEFAULT;
progname = argv[0];
if (argc > 1) {
if (strcmp(argv[1], "-i") == 0) {
diff --git a/tools/tools/ath/athradar/athradar.c b/tools/tools/ath/athradar/athradar.c
index f40e1bd09be5..69f441658a85 100644
--- a/tools/tools/ath/athradar/athradar.c
+++ b/tools/tools/ath/athradar/athradar.c
@@ -30,10 +30,6 @@
#include "ah.h"
#include "ah_internal.h"
-#ifndef ATH_DEFAULT
-#define ATH_DEFAULT "ath0"
-#endif
-
#include <getopt.h>
#include <errno.h>
#include <err.h>
diff --git a/tools/tools/ath/athratestats/main.c b/tools/tools/ath/athratestats/main.c
index 3881e8543be0..b3f85f758577 100644
--- a/tools/tools/ath/athratestats/main.c
+++ b/tools/tools/ath/athratestats/main.c
@@ -310,7 +310,7 @@ main(int argc, char *argv[])
ifname = getenv("ATH");
if (ifname == NULL)
- ifname = "ath0";
+ ifname = ATH_DEFAULT;
while ((c = getopt(argc, argv, "ahi:m:s:")) != -1) {
switch (c) {
diff --git a/tools/tools/ath/athspectral/athspectral.c b/tools/tools/ath/athspectral/athspectral.c
index 1ec908562aba..91045d022443 100644
--- a/tools/tools/ath/athspectral/athspectral.c
+++ b/tools/tools/ath/athspectral/athspectral.c
@@ -30,10 +30,6 @@
#include "ah.h"
#include "ah_internal.h"
-#ifndef ATH_DEFAULT
-#define ATH_DEFAULT "ath0"
-#endif
-
#include <getopt.h>
#include <errno.h>
#include <err.h>
diff --git a/tools/tools/ath/athstats/main.c b/tools/tools/ath/athstats/main.c
index bf0323d8715c..29e86365c83b 100644
--- a/tools/tools/ath/athstats/main.c
+++ b/tools/tools/ath/athstats/main.c
@@ -94,7 +94,7 @@ main(int argc, char *argv[])
ifname = getenv("ATH");
if (ifname == NULL)
- ifname = "ath0";
+ ifname = ATH_DEFAULT;
wf = athstats_new(ifname, getfmt("default"));
while ((c = getopt(argc, argv, "bi:lo:z")) != -1) {
switch (c) {