Date: Thu, 8 Jan 2009 04:58:28 GMT From: Weongyo Jeong <weongyo@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 155801 for review Message-ID: <200901080458.n084wS3T042753@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=155801 Change 155801 by weongyo@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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200901080458.n084wS3T042753>