PERFORCE change 136204 for review

Sam Leffler sam at FreeBSD.org
Tue Feb 26 02:43:20 UTC 2008


http://perforce.freebsd.org/chv.cgi?CH=136204

Change 136204 by sam at 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


More information about the p4-projects mailing list