Date: Fri, 29 Nov 2013 22:35:24 +0000 (UTC) From: Adrian Chadd <adrian@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r258759 - head/sys/dev/iwn Message-ID: <201311292235.rATMZO4w043452@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: adrian Date: Fri Nov 29 22:35:24 2013 New Revision: 258759 URL: http://svnweb.freebsd.org/changeset/base/258759 Log: Use the correct endian-ness accessor for this TLV field. (It's coming from firmware and thus it's defined as little-endian.) Modified: head/sys/dev/iwn/if_iwn.c Modified: head/sys/dev/iwn/if_iwn.c ============================================================================== --- head/sys/dev/iwn/if_iwn.c Fri Nov 29 22:24:57 2013 (r258758) +++ head/sys/dev/iwn/if_iwn.c Fri Nov 29 22:35:24 2013 (r258759) @@ -7474,7 +7474,7 @@ iwn_read_firmware_tlv(struct iwn_softc * sc->sc_flags |= IWN_FLAG_ENH_SENS; break; case IWN_FW_TLV_PHY_CALIB: - tmp = htole32(*ptr); + tmp = le32toh(*ptr); if (tmp < 253) { sc->reset_noise_gain = tmp; sc->noise_gain = tmp + 1;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201311292235.rATMZO4w043452>