[email protected]
[Top] [All Lists]

PERFORCE change 113791 for review

Subject: PERFORCE change 113791 for review
From: Sam Leffler
Date: Wed, 31 Jan 2007 20:35:31 GMT
http://perforce.freebsd.org/chv.cgi?CH=113791

Change 113791 by [email protected]_ebb on 2007/01/31 20:35:29

        standardize on .5 dBm for min/max channel power; we
        only need 1 dBm units for 11h but there's no reason
        to discard extra information that's useful to users

Affected files ...

.. //depot/projects/wifi/sys/net80211/_ieee80211.h#15 edit
.. //depot/projects/wifi/sys/net80211/ieee80211.c#40 edit

Differences ...

==== //depot/projects/wifi/sys/net80211/_ieee80211.h#15 (text+ko) ====

@@ -109,8 +109,8 @@
        u_int16_t       ic_flags;       /* see below */
        u_int8_t        ic_ieee;        /* IEEE channel number */
        int8_t          ic_maxregpower; /* maximum regulatory tx power in dBm */
-       int8_t          ic_maxpower;    /* maximum tx power in dBm */
-       int8_t          ic_minpower;    /* minimum tx power in dBm */
+       int8_t          ic_maxpower;    /* maximum tx power in .5 dBm */
+       int8_t          ic_minpower;    /* minimum tx power in .5 dBm */
 };
 
 #define        IEEE80211_CHAN_MAX      255

==== //depot/projects/wifi/sys/net80211/ieee80211.c#40 (text+ko) ====

@@ -612,11 +612,12 @@
                        cw = 5;
                else
                        cw = 20;
-               printf("%4d  %4d%c %2d  %6d  %6d  %6d\n"
+               printf("%4d  %4d%c %2d  %6d  %4d.%d  %4d.%d\n"
                        , c->ic_ieee, c->ic_freq, type
                        , cw
                        , c->ic_maxregpower
-                       , c->ic_minpower, c->ic_maxpower
+                       , c->ic_minpower / 2, c->ic_minpower & 1 ? 5 : 0
+                       , c->ic_maxpower / 2, c->ic_maxpower & 1 ? 5 : 0
                );
        }
 }
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/p4-projects
To unsubscribe, send any mail to "[email protected]"

<Prev in Thread] Current Thread [Next in Thread>
  • PERFORCE change 113791 for review, Sam Leffler <=