[mac80211] Update to compat-wireless-2009-06-02
[openwrt.git] / package / mac80211 / patches-old / 004-allow-ap-vlan-modes.patch
1 Subject: mac80211: allow AP and VLAN modes
2
3 This patch allows switching interfaces into AP/VLAN modes using
4 cfg80211 (nl80211). Don't allow doing it with wext because then
5 people will just attempt to do it manually (without hostapd) and
6 complain that it doesn't work.
7
8 Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
9 ---
10 net/mac80211/cfg.c | 4 ++++
11 1 file changed, 4 insertions(+)
12
13 --- a/net/mac80211/cfg.c
14 +++ b/net/mac80211/cfg.c
15 @@ -35,6 +35,10 @@ nl80211_type_to_mac80211_type(enum nl802
16 case NL80211_IFTYPE_MESH_POINT:
17 return IEEE80211_IF_TYPE_MESH_POINT;
18 #endif
19 + case NL80211_IFTYPE_AP:
20 + return IEEE80211_IF_TYPE_AP;
21 + case NL80211_IFTYPE_AP_VLAN:
22 + return IEEE80211_IF_TYPE_VLAN;
23 case NL80211_IFTYPE_WDS:
24 return IEEE80211_IF_TYPE_WDS;
25 default:
This page took 0.043446 seconds and 5 git commands to generate.