PERFORCE change 65473 for review
Sam Leffler
sam at FreeBSD.org
Fri Nov 19 14:12:59 PST 2004
http://perforce.freebsd.org/chv.cgi?CH=65473
Change 65473 by sam at sam_ebb on 2004/11/19 22:12:55
o by default report max tx power for channel instead of tx
power limit which is normally not interesting
o move tx power limit under -v
Affected files ...
.. //depot/projects/wifi/sbin/ifconfig/ifieee80211.c#14 edit
Differences ...
==== //depot/projects/wifi/sbin/ifconfig/ifieee80211.c#14 (text+ko) ====
@@ -1189,12 +1189,20 @@
}
}
- ireq.i_type = IEEE80211_IOC_TXPOWER;
+ ireq.i_type = IEEE80211_IOC_TXPOWMAX;
if (ioctl(s, SIOCG80211, &ireq) != -1) {
- printf("%ctxpower %d", spacer, ireq.i_val);
+ printf("%ctxpowmax %d", spacer, ireq.i_val);
spacer = ' ';
}
+ if (verbose) {
+ ireq.i_type = IEEE80211_IOC_TXPOWER;
+ if (ioctl(s, SIOCG80211, &ireq) != -1) {
+ printf("%ctxpower %d", spacer, ireq.i_val);
+ spacer = ' ';
+ }
+ }
+
if (spacer != '\t')
printf("\n");
spacer = '\t';
More information about the p4-projects
mailing list