Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 31 Jan 2004 19:36:19 -0800 (PST)
From:      Sam Leffler <sam@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 46286 for review
Message-ID:  <200402010336.i113aJfh030909@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=46286

Change 46286 by sam@sam_ebb on 2004/01/31 19:36:13

	add ioctl to control the transmit power

Affected files ...

.. //depot/projects/netperf+sockets/sys/net80211/ieee80211_ioctl.c#14 edit
.. //depot/projects/netperf+sockets/sys/net80211/ieee80211_ioctl.h#7 edit

Differences ...

==== //depot/projects/netperf+sockets/sys/net80211/ieee80211_ioctl.c#14 (text+ko) ====

@@ -900,6 +900,9 @@
 		case IEEE80211_IOC_PROTECTION:
 			ireq->i_val = ic->ic_protmode;
 			break;
+		case IEEE80211_IOC_TXPOWER:
+			ireq->i_val = ic->ic_bss->ic_txpower;
+			break;
 		default:
 			error = EINVAL;
 		}
@@ -1060,6 +1063,11 @@
 			ic->ic_protmode = ireq->i_val;
 			error = ieee80211_reset(ic);	/* ???XXX */
 			break;
+		case IEEE80211_IOC_TXPOWER:
+			/* XXX units? */
+			ic->ic_bss->ic_txpower = ic->ic_ival;
+			error = ieee80211_reset(ic);
+			break;
 		default:
 			error = EINVAL;
 			break;

==== //depot/projects/netperf+sockets/sys/net80211/ieee80211_ioctl.h#7 (text+ko) ====

@@ -166,6 +166,7 @@
 #define 	IEEE80211_PROTECTION_OFF	0
 #define 	IEEE80211_PROTECTION_CTS	1
 #define 	IEEE80211_PROTECTION_RTSCTS	2
+#define	IEEE80211_IOC_TXPOWER		14
 
 #ifndef IEEE80211_CHAN_ANY
 #define	IEEE80211_CHAN_ANY	0xffff		/* token for ``any channel'' */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200402010336.i113aJfh030909>