diff options
author | adrian <adrian@FreeBSD.org> | 2012-01-11 17:10:27 +0000 |
---|---|---|
committer | adrian <adrian@FreeBSD.org> | 2012-01-11 17:10:27 +0000 |
commit | 9088749a26906bbb9945b15be4961ceaa97cbda7 (patch) | |
tree | d8038d1756a60573c88f21a9ed766edf253e56c7 /sys | |
parent | fbc68e09a0f5a13ae5dfa86c68720004dbbf46a0 (diff) | |
download | FreeBSD-src-9088749a26906bbb9945b15be4961ceaa97cbda7.zip FreeBSD-src-9088749a26906bbb9945b15be4961ceaa97cbda7.tar.gz |
Add the ability to kick an existing mesh node without waiting for it
to time out.
Submitted by: Monthadar Al Jaberi <monthadar@gmail.com>
Diffstat (limited to 'sys')
-rw-r--r-- | sys/net80211/ieee80211_ioctl.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sys/net80211/ieee80211_ioctl.c b/sys/net80211/ieee80211_ioctl.c index 4f4abad..4118c57 100644 --- 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; |