1 Subject: mac80211: allow AP and VLAN modes
3 This adds AP/VLAN modes to the list of modes that a mac80211
4 interface can be created in/switched into.
6 Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
9 net/mac80211/cfg.c | 4 ++++
10 net/mac80211/ieee80211_ioctl.c | 3 +++
11 2 files changed, 7 insertions(+)
13 --- everything.orig/net/mac80211/cfg.c 2007-10-30 15:33:43.227379286 +0100
14 +++ everything/net/mac80211/cfg.c 2007-11-07 13:19:27.981515569 +0100
15 @@ -25,6 +25,10 @@ nl80211_type_to_mac80211_type(enum nl802
16 return IEEE80211_IF_TYPE_STA;
17 case NL80211_IFTYPE_MONITOR:
18 return IEEE80211_IF_TYPE_MNTR;
19 + case NL80211_IFTYPE_AP:
20 + return IEEE80211_IF_TYPE_AP;
21 + case NL80211_IFTYPE_AP_VLAN:
22 + return IEEE80211_IF_TYPE_VLAN;
24 return IEEE80211_IF_TYPE_INVALID;
26 --- everything.orig/net/mac80211/ieee80211_ioctl.c 2007-11-07 13:19:25.851524684 +0100
27 +++ everything/net/mac80211/ieee80211_ioctl.c 2007-11-07 13:19:27.981515569 +0100
28 @@ -284,6 +284,9 @@ static int ieee80211_ioctl_siwmode(struc
30 type = IEEE80211_IF_TYPE_MNTR;
32 + case IW_MODE_MASTER:
33 + type = IEEE80211_IF_TYPE_AP;