Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Apr 2013 06:59:10 +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: r249639 - head/sys/dev/ath
Message-ID:  <201304190659.r3J6xABE091780@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: adrian
Date: Fri Apr 19 06:59:10 2013
New Revision: 249639
URL: http://svnweb.freebsd.org/changeset/base/249639

Log:
  Use uint32_t for fields that are fetched via ath_hal_getcapability().

Modified:
  head/sys/dev/ath/if_ath.c
  head/sys/dev/ath/if_athvar.h

Modified: head/sys/dev/ath/if_ath.c
==============================================================================
--- head/sys/dev/ath/if_ath.c	Fri Apr 19 05:50:57 2013	(r249638)
+++ head/sys/dev/ath/if_ath.c	Fri Apr 19 06:59:10 2013	(r249639)
@@ -739,7 +739,7 @@ ath_attach(u_int16_t devid, struct ath_s
 	 */
 	if (ath_hal_getcapability(ah, HAL_CAP_HT, 0, NULL) == HAL_OK &&
 	    (wmodes & (HAL_MODE_HT20 | HAL_MODE_HT40))) {
-		int rxs, txs;
+		uint32_t rxs, txs;
 
 		device_printf(sc->sc_dev, "[HT] enabling HT modes\n");
 

Modified: head/sys/dev/ath/if_athvar.h
==============================================================================
--- head/sys/dev/ath/if_athvar.h	Fri Apr 19 05:50:57 2013	(r249638)
+++ head/sys/dev/ath/if_athvar.h	Fri Apr 19 06:59:10 2013	(r249639)
@@ -772,11 +772,11 @@ struct ath_softc {
 	u_int32_t		sc_avgtsfdeltap;/* TDMA slot adjust (+) */
 	u_int32_t		sc_avgtsfdeltam;/* TDMA slot adjust (-) */
 	uint16_t		*sc_eepromdata;	/* Local eeprom data, if AR9100 */
-	int			sc_txchainmask;	/* hardware TX chainmask */
-	int			sc_rxchainmask;	/* hardware RX chainmask */
-	int			sc_cur_txchainmask;	/* currently configured TX chainmask */
-	int			sc_cur_rxchainmask;	/* currently configured RX chainmask */
-	int			sc_rts_aggr_limit;	/* TX limit on RTS aggregates */
+	uint32_t		sc_txchainmask;	/* hardware TX chainmask */
+	uint32_t		sc_rxchainmask;	/* hardware RX chainmask */
+	uint32_t		sc_cur_txchainmask;	/* currently configured TX chainmask */
+	uint32_t		sc_cur_rxchainmask;	/* currently configured RX chainmask */
+	uint32_t		sc_rts_aggr_limit;	/* TX limit on RTS aggregates */
 	int			sc_aggr_limit;	/* TX limit on all aggregates */
 	int			sc_delim_min_pad;	/* Minimum delimiter count */
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201304190659.r3J6xABE091780>