PERFORCE change 90714 for review
Sam Leffler
sam at FreeBSD.org
Mon Jan 30 13:24:20 PST 2006
http://perforce.freebsd.org/chv.cgi?CH=90714
Change 90714 by sam at sam_ebb on 2006/01/30 21:23:17
add missing burst ioctl code
Affected files ...
.. //depot/projects/wifi/sys/net80211/ieee80211_ioctl.c#58 edit
Differences ...
==== //depot/projects/wifi/sys/net80211/ieee80211_ioctl.c#58 (text+ko) ====
@@ -889,6 +889,9 @@
case IEEE80211_IOC_MACCMD:
error = ieee80211_ioctl_getmaccmd(ic, ireq);
break;
+ case IEEE80211_IOC_BURST:
+ ireq->i_val = (ic->ic_flags & IEEE80211_F_BURST) != 0;
+ break;
default:
error = EINVAL;
break;
@@ -1989,6 +1992,15 @@
ic->ic_fragthreshold = ireq->i_val;
error = IS_UP(ic) ? ic->ic_reset(ic->ic_ifp) : 0;
break;
+ case IEEE80211_IOC_BURST:
+ if (ireq->i_val) {
+ if ((ic->ic_caps & IEEE80211_C_BURST) == 0)
+ return EINVAL;
+ ic->ic_flags |= IEEE80211_F_BURST;
+ } else
+ ic->ic_flags &= ~IEEE80211_F_BURST;
+ error = ENETRESET; /* XXX maybe not for station? */
+ break;
default:
error = EINVAL;
break;
More information about the p4-projects
mailing list