浏览代码

mac80211: allow WDS mode

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>
Johannes Berg 17 年之前
父节点
当前提交
b454048cb9
共有 2 个文件被更改,包括 5 次插入0 次删除
  1. 2 0
      net/mac80211/cfg.c
  2. 3 0
      net/mac80211/wext.c

+ 2 - 0
net/mac80211/cfg.c

@@ -33,6 +33,8 @@ nl80211_type_to_mac80211_type(enum nl80211_iftype type)
 	case NL80211_IFTYPE_MESH_POINT:
 	case NL80211_IFTYPE_MESH_POINT:
 		return IEEE80211_IF_TYPE_MESH_POINT;
 		return IEEE80211_IF_TYPE_MESH_POINT;
 #endif
 #endif
+	case NL80211_IFTYPE_WDS:
+		return IEEE80211_IF_TYPE_WDS;
 	default:
 	default:
 		return IEEE80211_IF_TYPE_INVALID;
 		return IEEE80211_IF_TYPE_INVALID;
 	}
 	}

+ 3 - 0
net/mac80211/wext.c

@@ -236,6 +236,9 @@ static int ieee80211_ioctl_siwmode(struct net_device *dev,
 	case IW_MODE_ADHOC:
 	case IW_MODE_ADHOC:
 		type = IEEE80211_IF_TYPE_IBSS;
 		type = IEEE80211_IF_TYPE_IBSS;
 		break;
 		break;
+	case IW_MODE_REPEAT:
+		type = IEEE80211_IF_TYPE_WDS;
+		break;
 	case IW_MODE_MONITOR:
 	case IW_MODE_MONITOR:
 		type = IEEE80211_IF_TYPE_MNTR;
 		type = IEEE80211_IF_TYPE_MNTR;
 		break;
 		break;