svn commit: r191407 - projects/mesh11s/sys/net80211
Rui Paulo
rpaulo at FreeBSD.org
Wed Apr 22 23:38:57 UTC 2009
Author: rpaulo
Date: Wed Apr 22 23:38:57 2009
New Revision: 191407
URL: http://svn.freebsd.org/changeset/base/191407
Log:
Add a default case switch for opmode.
Use correct variable name tmpmeshid.
Sponsored by: The FreeBSD Foundation
Modified:
projects/mesh11s/sys/net80211/ieee80211_mesh.c
Modified: projects/mesh11s/sys/net80211/ieee80211_mesh.c
==============================================================================
--- projects/mesh11s/sys/net80211/ieee80211_mesh.c Wed Apr 22 21:50:32 2009 (r191406)
+++ projects/mesh11s/sys/net80211/ieee80211_mesh.c Wed Apr 22 23:38:57 2009 (r191407)
@@ -100,6 +100,7 @@ static int
mesh_newstate(struct ieee80211vap *vap, enum ieee80211_state nstate, int arg)
{
struct ieee80211com *ic = vap->iv_ic;
+ struct ieee80211_node *ni;
enum ieee80211_state ostate;
IEEE80211_LOCK_ASSERT(ic);
@@ -124,6 +125,8 @@ mesh_newstate(struct ieee80211vap *vap,
case IEEE80211_S_SCAN:
switch (ostate) {
case IEEE80211_S_INIT:
+ default:
+ break;
}
case IEEE80211_S_AUTH:
case IEEE80211_S_ASSOC:
@@ -189,7 +192,7 @@ mesh_ioctl_get80211(struct ieee80211vap
if (vap->iv_opmode != IEEE80211_M_MBSS)
return EINVAL;
ireq->i_len = vap->iv_meshidlen;
- memcpy(meshid, vap->iv_meshid, ireq->i_len);
+ memcpy(tmpmeshid, vap->iv_meshid, ireq->i_len);
error = copyout(tmpmeshid, ireq->i_data, ireq->i_len);
break;
default:
More information about the svn-src-projects
mailing list