Fix build on non-SMP machines of the remote GDB debugging (#2666)
[openwrt.git] / package / mac80211 / patches / 011-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 ---
9 net/mac80211/cfg.c | 4 ++++
10 net/mac80211/ieee80211_ioctl.c | 3 +++
11 2 files changed, 7 insertions(+)
12
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;
23 default:
24 return IEEE80211_IF_TYPE_INVALID;
25 }
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
29 case IW_MODE_MONITOR:
30 type = IEEE80211_IF_TYPE_MNTR;
31 break;
32 + case IW_MODE_MASTER:
33 + type = IEEE80211_IF_TYPE_AP;
34 + break;
35 default:
36 return -EINVAL;
37 }
This page took 0.054362 seconds and 5 git commands to generate.