1 --- a/net/mac80211/main.c
2 +++ b/net/mac80211/main.c
3 @@ -776,17 +776,11 @@ int ieee80211_register_hw(struct ieee802
5 for (i = 0; i < hw->wiphy->n_iface_combinations; i++) {
6 const struct ieee80211_iface_combination *c;
9 c = &hw->wiphy->iface_combinations[i];
11 if (c->num_different_channels > 1)
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)
20 #ifndef CONFIG_MAC80211_MESH