aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorAdrian Chadd <adrian@FreeBSD.org>2011-07-21 14:25:12 +0000
committerAdrian Chadd <adrian@FreeBSD.org>2011-07-21 14:25:12 +0000
commitf51c84eaf6cb192c4008815acb618cab42b3a2c6 (patch)
tree8f2ba5d25e176aa32519d24a3958962982acd2d2 /sys
parent09ac182ca55f5ac73b467896476f158aa476c9a3 (diff)
downloadsrc-f51c84eaf6cb192c4008815acb618cab42b3a2c6.tar.gz
src-f51c84eaf6cb192c4008815acb618cab42b3a2c6.zip
This links in the ath dfs ioctl into the driver and defines the
ioctl interface for DFS modules to use. Since there's no open source dfs code yet, this doesn't introduce any operational changes. Approved by: re (kib)
Notes
Notes: svn path=/head/; revision=224245
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/ath/if_ath.c3
-rw-r--r--sys/dev/ath/if_athioctl.h31
2 files changed, 34 insertions, 0 deletions
diff --git a/sys/dev/ath/if_ath.c b/sys/dev/ath/if_ath.c
index 35592d9b47ad..ec54079356e8 100644
--- a/sys/dev/ath/if_ath.c
+++ b/sys/dev/ath/if_ath.c
@@ -5344,6 +5344,9 @@ ath_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
case SIOCGATHDIAG:
error = ath_ioctl_diag(sc, (struct ath_diag *) ifr);
break;
+ case SIOCGATHPHYERR:
+ error = ath_ioctl_phyerr(sc,(struct ath_diag*) ifr);
+ break;
#endif
case SIOCGIFADDR:
error = ether_ioctl(ifp, cmd, data);
diff --git a/sys/dev/ath/if_athioctl.h b/sys/dev/ath/if_athioctl.h
index 98dd03791d99..4b50d0d8265f 100644
--- a/sys/dev/ath/if_athioctl.h
+++ b/sys/dev/ath/if_athioctl.h
@@ -154,6 +154,7 @@ struct ath_diag {
};
#define SIOCGATHDIAG _IOWR('i', 138, struct ath_diag)
+#define SIOCGATHPHYERR _IOWR('i', 140, struct ath_diag)
/*
* Radio capture format.
@@ -205,4 +206,34 @@ struct ath_tx_radiotap_header {
int8_t wt_chan_maxpow;
} __packed;
+/*
+ * DFS ioctl commands
+ */
+
+#define DFS_SET_THRESH 2
+#define DFS_GET_THRESH 3
+#define DFS_RADARDETECTS 6
+
+/*
+ * DFS ioctl parameter types
+ */
+#define DFS_PARAM_FIRPWR 1
+#define DFS_PARAM_RRSSI 2
+#define DFS_PARAM_HEIGHT 3
+#define DFS_PARAM_PRSSI 4
+#define DFS_PARAM_INBAND 5
+#define DFS_PARAM_NOL 6 /* XXX not used in FreeBSD */
+#define DFS_PARAM_RELSTEP_EN 7
+#define DFS_PARAM_RELSTEP 8
+#define DFS_PARAM_RELPWR_EN 9
+#define DFS_PARAM_RELPWR 10
+#define DFS_PARAM_MAXLEN 11
+#define DFS_PARAM_USEFIR128 12
+#define DFS_PARAM_BLOCKRADAR 13
+#define DFS_PARAM_MAXRSSI_EN 14
+
+/* FreeBSD-specific start at 32 */
+#define DFS_PARAM_ENABLE 32
+#define DFS_PARAM_EN_EXTCH 33
+
#endif /* _DEV_ATH_ATHIOCTL_H */