Date: Thu, 25 Dec 2008 04:29:40 +0000 (UTC) From: Weongyo Jeong <weongyo@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r186484 - head/sys/dev/usb Message-ID: <200812250429.mBP4TeBr003274@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: weongyo Date: Thu Dec 25 04:29:40 2008 New Revision: 186484 URL: http://svn.freebsd.org/changeset/base/186484 Log: fix a silly bug that I missed a for-loop to initialize AL2230S PHY. Reported by: Hans Petter Selasky <hselasky_at_c2i.net> Modified: head/sys/dev/usb/if_zyd.c Modified: head/sys/dev/usb/if_zyd.c ============================================================================== --- head/sys/dev/usb/if_zyd.c Thu Dec 25 02:14:25 2008 (r186483) +++ head/sys/dev/usb/if_zyd.c Thu Dec 25 04:29:40 2008 (r186484) @@ -1061,8 +1061,10 @@ zyd_al2230_init_b(struct zyd_rf *rf) for (i = 0; i < N(phyini); i++) zyd_write16_m(sc, phyini[i].reg, phyini[i].val); - if (sc->sc_rfrev == ZYD_RF_AL2230S || sc->sc_al2230s != 0) - zyd_write16_m(sc, phy2230s[i].reg, phy2230s[i].val); + if (sc->sc_rfrev == ZYD_RF_AL2230S || sc->sc_al2230s != 0) { + for (i = 0; i < N(phy2230s); i++) + zyd_write16_m(sc, phy2230s[i].reg, phy2230s[i].val); + } for (i = 0; i < 3; i++) { error = zyd_rfwrite_cr(sc, zyd_al2230_chtable[0][i]);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200812250429.mBP4TeBr003274>