Date: Sun, 15 Mar 2015 21:06:00 +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: r280094 - head/sys/dev/wpi Message-ID: <201503152106.t2FL60dg080053@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: adrian Date: Sun Mar 15 21:05:59 2015 New Revision: 280094 URL: https://svnweb.freebsd.org/changeset/base/280094 Log: Add WPI_DEBUG_NODE + some debugging. PR: kern/197143 Submitted by: Andriy Voskoboinyk <s3erios@gmail.com> Modified: head/sys/dev/wpi/if_wpi.c head/sys/dev/wpi/if_wpi_debug.h Modified: head/sys/dev/wpi/if_wpi.c ============================================================================== --- head/sys/dev/wpi/if_wpi.c Sun Mar 15 21:04:55 2015 (r280093) +++ head/sys/dev/wpi/if_wpi.c Sun Mar 15 21:05:59 2015 (r280094) @@ -3173,6 +3173,9 @@ wpi_add_node(struct wpi_softc *sc, struc node.action = htole32(WPI_ACTION_SET_RATE); node.antenna = WPI_ANTENNA_BOTH; + DPRINTF(sc, WPI_DEBUG_NODE, "%s: adding node %d (%s)\n", __func__, + wn->id, ether_sprintf(ni->ni_macaddr)); + error = wpi_cmd(sc, WPI_CMD_ADD_NODE, &node, sizeof node, 1); if (error != 0) { device_printf(sc->sc_dev, @@ -3213,6 +3216,8 @@ wpi_add_broadcast_node(struct wpi_softc node.action = htole32(WPI_ACTION_SET_RATE); node.antenna = WPI_ANTENNA_BOTH; + DPRINTF(sc, WPI_DEBUG_NODE, "%s: adding broadcast node\n", __func__); + return wpi_cmd(sc, WPI_CMD_ADD_NODE, &node, sizeof node, async); } @@ -3279,6 +3284,9 @@ wpi_del_node(struct wpi_softc *sc, struc IEEE80211_ADDR_COPY(node.macaddr, ni->ni_macaddr); node.count = 1; + DPRINTF(sc, WPI_DEBUG_NODE, "%s: deleting node %d (%s)\n", __func__, + wn->id, ether_sprintf(ni->ni_macaddr)); + error = wpi_cmd(sc, WPI_CMD_DEL_NODE, &node, sizeof node, 1); if (error != 0) { device_printf(sc->sc_dev, Modified: head/sys/dev/wpi/if_wpi_debug.h ============================================================================== --- head/sys/dev/wpi/if_wpi_debug.h Sun Mar 15 21:04:55 2015 (r280093) +++ head/sys/dev/wpi/if_wpi_debug.h Sun Mar 15 21:05:59 2015 (r280094) @@ -39,8 +39,9 @@ enum { WPI_DEBUG_TRACE = 0x00002000, /* Print begin and start driver function */ WPI_DEBUG_PWRSAVE = 0x00004000, /* Power save operations */ WPI_DEBUG_EEPROM = 0x00008000, /* EEPROM info */ - WPI_DEBUG_KEY = 0x00010000, /* node key management */ - WPI_DEBUG_EDCA = 0x00020000, /* WME info */ + WPI_DEBUG_NODE = 0x00010000, /* node addition/removal */ + WPI_DEBUG_KEY = 0x00020000, /* node key management */ + WPI_DEBUG_EDCA = 0x00040000, /* WME info */ WPI_DEBUG_REGISTER = 0x00080000, /* print chipset register */ WPI_DEBUG_ANY = 0xffffffff };
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201503152106.t2FL60dg080053>