Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Jun 2007 01:59:52 GMT
From:      Andrew Thompson <thompsa@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 121554 for review
Message-ID:  <200706130159.l5D1xqva075441@repoman.freebsd.org>

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

Change 121554 by thompsa@thompsa_heff on 2007/06/13 01:58:56

	Sprinkle a few more basic debugging printfs.

Affected files ...

.. //depot/projects/wifi/sys/dev/wi/if_wi.c#35 edit

Differences ...

==== //depot/projects/wifi/sys/dev/wi/if_wi.c#35 (text+ko) ====

@@ -190,7 +190,7 @@
 
 #define	WI_DEBUG
 #ifdef WI_DEBUG
-static	int wi_debug = 0;
+static	int wi_debug = 100;
 SYSCTL_INT(_hw_wi, OID_AUTO, debug, CTLFLAG_RW, &wi_debug,
 	    0, "control debugging printfs");
 
@@ -674,6 +674,7 @@
 	int error = 0, wasenabled;
 
 
+	DPRINTF(("%s\n", __func__));
 
 	if (sc->wi_gone) 
 		return;
@@ -879,6 +880,7 @@
 
 	ieee80211_new_state(ic, IEEE80211_S_INIT, -1);
 
+	DPRINTF(("%s\n", __func__));
 	DELAY(100000);
 	WI_LOCK(sc);
 	if (sc->sc_enabled && !sc->wi_gone) {
@@ -1053,6 +1055,7 @@
 	}
 	sc->sc_txd[cur].d_len = off;
 	if (sc->sc_txcur == cur) {
+		DPRINTF2(("%s: xmit frame, idx=%d\n", __func__, cur));
 		if (wi_cmd(sc, WI_CMD_TX | WI_RECLAIM, fid, 0, 0)) {
 			if_printf(ifp, "xmit failed\n");
 			sc->sc_txd[cur].d_len = 0;
@@ -1162,6 +1165,7 @@
 	int error = 0;
 	int tries;
 	
+	DPRINTF(("%s\n", __func__));
 	/* Symbol firmware cannot be initialized more than once */
 	if (sc->sc_firmware_type == WI_SYMBOL && sc->sc_reset)
 		return (0);
@@ -2550,6 +2554,7 @@
 	u_int16_t val;
 	struct wi_key wkey[IEEE80211_WEP_NKID];
 
+	DPRINTF(("%s\n", __func__));
 	switch (sc->sc_firmware_type) {
 	case WI_LUCENT:
 		val = (ic->ic_flags & IEEE80211_F_PRIVACY) ? 1 : 0;
@@ -2660,6 +2665,8 @@
 {
 	int			i, s = 0;
 	
+	DPRINTF2(("%s: cmd=%d val0=%d val1=%d val2=%d\n",
+	    __func__, cmd, val0, val1, val2));
 	if (sc->wi_gone)
 		return (ENODEV);
 
@@ -3000,6 +3007,7 @@
 	int error = 0;
 	u_int16_t val[2];
 
+	DPRINTF(("%s\n", __func__));
 	if (!sc->sc_enabled)
 		return ENXIO;
 	switch (sc->sc_firmware_type) {
@@ -3042,7 +3050,7 @@
 	struct ieee80211com *ic;
 	uint8_t ssid[2+IEEE80211_NWID_LEN];
 
-	printf("wi_scan_result\n");
+	DPRINTF(("%s\n", __func__));
 	ic = &sc->sc_ic;
 	rstamp++;
 	memset(&sp, 0, sizeof(sp));
@@ -3519,6 +3527,7 @@
 	struct ifnet *ifp = ic->ic_ifp;
 	struct wi_softc *sc = ifp->if_softc;
 
+	DPRINTF(("%s\n", __func__));
 	WI_LOCK(sc);
 	sc->sc_flags |= WI_FLAGS_SCANNING;
 	wi_scan_ap(sc, 0x3fff, 0x000f);



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