mac80211: re-enable beacon channel hints
[openwrt/svn-archive/archive.git] / package / mac80211 / patches / 410-ath9k_allow_adhoc_and_ap.patch
1 --- a/drivers/net/wireless/ath/ath9k/main.c
2 +++ b/drivers/net/wireless/ath/ath9k/main.c
3 @@ -1483,14 +1483,6 @@ static int ath9k_add_interface(struct ie
4 }
5 }
6
7 - if ((vif->type == NL80211_IFTYPE_ADHOC) &&
8 - sc->nvifs > 0) {
9 - ath_err(common, "Cannot create ADHOC interface when other"
10 - " interfaces already exist.\n");
11 - ret = -EINVAL;
12 - goto out;
13 - }
14 -
15 ath_dbg(common, ATH_DBG_CONFIG,
16 "Attach a VIF of type: %d\n", vif->type);
17