View | Details | Raw Unified | Return to bug 197143 | Differences between
and this patch

Collapse All | Expand All

(-)sys/dev/wpi/if_wpi.c (+8 lines)
Lines 3173-3178 Link Here
3173
	node.action = htole32(WPI_ACTION_SET_RATE);
3173
	node.action = htole32(WPI_ACTION_SET_RATE);
3174
	node.antenna = WPI_ANTENNA_BOTH;
3174
	node.antenna = WPI_ANTENNA_BOTH;
3175
3175
3176
	DPRINTF(sc, WPI_DEBUG_NODE, "%s: adding node %d (%s)\n", __func__,
3177
	    wn->id, ether_sprintf(ni->ni_macaddr));
3178
3176
	error = wpi_cmd(sc, WPI_CMD_ADD_NODE, &node, sizeof node, 1);
3179
	error = wpi_cmd(sc, WPI_CMD_ADD_NODE, &node, sizeof node, 1);
3177
	if (error != 0) {
3180
	if (error != 0) {
3178
		device_printf(sc->sc_dev,
3181
		device_printf(sc->sc_dev,
Lines 3213-3218 Link Here
3213
	node.action = htole32(WPI_ACTION_SET_RATE);
3216
	node.action = htole32(WPI_ACTION_SET_RATE);
3214
	node.antenna = WPI_ANTENNA_BOTH;
3217
	node.antenna = WPI_ANTENNA_BOTH;
3215
3218
3219
	DPRINTF(sc, WPI_DEBUG_NODE, "%s: adding broadcast node\n", __func__);
3220
3216
	return wpi_cmd(sc, WPI_CMD_ADD_NODE, &node, sizeof node, async);
3221
	return wpi_cmd(sc, WPI_CMD_ADD_NODE, &node, sizeof node, async);
3217
}
3222
}
3218
3223
Lines 3279-3284 Link Here
3279
	IEEE80211_ADDR_COPY(node.macaddr, ni->ni_macaddr);
3284
	IEEE80211_ADDR_COPY(node.macaddr, ni->ni_macaddr);
3280
	node.count = 1;
3285
	node.count = 1;
3281
3286
3287
	DPRINTF(sc, WPI_DEBUG_NODE, "%s: deleting node %d (%s)\n", __func__,
3288
	    wn->id, ether_sprintf(ni->ni_macaddr));
3289
3282
	error = wpi_cmd(sc, WPI_CMD_DEL_NODE, &node, sizeof node, 1);
3290
	error = wpi_cmd(sc, WPI_CMD_DEL_NODE, &node, sizeof node, 1);
3283
	if (error != 0) {
3291
	if (error != 0) {
3284
		device_printf(sc->sc_dev,
3292
		device_printf(sc->sc_dev,
(-)sys/dev/wpi/if_wpi_debug.h (-2 / +3 lines)
Lines 39-46 Link Here
39
	WPI_DEBUG_TRACE		= 0x00002000,	/* Print begin and start driver function */
39
	WPI_DEBUG_TRACE		= 0x00002000,	/* Print begin and start driver function */
40
	WPI_DEBUG_PWRSAVE	= 0x00004000,	/* Power save operations */
40
	WPI_DEBUG_PWRSAVE	= 0x00004000,	/* Power save operations */
41
	WPI_DEBUG_EEPROM	= 0x00008000,	/* EEPROM info */
41
	WPI_DEBUG_EEPROM	= 0x00008000,	/* EEPROM info */
42
	WPI_DEBUG_KEY		= 0x00010000,	/* node key management */
42
	WPI_DEBUG_NODE		= 0x00010000,	/* node addition/removal */
43
	WPI_DEBUG_EDCA		= 0x00020000,	/* WME info */
43
	WPI_DEBUG_KEY		= 0x00020000,	/* node key management */
44
	WPI_DEBUG_EDCA		= 0x00040000,	/* WME info */
44
	WPI_DEBUG_REGISTER	= 0x00080000,	/* print chipset register */
45
	WPI_DEBUG_REGISTER	= 0x00080000,	/* print chipset register */
45
	WPI_DEBUG_ANY		= 0xffffffff
46
	WPI_DEBUG_ANY		= 0xffffffff
46
};
47
};

Return to bug 197143