From patchwork Sun Aug 26 08:12:52 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antonio Quartulli X-Patchwork-Id: 1374571 Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id ADF733FCAE for ; Sun, 26 Aug 2012 08:13:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751993Ab2HZINU (ORCPT ); Sun, 26 Aug 2012 04:13:20 -0400 Received: from contumacia.investici.org ([178.255.144.35]:35062 "EHLO contumacia.investici.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751059Ab2HZINL (ORCPT ); Sun, 26 Aug 2012 04:13:11 -0400 Received: from [178.255.144.35] (contumacia [178.255.144.35]) (Authenticated sender: ordex@autistici.org) by localhost (Postfix) with ESMTPSA id 471D1E86DF; Sun, 26 Aug 2012 08:13:05 +0000 (UTC) X-DKIM: Sendmail DKIM Filter v2.8.2 contumacia.investici.org 471D1E86DF DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=autistici.org; s=stigmate; t=1345968788; bh=KrJNzxIYcld468/dAHWnUlbxH3l6emuz1tq5M9Nkh4o=; h=From:To:Cc:Subject:Date:Message-Id; b=kw5WSVRZgK+EXqRyZN/e5P9yoCg8Uto92hkFwGNKrdaAIUjX29HlWnm7kGIyj67Gq T4Nnf9NleqBP6p6a14HzFP46iq0aLi7nzhuMguBWUbJ7ECmzwaRr6AH1J5VZzpURq0 uTsA7zn+VjLDw7fyNJNDn9R8gPWxtmxJEUtlpSVI= From: Antonio Quartulli To: "Luis R. Rodriguez" , Sujith Manoharan Cc: ath9k-devel@lists.ath9k.org, linux-wireless@vger.kernel.org, Antonio Quartulli Subject: [PATCH 1/2] ath9k_htc: allow coexistence of IBSS with other modes Date: Sun, 26 Aug 2012 10:12:52 +0200 Message-Id: <1345968773-17166-1-git-send-email-ordex@autistici.org> X-Mailer: git-send-email 1.7.12 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Practical tests shown that ath9k_htc devices allow an IBSS VIF to coexist with VIF set up on other modes. This patch removes the check which block the creation of any other VIF whenever an IBSS one is already present. Signed-off-by: Antonio Quartulli --- drivers/net/wireless/ath/ath9k/htc_drv_main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 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..c41d85f 100644 --- a/drivers/net/wireless/ath/ath9k/htc_drv_main.c +++ b/drivers/net/wireless/ath/ath9k/htc_drv_main.c @@ -1045,9 +1045,9 @@ static int ath9k_htc_add_interface(struct ieee80211_hw *hw, 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"); + if (priv->num_ibss_vif && vif->type == NL80211_IFTYPE_ADHOC) { + ath_err(common, + "IBSS coexistence with another IBSS is not allowed\n"); mutex_unlock(&priv->mutex); return -ENOBUFS; }