summaryrefslogtreecommitdiff
path: root/sys/net80211/ieee80211_var.h
diff options
context:
space:
mode:
authorReyk Floeter <reyk@cvs.openbsd.org>2005-02-15 19:44:16 +0000
committerReyk Floeter <reyk@cvs.openbsd.org>2005-02-15 19:44:16 +0000
commit665c26fbfa839aefa17124ac2f607c306e0de4fd (patch)
treeb12344918126d0a5f315a1a641fefcda1f35c259 /sys/net80211/ieee80211_var.h
parent61223f4f3d7070ebf88b91c6fdcc6892ed7bdbbd (diff)
add the manual tx power option. this is supported by some prism2/2.5/3
cards in hostap mode but it depends on the firmware version. support for other wireless chipsets will be added in the future using the net80211-framework. ok robert@ bob@ danh@, tested by some others
Diffstat (limited to 'sys/net80211/ieee80211_var.h')
-rw-r--r--sys/net80211/ieee80211_var.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/net80211/ieee80211_var.h b/sys/net80211/ieee80211_var.h
index 8903d3dcebc..26fd666bbd4 100644
--- a/sys/net80211/ieee80211_var.h
+++ b/sys/net80211/ieee80211_var.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ieee80211_var.h,v 1.4 2004/12/25 20:40:19 deraadt Exp $ */
+/* $OpenBSD: ieee80211_var.h,v 1.5 2005/02/15 19:44:15 reyk Exp $ */
/* $NetBSD: ieee80211_var.h,v 1.7 2004/05/06 03:07:10 dyoung Exp $ */
/*-
@@ -53,7 +53,7 @@
((struct ieee80211_channel *) IEEE80211_CHAN_ANY)
#define IEEE80211_TXPOWER_MAX 100 /* max power */
-#define IEEE80211_TXPOWER_MIN 0 /* kill radio (if possible) */
+#define IEEE80211_TXPOWER_MIN -50 /* kill radio (if possible) */
enum ieee80211_phytype {
IEEE80211_T_DS, /* direct sequence spread spectrum */
@@ -225,7 +225,7 @@ struct ieee80211com {
u_int16_t ic_txmin; /* min tx retry count */
u_int16_t ic_txmax; /* max tx retry count */
u_int16_t ic_txlifetime; /* tx lifetime */
- u_int16_t ic_txpower; /* tx power setting (dbM) */
+ int16_t ic_txpower; /* tx power setting (dBm) */
u_int16_t ic_bmisstimeout;/* beacon miss threshold (ms) */
int ic_mgt_timer; /* mgmt timeout */
int ic_inact_timer; /* inactivity timer wait */