PERFORCE change 77117 for review

Sam Leffler sam at FreeBSD.org
Tue May 17 16:46:00 PDT 2005


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

Change 77117 by sam at sam_ebb on 2005/05/17 23:45:32

	add ioctl's for wds operation

Affected files ...

.. //depot/projects/vap/sys/net80211/ieee80211_ioctl.c#11 edit

Differences ...

==== //depot/projects/vap/sys/net80211/ieee80211_ioctl.c#11 (text+ko) ====

@@ -914,6 +914,9 @@
 	case IEEE80211_IOC_BGSCAN_INTERVAL:
 		ireq->i_val = vap->iv_bgscanintvl/hz;	/* seconds */
 		break;
+	case IEEE80211_IOC_WDS:
+		ireq->i_val = (vap->iv_flags & IEEE80211_F_WDS) != 0;
+		break;
 	default:
 		error = EINVAL;
 		break;
@@ -1803,6 +1806,15 @@
 		else
 			error = EINVAL;
 		break;
+	case IEEE80211_IOC_WDS:
+		if (ireq->i_val) {
+			if ((vap->iv_caps & IEEE80211_C_WDS) == 0)
+				return EINVAL;
+			vap->iv_flags |= IEEE80211_F_WDS;
+		} else
+			vap->iv_flags &= ~IEEE80211_F_WDS;
+		/* XXX no need to sync? */
+		break;
 	default:
 		error = EINVAL;
 		break;


More information about the p4-projects mailing list