PERFORCE change 155801 for review

Weongyo Jeong weongyo at FreeBSD.org
Thu Jan 8 04:58:30 UTC 2009


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

Change 155801 by weongyo at weongyo_ws on 2009/01/08 04:58:16

	check the value directly.

Affected files ...

.. //depot/projects/vap/sys/dev/usb/if_urtw.c#15 edit

Differences ...

==== //depot/projects/vap/sys/dev/usb/if_urtw.c#15 (text+ko) ====

@@ -2770,7 +2770,6 @@
 {
 	struct ieee80211com *ic = sc->sc_ifp->if_l2com;
 	struct ieee80211_channel *c = ic->ic_curchan;
-	short gset = (IEEE80211_IS_CHAN_G(c)) ? 1 : 0;
 	usbd_status error;
 
 	error = urtw_8225_set_txpwrlvl(sc, chan);
@@ -2787,7 +2786,7 @@
 	else
 		urtw_write8_m(sc, URTW_SLOT, 0x14);
 	
-	if (gset) {
+	if (IEEE80211_IS_CHAN_G(c)) {
 		/* for G */
 		urtw_write8_m(sc, URTW_DIFS, 0x14);
 		urtw_write8_m(sc, URTW_EIFS, 0x5b - 0x14);
@@ -3177,7 +3176,6 @@
 {
 	struct ieee80211com *ic = sc->sc_ifp->if_l2com;
 	struct ieee80211_channel *c = ic->ic_curchan;
-	short gset = (IEEE80211_IS_CHAN_G(c)) ? 1 : 0;
 	usbd_status error;
 
 	error = urtw_8225v2_set_txpwrlvl(sc, chan);
@@ -3195,7 +3193,7 @@
 	else
 		urtw_write8_m(sc, URTW_SLOT, 0x14);
 	
-	if (gset) {
+	if (IEEE80211_IS_CHAN_G(c)) {
 		/* for G */
 		urtw_write8_m(sc, URTW_DIFS, 0x14);
 		urtw_write8_m(sc, URTW_EIFS, 0x5b - 0x14);


More information about the p4-projects mailing list