From: Johannes Berg <johannes@sipsolutions.net>
To: "John W. Linville" <linville@tuxdriver.com>
Cc: linux-wireless <linux-wireless@vger.kernel.org>
Subject: [PATCH] mac80211: allow WDS mode
Date: Mon, 14 Apr 2008 15:37:03 +0200 [thread overview]
Message-ID: <1208180223.4111.64.camel@johannes.berg> (raw)
This allows creating interfaces in WDS mode or switching
existing ones into WDS mode (both via cfg80211 and wext.)
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
---
Not too useful without AP mode, but I see no reason to not allow WDS
(unlike AP where I do see reasons.) Maybe somebody can come up with a
different use for it...
net/mac80211/cfg.c | 2 ++
net/mac80211/wext.c | 3 +++
2 files changed, 5 insertions(+)
--- everything.orig/net/mac80211/cfg.c 2008-04-14 15:34:25.000000000 +0200
+++ everything/net/mac80211/cfg.c 2008-04-14 15:35:20.000000000 +0200
@@ -33,6 +33,8 @@ nl80211_type_to_mac80211_type(enum nl802
case NL80211_IFTYPE_MESH_POINT:
return IEEE80211_IF_TYPE_MESH_POINT;
#endif
+ case NL80211_IFTYPE_WDS:
+ return IEEE80211_IF_TYPE_WDS;
default:
return IEEE80211_IF_TYPE_INVALID;
}
--- everything.orig/net/mac80211/wext.c 2008-04-14 15:33:27.000000000 +0200
+++ everything/net/mac80211/wext.c 2008-04-14 15:35:20.000000000 +0200
@@ -236,6 +236,9 @@ static int ieee80211_ioctl_siwmode(struc
case IW_MODE_ADHOC:
type = IEEE80211_IF_TYPE_IBSS;
break;
+ case IW_MODE_REPEAT:
+ type = IEEE80211_IF_TYPE_WDS;
+ break;
case IW_MODE_MONITOR:
type = IEEE80211_IF_TYPE_MNTR;
break;
reply other threads:[~2008-04-15 10:30 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1208180223.4111.64.camel@johannes.berg \
--to=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox