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 3775-3780 Link Here
3775
	sc->rxon.cck_mask  = 0x0f;	/* not yet negotiated */
3775
	sc->rxon.cck_mask  = 0x0f;	/* not yet negotiated */
3776
	sc->rxon.ofdm_mask = 0xff;	/* not yet negotiated */
3776
	sc->rxon.ofdm_mask = 0xff;	/* not yet negotiated */
3777
3777
3778
	/* XXX Current configuration may be unusable. */
3779
	if (IEEE80211_IS_CHAN_NOADHOC(c) && sc->rxon.mode == WPI_MODE_IBSS) {
3780
		device_printf(sc->sc_dev,
3781
		    "%s: invalid channel (%d) selected for IBSS mode\n",
3782
		    __func__, ieee80211_chan2ieee(ic, c));
3783
		return EINVAL;
3784
	}
3785
3778
	if ((error = wpi_send_rxon(sc, 0, 0)) != 0) {
3786
	if ((error = wpi_send_rxon(sc, 0, 0)) != 0) {
3779
		device_printf(sc->sc_dev, "%s: could not send RXON\n",
3787
		device_printf(sc->sc_dev, "%s: could not send RXON\n",
3780
		    __func__);
3788
		    __func__);

Return to bug 197143