Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Dec 2004 17:31:31 GMT
From:      Sam Leffler <sam@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 67907 for review
Message-ID:  <200412301731.iBUHVVNP030142@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=67907

Change 67907 by sam@sam_ebb on 2004/12/30 17:31:04

	o slight simplification to previous change
	o correct some comments and and #undef

Affected files ...

.. //depot/projects/wifi/sys/dev/ath/if_ath.c#51 edit

Differences ...

==== //depot/projects/wifi/sys/dev/ath/if_ath.c#51 (text+ko) ====

@@ -2763,7 +2763,7 @@
 	if (qnum == -1) {
 		/*
 		 * NB: don't print a message, this happens 
-		 * ormally on parts with too few tx queues
+		 * normally on parts with too few tx queues
 		 */
 		return NULL;
 	}
@@ -3685,7 +3685,7 @@
 		ath_setcurmode(sc, mode);
 	/*
 	 * Update BPF state.  NB: ethereal et. al. don't handle
-	 * merged flags well, so pick a mode for their use.
+	 * merged flags well so pick a unique mode for their use.
 	 */
 	if (IEEE80211_IS_CHAN_A(chan))
 		flags = IEEE80211_CHAN_A;
@@ -3693,10 +3693,8 @@
 	else if (IEEE80211_IS_CHAN_G(chan) ||
 	    IEEE80211_IS_CHAN_PUREG(chan))
 		flags = IEEE80211_CHAN_G;
-	else if (IEEE80211_IS_CHAN_B(chan))
+	else
 		flags = IEEE80211_CHAN_B;
-	else
-		flags = 0;
 	if (IEEE80211_IS_CHAN_T(chan))
 		flags |= IEEE80211_CHAN_TURBO;
 	sc->sc_tx_th.wt_chan_freq = sc->sc_rx_th.wr_chan_freq =
@@ -4318,7 +4316,7 @@
 	}
 	ATH_UNLOCK(sc);
 	return error;
-#undef IS_UP
+#undef IS_RUNNING
 }
 
 static int



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