svn commit: r194598 - projects/mesh11s/sys/net80211

Rui Paulo rpaulo at FreeBSD.org
Sun Jun 21 17:35:05 UTC 2009


Author: rpaulo
Date: Sun Jun 21 17:35:04 2009
New Revision: 194598
URL: http://svn.freebsd.org/changeset/base/194598

Log:
  Return ENOSYS instead of EINVAL, otherwise we break ioctl processing.
  
  Sponsored by:	The FreeBSD Foundation

Modified:
  projects/mesh11s/sys/net80211/ieee80211_hwmp.c
  projects/mesh11s/sys/net80211/ieee80211_mesh.c

Modified: projects/mesh11s/sys/net80211/ieee80211_hwmp.c
==============================================================================
--- projects/mesh11s/sys/net80211/ieee80211_hwmp.c	Sun Jun 21 17:17:46 2009	(r194597)
+++ projects/mesh11s/sys/net80211/ieee80211_hwmp.c	Sun Jun 21 17:35:04 2009	(r194598)
@@ -1051,7 +1051,7 @@ hwmp_ioctl_get80211(struct ieee80211vap 
  
 	if (vap->iv_opmode != IEEE80211_M_MBSS ||
 	    ireq->i_type != IEEE80211_IOC_HWMP_CMD)
-		return EINVAL;
+		return ENOSYS;
 	error = 0;
 	switch (ireq->i_val) {
 	case IEEE80211_HWMP_CMD_LIST:
@@ -1100,7 +1100,7 @@ hwmp_ioctl_set80211(struct ieee80211vap 
 
 	if (vap->iv_opmode != IEEE80211_M_MBSS ||
 	    ireq->i_type != IEEE80211_IOC_HWMP_CMD)
-		return EINVAL;
+		return ENOSYS;
 	error = 0;
 	switch (ireq->i_val) {
 	case IEEE80211_HWMP_CMD_LIST:

Modified: projects/mesh11s/sys/net80211/ieee80211_mesh.c
==============================================================================
--- projects/mesh11s/sys/net80211/ieee80211_mesh.c	Sun Jun 21 17:17:46 2009	(r194597)
+++ projects/mesh11s/sys/net80211/ieee80211_mesh.c	Sun Jun 21 17:35:04 2009	(r194598)
@@ -1538,7 +1538,7 @@ mesh_ioctl_get80211(struct ieee80211vap 
 	uint8_t tmpmeshid[IEEE80211_NWID_LEN];
 
 	if (vap->iv_opmode != IEEE80211_M_MBSS)
-		return EINVAL;
+		return ENOSYS;
 
 	error = 0;
 	switch (ireq->i_type) {
@@ -1568,7 +1568,7 @@ mesh_ioctl_set80211(struct ieee80211vap 
 	uint8_t tmpmeshid[IEEE80211_NWID_LEN];
 
 	if (vap->iv_opmode != IEEE80211_M_MBSS)
-		return EINVAL;
+		return ENOSYS;
 
 	error = 0;
 	switch (ireq->i_type) {


More information about the svn-src-projects mailing list