PERFORCE change 46286 for review

Sam Leffler sam at FreeBSD.org
Sat Jan 31 19:36:21 PST 2004


http://perforce.freebsd.org/chv.cgi?CH=46286

Change 46286 by sam at 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'' */


More information about the p4-projects mailing list