Skip to contentSkip to conversation

mac80211: allow WDS mode

PATCH New Johannes Berg 1 participant 1 message Apr 15, 2008 mac80211

lore
Share & tools
lore

Johannes Berg

author maintainer
#0 lore raw

PATCH 1/1 mac80211: allow WDS mode

This allows creating interfaces in WDS mode or switching existing ones into WDS mode (both via cfg80211 and wext.)

---
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(+)
net/mac80211/cfg.c +2 -0
@@ -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;
 	}
net/mac80211/wext.c +3 -0
@@ -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;