* [PATCH] mac80211: allow WDS mode
@ 2008-04-14 13:37 Johannes Berg
0 siblings, 0 replies; only message in thread
From: Johannes Berg @ 2008-04-14 13:37 UTC (permalink / raw)
To: John W. Linville; +Cc: linux-wireless
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;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-04-15 10:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-14 13:37 [PATCH] mac80211: allow WDS mode Johannes Berg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox