Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Feb 2008 02:43:19 GMT
From:      Sam Leffler <sam@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 136204 for review
Message-ID:  <200802260243.m1Q2hJ0O080603@repoman.freebsd.org>

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

Change 136204 by sam@sam_ebb on 2008/02/26 02:42:27

	o return proper error code from ioctl handler
	o default opmode to STA

Affected files ...

.. //depot/projects/vap/sys/dev/ral/rt2661.c#14 edit

Differences ...

==== //depot/projects/vap/sys/dev/ral/rt2661.c#14 (text) ====

@@ -302,6 +302,7 @@
 	IFQ_SET_READY(&ifp->if_snd);
 
 	ic->ic_ifp = ifp;
+	ic->ic_opmode = IEEE80211_M_STA;
 	ic->ic_phytype = IEEE80211_T_OFDM; /* not only, but not used */
 
 	/* set device capabilities */
@@ -1929,7 +1930,7 @@
 		error = ether_ioctl(ifp, cmd, data);
 		break;
 	}
-	return 0;
+	return error;
 }
 
 static void



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