fix up hostapd for mac80211
[librecmc/librecmc.git] / package / mac80211 / patches / 012-mac80211-allow-wds.patch
1 Subject: mac80211: allow WDS mode
2
3 This allows creating interfaces in WDS mode or switching
4 existing ones into WDS mode (both via cfg80211.)
5
6 Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
7
8 ---
9  net/mac80211/cfg.c |    2 ++
10  1 file changed, 2 insertions(+)
11
12 --- everything.orig/net/mac80211/cfg.c  2007-11-07 13:19:27.981515569 +0100
13 +++ everything/net/mac80211/cfg.c       2007-11-07 13:19:29.441515732 +0100
14 @@ -29,6 +29,8 @@ nl80211_type_to_mac80211_type(enum nl802
15                 return IEEE80211_IF_TYPE_AP;
16         case NL80211_IFTYPE_AP_VLAN:
17                 return IEEE80211_IF_TYPE_VLAN;
18 +       case NL80211_IFTYPE_WDS:
19 +               return IEEE80211_IF_TYPE_WDS;
20         default:
21                 return IEEE80211_IF_TYPE_INVALID;
22         }