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

Collapse All | Expand All

(-)sys/dev/wpi/if_wpi.c (-1 / +6 lines)
Lines 307-314 Link Here
307
	struct wpi_softc *sc = (struct wpi_softc *)device_get_softc(dev);
307
	struct wpi_softc *sc = (struct wpi_softc *)device_get_softc(dev);
308
	struct ieee80211com *ic;
308
	struct ieee80211com *ic;
309
	struct ifnet *ifp;
309
	struct ifnet *ifp;
310
	int i, error, rid, supportsa = 1;
310
	int i, error, rid;
311
#ifdef WPI_DEBUG
312
	int supportsa = 1;
311
	const struct wpi_ident *ident;
313
	const struct wpi_ident *ident;
314
#endif
312
	uint8_t macaddr[IEEE80211_ADDR_LEN];
315
	uint8_t macaddr[IEEE80211_ADDR_LEN];
313
316
314
	sc->sc_dev = dev;
317
	sc->sc_dev = dev;
Lines 339-344 Link Here
339
	 * this is one such card. A 0x0 in the subdevice table indicates
342
	 * this is one such card. A 0x0 in the subdevice table indicates
340
	 * the entire subdevice range is to be ignored.
343
	 * the entire subdevice range is to be ignored.
341
	 */
344
	 */
345
#ifdef WPI_DEBUG
342
	for (ident = wpi_ident_table; ident->name != NULL; ident++) {
346
	for (ident = wpi_ident_table; ident->name != NULL; ident++) {
343
		if (ident->subdevice &&
347
		if (ident->subdevice &&
344
		    pci_get_subdevice(dev) == ident->subdevice) {
348
		    pci_get_subdevice(dev) == ident->subdevice) {
Lines 346-351 Link Here
346
		    break;
350
		    break;
347
		}
351
		}
348
	}
352
	}
353
#endif
349
354
350
	/* Clear device-specific "PCI retry timeout" register (41h). */
355
	/* Clear device-specific "PCI retry timeout" register (41h). */
351
	pci_write_config(dev, 0x41, 0, 1);
356
	pci_write_config(dev, 0x41, 0, 1);

Return to bug 197143