AA: mac80211: backport package from trunk r39886
[openwrt/svn-archive/archive.git] / package / mac80211 / patches / 620-rt2x00-add-AP+STA-support.patch
1 --- a/drivers/net/wireless/rt2x00/rt2x00dev.c
2 +++ b/drivers/net/wireless/rt2x00/rt2x00dev.c
3 @@ -1262,7 +1262,7 @@ static inline void rt2x00lib_set_if_comb
4 */
5 if_limit = &rt2x00dev->if_limits_ap;
6 if_limit->max = rt2x00dev->ops->max_ap_intf;
7 - if_limit->types = BIT(NL80211_IFTYPE_AP);
8 + if_limit->types = BIT(NL80211_IFTYPE_AP) | BIT(NL80211_IFTYPE_STATION);
9 #ifdef CPTCFG_MAC80211_MESH
10 if_limit->types |= BIT(NL80211_IFTYPE_MESH_POINT);
11 #endif