* [RFC 3/3] ath9k_htc: Remove interface combination specific checks
@ 2012-08-13 15:23 Mohammed Shafi Shajakhan
2012-08-13 15:38 ` Sujith Manoharan
0 siblings, 1 reply; 3+ messages in thread
From: Mohammed Shafi Shajakhan @ 2012-08-13 15:23 UTC (permalink / raw)
To: John W. Linville
Cc: linux-wireless, Rodriguez Luis, ath9k-devel,
Mohammed Shafi Shajakhan
From: Mohammed Shafi Shajakhan <mohammed@qca.qualcomm.com>
Once the driver advertizes interface combination logic
based on its firmware/hardware limitation, cfg80211
takes care of all the necessary logic such as maximum
beaconing vifs, standlone interface etc.
Signed-off-by: Mohammed Shafi Shajakhan <mohammed@qca.qualcomm.com>
---
drivers/net/wireless/ath/ath9k/htc_drv_main.c | 20 --------------------
1 files changed, 0 insertions(+), 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 c785129..a37ae41 100644
--- a/drivers/net/wireless/ath/ath9k/htc_drv_main.c
+++ b/drivers/net/wireless/ath/ath9k/htc_drv_main.c
@@ -1038,26 +1038,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.0.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [RFC 3/3] ath9k_htc: Remove interface combination specific checks
2012-08-13 15:23 [RFC 3/3] ath9k_htc: Remove interface combination specific checks Mohammed Shafi Shajakhan
@ 2012-08-13 15:38 ` Sujith Manoharan
2012-08-14 5:02 ` Mohammed Shafi Shajakhan
0 siblings, 1 reply; 3+ messages in thread
From: Sujith Manoharan @ 2012-08-13 15:38 UTC (permalink / raw)
To: Mohammed Shafi Shajakhan
Cc: John W. Linville, linux-wireless, Rodriguez Luis, ath9k-devel
Mohammed Shafi Shajakhan wrote:
> - 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;
> - }
> -
Looks okay.
Sujith
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [RFC 3/3] ath9k_htc: Remove interface combination specific checks
2012-08-13 15:38 ` Sujith Manoharan
@ 2012-08-14 5:02 ` Mohammed Shafi Shajakhan
0 siblings, 0 replies; 3+ messages in thread
From: Mohammed Shafi Shajakhan @ 2012-08-14 5:02 UTC (permalink / raw)
To: Sujith Manoharan
Cc: John W. Linville, linux-wireless, Rodriguez Luis, ath9k-devel
On Monday 13 August 2012 09:08 PM, Sujith Manoharan wrote:
> Mohammed Shafi Shajakhan wrote:
>> - 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;
>> - }
>> -
>
> Looks okay.
thanks for the review!
>
> Sujith
>
--
thanks,
shafi
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-08-14 5:02 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-13 15:23 [RFC 3/3] ath9k_htc: Remove interface combination specific checks Mohammed Shafi Shajakhan
2012-08-13 15:38 ` Sujith Manoharan
2012-08-14 5:02 ` Mohammed Shafi Shajakhan
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).