From owner-freebsd-wireless@FreeBSD.ORG Mon Jan 9 17:34:19 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 55214106564A for ; Mon, 9 Jan 2012 17:34:19 +0000 (UTC) (envelope-from monthadar@gmail.com) Received: from mail-gy0-f182.google.com (mail-gy0-f182.google.com [209.85.160.182]) by mx1.freebsd.org (Postfix) with ESMTP id 1A7168FC15 for ; Mon, 9 Jan 2012 17:34:18 +0000 (UTC) Received: by ghrr16 with SMTP id r16so1900637ghr.13 for ; Mon, 09 Jan 2012 09:34:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=8sMCN2AZByh8qfmlbihX0ESpt6BxbLsjkIG2/q3+Bgg=; b=Qca3se87Mn3JLkGwp1v2Z+/BeQQtwW+1gfkwWC8YgmWvpMCJ1SYcfkcAGurLKGUj4A qGHeZBwVEA2eyxwsja5h4oTg2DBDLnEEqtCE4Dg9l11F+d3dRcvdZBJOWRnpiUvTwFID RKHOmpE4PUygM46wMGcgPyJRuTmIpqPiWe4so= MIME-Version: 1.0 Received: by 10.101.24.16 with SMTP id b16mr7108044anj.36.1326128975660; Mon, 09 Jan 2012 09:09:35 -0800 (PST) Received: by 10.100.34.11 with HTTP; Mon, 9 Jan 2012 09:09:35 -0800 (PST) Date: Mon, 9 Jan 2012 18:09:35 +0100 Message-ID: From: Monthadar Al Jaberi To: freebsd-wireless@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: kick mesh node X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Jan 2012 17:34:19 -0000 Hi, I dont know if this is the correct way to do it. if you run "ifconfig wlan0 mac:kick address" you will get Invalid argument error because there is no code for MBSS. This is patch makes it possible to kick a mesh node, useful when for example you have some entries left "dead" in your table awaiting node reclaim timeout. Because there is no auth/assoc code for mesh I guess this is enough (maybe we can try to send CLOSE LINK to the entry we kick so that it updates its entries?): --- a/sys/net80211/ieee80211_ioctl.c +++ b/sys/net80211/ieee80211_ioctl.c @@ -1397,6 +1397,17 @@ setmlme_common(struct ieee80211vap *vap, int op, 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; -- Monthadar Al Jaberi