mac80211: update to latest wireless-testing + some monitor mode fixes and some libert...
[openwrt.git] / package / mac80211 / patches / 412-mac80211_allow_adhoc_and_ap.patch
1 --- a/net/mac80211/main.c
2 +++ b/net/mac80211/main.c
3 @@ -787,17 +787,11 @@ int ieee80211_register_hw(struct ieee802
4          */
5         for (i = 0; i < hw->wiphy->n_iface_combinations; i++) {
6                 const struct ieee80211_iface_combination *c;
7 -               int j;
8  
9                 c = &hw->wiphy->iface_combinations[i];
10  
11                 if (c->num_different_channels > 1)
12                         return -EINVAL;
13 -
14 -               for (j = 0; j < c->n_limits; j++)
15 -                       if ((c->limits[j].types & BIT(NL80211_IFTYPE_ADHOC)) &&
16 -                           c->limits[j].max > 1)
17 -                               return -EINVAL;
18         }
19  
20  #ifndef CONFIG_MAC80211_MESH