mac80211: allow WDS mode
authorJohannes Berg <johannes@sipsolutions.net>
Mon, 14 Apr 2008 13:37:03 +0000 (15:37 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 16 Apr 2008 19:59:57 +0000 (15:59 -0400)
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>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/cfg.c
net/mac80211/wext.c

index 0c1095aa94dda2ac60ae02667e1ab1124bf8eb29..699d97b8de5eb97637ff7d9a98a708a76e03594f 100644 (file)
@@ -33,6 +33,8 @@ nl80211_type_to_mac80211_type(enum nl80211_iftype type)
        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;
        }
index 5a452575719d4e4e2bd3f22b81989b7f7dc387b2..76e1de1dc735d959e62527132bad490a3e005513 100644 (file)
@@ -236,6 +236,9 @@ static int ieee80211_ioctl_siwmode(struct net_device *dev,
        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;