From 665c26fbfa839aefa17124ac2f607c306e0de4fd Mon Sep 17 00:00:00 2001 From: Reyk Floeter Date: Tue, 15 Feb 2005 19:44:16 +0000 Subject: 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 --- sys/net80211/ieee80211_var.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/net80211/ieee80211_var.h') 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 */ -- cgit v1.2.3