linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCHv2 1/2] ath9k_htc: remove driver specific checks for interfaces combinations
@ 2012-08-26 20:55 Antonio Quartulli
  2012-08-26 20:55 ` [PATCHv2 2/2] ath9k_htc: advertise allowed VIFs combination Antonio Quartulli
  2012-08-27  5:17 ` [PATCHv2 1/2] ath9k_htc: remove driver specific checks for interfaces combinations Mohammed Shafi
  0 siblings, 2 replies; 16+ messages in thread
From: Antonio Quartulli @ 2012-08-26 20:55 UTC (permalink / raw)
  To: Luis R. Rodriguez, Sujith Manoharan
  Cc: ath9k-devel, linux-wireless, Antonio Quartulli

Thanks to the new interface combinations code we can safely remove all the
driver specific checks for unsupported modes.

Signed-off-by: Antonio Quartulli <ordex@autistici.org>
---

this patch if v2 of "ath9k_htc: allow coexistence of IBSS with other modes". Now
it is more generic.



 drivers/net/wireless/ath/ath9k/htc_drv_main.c | 20 --------------------
 1 file changed, 20 deletions(-)

diff --git a/drivers/net/wireless/ath/ath9k/htc_drv_main.c b/drivers/net/wireless/ath/ath9k/htc_drv_main.c
index c32f6e3..51c69f2 100644
--- a/drivers/net/wireless/ath/ath9k/htc_drv_main.c
+++ b/drivers/net/wireless/ath/ath9k/htc_drv_main.c
@@ -1040,26 +1040,6 @@ static int ath9k_htc_add_interface(struct ieee80211_hw *hw,
 
 	mutex_lock(&priv->mutex);
 
-	if (priv->nvifs >= ATH9K_HTC_MAX_VIF) {
-		mutex_unlock(&priv->mutex);
-		return -ENOBUFS;
-	}
-
-	if (priv->num_ibss_vif ||
-	    (priv->nvifs && vif->type == NL80211_IFTYPE_ADHOC)) {
-		ath_err(common, "IBSS coexistence with other modes is not allowed\n");
-		mutex_unlock(&priv->mutex);
-		return -ENOBUFS;
-	}
-
-	if (((vif->type == NL80211_IFTYPE_AP) ||
-	     (vif->type == NL80211_IFTYPE_ADHOC)) &&
-	    ((priv->num_ap_vif + priv->num_ibss_vif) >= ATH9K_HTC_MAX_BCN_VIF)) {
-		ath_err(common, "Max. number of beaconing interfaces reached\n");
-		mutex_unlock(&priv->mutex);
-		return -ENOBUFS;
-	}
-
 	ath9k_htc_ps_wakeup(priv);
 	memset(&hvif, 0, sizeof(struct ath9k_htc_target_vif));
 	memcpy(&hvif.myaddr, vif->addr, ETH_ALEN);
-- 
1.7.12


^ permalink raw reply related	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2012-09-26 20:11 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-26 20:55 [PATCHv2 1/2] ath9k_htc: remove driver specific checks for interfaces combinations Antonio Quartulli
2012-08-26 20:55 ` [PATCHv2 2/2] ath9k_htc: advertise allowed VIFs combination Antonio Quartulli
2012-08-26 23:48   ` Julian Calaby
2012-08-27  5:38     ` Johannes Berg
2012-08-27  5:41       ` Julian Calaby
2012-08-27  6:42         ` Antonio Quartulli
2012-08-27  6:45           ` Julian Calaby
2012-08-27  7:16         ` ath9k_htc: number of VIFs limitation Daniel Doron
2012-09-26 20:11           ` Adrian Chadd
2012-08-27  5:17 ` [PATCHv2 1/2] ath9k_htc: remove driver specific checks for interfaces combinations Mohammed Shafi
2012-08-27  6:54   ` Antonio Quartulli
2012-08-27  9:15     ` Mohammed Shafi
2012-08-27  9:42       ` Antonio Quartulli
2012-09-03 14:01       ` Mohammed Shafi
2012-09-04  7:07         ` Antonio Quartulli
2012-09-04  7:47           ` Mohammed Shafi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).