From e1b9fdd24ff5b4da8e2a730633e10e6d8218425e Mon Sep 17 00:00:00 2001 From: Mohammed Shafi Shajakhan Date: Wed, 6 Jun 2012 10:33:42 +0530 Subject: [PATCH] --- yaml --- r: 311365 b: refs/heads/master c: a23415fd7ed4bfa8e203ecf141d43da7180193af h: refs/heads/master i: 311363: 6cf7b6e24b14fd073fb1855c6da14e20560f2a5b v: v3 --- [refs] | 2 +- trunk/drivers/net/wireless/ath/ath9k/main.c | 9 --------- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/[refs] b/[refs] index 7505b0d22313..b0f22870347b 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 2031b4c2b4904f7448ab9e4bc6b9bf16e32709f5 +refs/heads/master: a23415fd7ed4bfa8e203ecf141d43da7180193af diff --git a/trunk/drivers/net/wireless/ath/ath9k/main.c b/trunk/drivers/net/wireless/ath/ath9k/main.c index 08506f190f27..ac41f1e3ab9f 100644 --- a/trunk/drivers/net/wireless/ath/ath9k/main.c +++ b/trunk/drivers/net/wireless/ath/ath9k/main.c @@ -1467,15 +1467,6 @@ static int ath9k_change_interface(struct ieee80211_hw *hw, mutex_lock(&sc->mutex); ath9k_ps_wakeup(sc); - /* See if new interface type is valid. */ - if ((new_type == NL80211_IFTYPE_ADHOC) && - (sc->nvifs > 1)) { - ath_err(common, "When using ADHOC, it must be the only" - " interface.\n"); - ret = -EINVAL; - goto out; - } - if (ath9k_uses_beacons(new_type) && !ath9k_uses_beacons(vif->type)) { if (sc->nbcnvifs >= ATH_BCBUF) {