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;
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"