From patchwork Wed Dec 1 02:18:38 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Cardona X-Patchwork-Id: 369471 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id oB12JHCg002219 for ; Wed, 1 Dec 2010 02:19:17 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753856Ab0LACTP (ORCPT ); Tue, 30 Nov 2010 21:19:15 -0500 Received: from mail-gw0-f46.google.com ([74.125.83.46]:48018 "EHLO mail-gw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753684Ab0LACTP (ORCPT ); Tue, 30 Nov 2010 21:19:15 -0500 Received: by gwj20 with SMTP id 20so3132165gwj.19 for ; Tue, 30 Nov 2010 18:19:14 -0800 (PST) Received: by 10.100.174.4 with SMTP id w4mr5820036ane.241.1291169954766; Tue, 30 Nov 2010 18:19:14 -0800 (PST) Received: from localhost.localdomain (adsl-99-114-136-65.dsl.pltn13.sbcglobal.net [99.114.136.65]) by mx.google.com with ESMTPS id x36sm7677206anx.34.2010.11.30.18.19.12 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 30 Nov 2010 18:19:14 -0800 (PST) From: Javier Cardona To: "John W. Linville" Cc: Javier Cardona , Steve Derosier , devel@lists.open80211s.org, linux-wireless@vger.kernel.org, Jiri Slaby , Nick Kossifidis , "Luis R. Rodriguez" , Bob Copeland Subject: [PATCH 2/3] ath5k: Prevent mesh interfaces from being counted as ad-hoc Date: Tue, 30 Nov 2010 18:18:38 -0800 Message-Id: <1291169919-3867-3-git-send-email-javier@cozybit.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1291169919-3867-1-git-send-email-javier@cozybit.com> References: <1291169919-3867-1-git-send-email-javier@cozybit.com> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Wed, 01 Dec 2010 02:19:17 +0000 (UTC) diff --git a/drivers/net/wireless/ath/ath5k/base.c b/drivers/net/wireless/ath/ath5k/base.c index 73c7118..44f3050 100644 --- a/drivers/net/wireless/ath/ath5k/base.c +++ b/drivers/net/wireless/ath/ath5k/base.c @@ -2847,7 +2847,7 @@ static int ath5k_add_interface(struct ieee80211_hw *hw, sc->bslot[avf->bslot] = vif; if (avf->opmode == NL80211_IFTYPE_AP) sc->num_ap_vifs++; - else + else if (avf->opmode == NL80211_IFTYPE_ADHOC) sc->num_adhoc_vifs++; }