Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Jun 2009 17:35:04 +0000 (UTC)
From:      Rui Paulo <rpaulo@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r194598 - projects/mesh11s/sys/net80211
Message-ID:  <200906211735.n5LHZ4Xx013784@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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) {



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