X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=package%2Fmac80211%2Fpatches%2F410-ath9k_allow_adhoc_and_ap.patch;h=8294ee2e52defbb18aa9a1a51a33750bf1d7fd1b;hb=7c552cdd964b331f7a5db5323362d00f8b81d49a;hp=b03a0661c898815c6594bfec41e48f217f3d2ca6;hpb=bb8d6c54bd2ec9623b4e9a92d82b6d5f6b1721de;p=openwrt%2Fsvn-archive%2Farchive.git diff --git a/package/mac80211/patches/410-ath9k_allow_adhoc_and_ap.patch b/package/mac80211/patches/410-ath9k_allow_adhoc_and_ap.patch index b03a0661c8..8294ee2e52 100644 --- a/package/mac80211/patches/410-ath9k_allow_adhoc_and_ap.patch +++ b/package/mac80211/patches/410-ath9k_allow_adhoc_and_ap.patch @@ -1,17 +1,10 @@ ---- a/drivers/net/wireless/ath/ath9k/main.c -+++ b/drivers/net/wireless/ath/ath9k/main.c -@@ -1483,14 +1483,6 @@ static int ath9k_add_interface(struct ie - } - } +--- a/drivers/net/wireless/ath/ath9k/init.c ++++ b/drivers/net/wireless/ath/ath9k/init.c +@@ -733,6 +733,7 @@ static const struct ieee80211_iface_limi + #endif + BIT(NL80211_IFTYPE_AP) | + BIT(NL80211_IFTYPE_P2P_GO) }, ++ { .max = 1, .types = BIT(NL80211_IFTYPE_ADHOC) }, + }; -- if ((vif->type == NL80211_IFTYPE_ADHOC) && -- sc->nvifs > 0) { -- ath_err(common, "Cannot create ADHOC interface when other" -- " interfaces already exist.\n"); -- ret = -EINVAL; -- goto out; -- } -- - ath_dbg(common, ATH_DBG_CONFIG, - "Attach a VIF of type: %d\n", vif->type);