Date: Fri, 19 Nov 2004 22:12:58 GMT From: Sam Leffler <sam@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 65473 for review Message-ID: <200411192212.iAJMCw7g085377@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=65473 Change 65473 by sam@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';
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200411192212.iAJMCw7g085377>