mac80211: allow AP and VLAN modes
[openwrt/svn-archive/archive.git] / package / mac80211 / patches / 002-mac80211-allow-ap-vlan-modes.patch
1 Subject: mac80211: allow AP and VLAN modes
2
3 This adds AP/VLAN modes to the list of modes that a mac80211
4 interface can be created in/switched into.
5
6 Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
7 ---
8 net/mac80211/cfg.c | 4 ++++
9 1 file changed, 4 insertions(+)
10
11 Index: mac80211/net/mac80211/cfg.c
12 ===================================================================
13 --- mac80211.orig/net/mac80211/cfg.c 2008-02-16 20:16:09.000000000 +0100
14 +++ mac80211/net/mac80211/cfg.c 2008-02-16 20:16:39.000000000 +0100
15 @@ -27,6 +27,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;
23 default:
24 return IEEE80211_IF_TYPE_INVALID;
25 }