From patchwork Fri Jun 26 15:29:38 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Pali_Roh=C3=A1r?= X-Patchwork-Id: 11627789 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id BA011913 for ; Fri, 26 Jun 2020 15:29:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 9D1EE2080C for ; Fri, 26 Jun 2020 15:29:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1593185386; bh=zXjG44VNS3z0g6/r9OQ45OaHncYIm/HWnlomXgb0td4=; h=From:To:Cc:Subject:Date:List-ID:From; b=nMiAqk1rBSs16JaZvssIvnRe7huBlSGoIVGSm5gRiTrZPd8X0VgT961gpQNufymCb YW9ZAVkdU5L7iXpsTkMvLgBDxqEISwoJWH6xJmj7nSOfOuse/2gMyPqcR5XsLzMK75 xR7G5JCmW1W0a8qz+bPrbaAiDBqsKyvKWYyzN++8= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728513AbgFZP3p (ORCPT ); Fri, 26 Jun 2020 11:29:45 -0400 Received: from mail.kernel.org ([198.145.29.99]:35518 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725821AbgFZP3p (ORCPT ); Fri, 26 Jun 2020 11:29:45 -0400 Received: from pali.im (pali.im [31.31.79.79]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id BE7E7207E8; Fri, 26 Jun 2020 15:29:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1593185384; bh=zXjG44VNS3z0g6/r9OQ45OaHncYIm/HWnlomXgb0td4=; h=From:To:Cc:Subject:Date:From; b=jwz6I1HZkH/aTM1g3LDJ+AHjiTXYI38VupkBjQwvQZqebkUAguYylrVaTlYZTiK5w fsaLM+YWeysCXxgUZi73Rr4dPoXgHM5gWtJlUnwbuz7pcogd5/FNQcePXQmmTq00NI d5I3wUED54W/zXIyxPK9d8kyBNRKhl+u1td3TPXg= Received: by pali.im (Postfix) id 9A82C890; Fri, 26 Jun 2020 17:29:42 +0200 (CEST) From: =?utf-8?q?Pali_Roh=C3=A1r?= To: Ganapathi Bhat , Amitkumar Karwar , Xinming Hu , Kalle Valo Cc: linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] mwifiex: Use macro MWIFIEX_MAX_BSS_NUM for specifying limit of interfaces Date: Fri, 26 Jun 2020 17:29:38 +0200 Message-Id: <20200626152938.12737-1-pali@kernel.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org This macro is already used in mwifiex driver for specifying upper limit and is defined to value 3. So use it also in struct ieee80211_iface_limit. Signed-off-by: Pali Rohár --- drivers/net/wireless/marvell/mwifiex/cfg80211.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/marvell/mwifiex/cfg80211.c b/drivers/net/wireless/marvell/mwifiex/cfg80211.c index 4e4f59c17ded..867b5cf385a8 100644 --- a/drivers/net/wireless/marvell/mwifiex/cfg80211.c +++ b/drivers/net/wireless/marvell/mwifiex/cfg80211.c @@ -27,7 +27,8 @@ module_param(reg_alpha2, charp, 0); static const struct ieee80211_iface_limit mwifiex_ap_sta_limits[] = { { - .max = 3, .types = BIT(NL80211_IFTYPE_STATION) | + .max = MWIFIEX_MAX_BSS_NUM, + .types = BIT(NL80211_IFTYPE_STATION) | BIT(NL80211_IFTYPE_P2P_GO) | BIT(NL80211_IFTYPE_P2P_CLIENT) | BIT(NL80211_IFTYPE_AP),