svn commit: r229968 - head/sys/net80211

Adrian Chadd adrian at FreeBSD.org
Wed Jan 11 17:10:27 UTC 2012


Author: adrian
Date: Wed Jan 11 17:10:27 2012
New Revision: 229968
URL: http://svn.freebsd.org/changeset/base/229968

Log:
  Add the ability to kick an existing mesh node without waiting for it
  to time out.
  
  Submitted by:	Monthadar Al Jaberi <monthadar at gmail.com>

Modified:
  head/sys/net80211/ieee80211_ioctl.c

Modified: head/sys/net80211/ieee80211_ioctl.c
==============================================================================
--- head/sys/net80211/ieee80211_ioctl.c	Wed Jan 11 16:53:51 2012	(r229967)
+++ head/sys/net80211/ieee80211_ioctl.c	Wed Jan 11 17:10:27 2012	(r229968)
@@ -1397,6 +1397,17 @@ setmlme_common(struct ieee80211vap *vap,
 			    IEEE80211_FC0_SUBTYPE_DEAUTH, reason);
 			ieee80211_free_node(ni);
 			break;
+		case IEEE80211_M_MBSS:
+			IEEE80211_NODE_LOCK(nt);
+			ni = ieee80211_find_node_locked(nt, mac);
+			if (ni != NULL) {
+				ieee80211_node_leave(ni);
+				ieee80211_free_node(ni);
+			} else {
+				error = ENOENT;
+			}
+			IEEE80211_NODE_UNLOCK(nt);
+			break;
 		default:
 			error = EINVAL;
 			break;


More information about the svn-src-all mailing list