Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp1276101lqb; Thu, 30 May 2024 06:02:11 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXPVSv4UMMItxp+iCIaDqpTjJYFeJ6aSSMQhTSPtJXoaYOt/eEkNtvvMRDJT8cMq9hDu04F/2ZRys8wrqHQI9PwJCWgwYPK5dpIQLP9fA== X-Google-Smtp-Source: AGHT+IEotyG6aUQTAM0MI+twakBOMrPthxt6XlE8qdO0ORXqUUmdbzy7LZDCcoTgD26C+uQ9XkBu X-Received: by 2002:a17:902:f351:b0:1f4:9138:8178 with SMTP id d9443c01a7336-1f619733b9dmr15851685ad.49.1717074130903; Thu, 30 May 2024 06:02:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717074130; cv=pass; d=google.com; s=arc-20160816; b=NXQ4Wgu461hCQ7f1jugPra9a6pvNHXvrFCYRWqYjp6Dhw/uz43+0Vj6SxF6GpsI8hj 6l4jH48Ll7yX4YkqU8N76dqERdhI0lL6LsgCwFliWZiDFy/vEnBT31y+7BUXJFTKjkF8 fpkoXQ1deiBWZ3Go8pMo2AXlKIewVrWUQ4ZMyTgiO/XTmK7oTXA3oXbjgMgnsYTadLEK /inkzKc7Cc3C1tHxsyHWN7WG5L19jyKyTNZQHgu8tSrny5yHUVQC/auz2i5A06dv/qMj kDurn4uum7A5OakyBN7VKUbYjj9Gi626Xd5XmaWIVey5XllwOvs+/zrtbrjtOov6NfCz e7Fg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=Sydny3qg+rklUUD6ifIOM/l1zDRoTaCnvyz7zi/0p1w=; fh=pTuy/h0Z2l1OEEGAwCMjXjxiTS8jKrdxtzGZHfVgcag=; b=bfhz/xQt7DFsFK2z6dP3V8uKX7OYbKmMuVvbVWQyUU0HytlZT/d1aqAFv0JCXV2SnG rD/moq8dh22Eb5nTVUjEK1lhaxbNwWqV+skwjpKyRzE2ReATqmpasyLG5G+qnZa5nuhm tyc6dvtlitwOCUNbiRuOMa6HdRXEdIJVC01XkguvMfRaGKbe3ERP6I6GBbbVNNlywT1Q 7UOMIqoUjoWeo+CFiPz6R1FH4p12MggoxYEKHB0GYDet4jMgU/0/oezftLNQm2fkoH9P UabCbuAa5MOMzQyJ6hBwlhtAsLlYjFRT5nTXHowVPYZhEKSVWk0NgM4FjC3TCslTD7MQ z1mQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-wireless+bounces-8314-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-8314-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d9443c01a7336-1f44c78bd78si21752655ad.27.2024.05.30.06.02.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 May 2024 06:02:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-8314-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-wireless+bounces-8314-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-8314-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 44C162879E1 for ; Thu, 30 May 2024 13:02:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 815681E488; Thu, 30 May 2024 13:02:06 +0000 (UTC) X-Original-To: linux-wireless@vger.kernel.org Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [185.203.201.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7305017C9EC for ; Thu, 30 May 2024 13:02:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.203.201.7 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717074126; cv=none; b=D9jPI0Xxc0ASVt2c0EjSQTCjJuBvPaE35leVeUmOCkUGn65tZ76l7crodIwGYstAGUtdBLJJimc6dgQ3EZPcQREPsTVbRL44GGcyR8Dj9FnGLDpNrfkQa/Rm3/O6jRXuO2tNUPjR5gZm2c+fj/097m4cLOE6tl2jOXV7DBbFnGI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717074126; c=relaxed/simple; bh=Zclcy1rakeT5f0M+PlcV2Mt4kyDmQgT74mkvgQcSmBg=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=SB9ZboDYeNHuBvyiJkPpgTUq29yxdmvtYpV0T/h5oW7Z0cs2eovGBpf0pz6Z3g49UFO2vyR//pbi7oYhZwumZwNLaPkHplFMzztXDYgW7NKLVffyyaq6GZZVD0Q1smwFoujc+7GRDetuSu1gWMpjEdwI72WHoTRftKJGVo6jBMk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de; spf=pass smtp.mailfrom=pengutronix.de; arc=none smtp.client-ip=185.203.201.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sCfPq-00061d-1p; Thu, 30 May 2024 15:01:58 +0200 Received: from [2a0a:edc0:0:1101:1d::28] (helo=dude02.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sCfPp-003b90-Hq; Thu, 30 May 2024 15:01:57 +0200 Received: from localhost ([::1] helo=dude02.red.stw.pengutronix.de) by dude02.red.stw.pengutronix.de with esmtp (Exim 4.96) (envelope-from ) id 1sCfPp-006vb6-1Q; Thu, 30 May 2024 15:01:57 +0200 From: Sascha Hauer To: linux-wireless@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Brian Norris , Francesco Dolcini , Kalle Valo , David Lin , Sascha Hauer Subject: [PATCH] wifi: mwifiex: increase max_num_akm_suites Date: Thu, 30 May 2024 15:01:56 +0200 Message-Id: <20240530130156.1651174-1-s.hauer@pengutronix.de> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: s.hauer@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-wireless@vger.kernel.org The maximum number of AKM suites will be set to two if not specified by the driver. Set it to CFG80211_MAX_NUM_AKM_SUITES to let userspace specify up to ten AKM suites in the akm_suites array. Without only the first two AKM suites will be used, further ones are ignored. Signed-off-by: Sascha Hauer --- Current wpa_supplicant/hostapd only put a maximum of two into the akm_suites array as well, a patch changing this can be found here: http://lists.infradead.org/pipermail/hostap/2024-May/042720.html --- drivers/net/wireless/marvell/mwifiex/cfg80211.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/wireless/marvell/mwifiex/cfg80211.c b/drivers/net/wireless/marvell/mwifiex/cfg80211.c index b909a7665e9cc..908dfe01c30d7 100644 --- a/drivers/net/wireless/marvell/mwifiex/cfg80211.c +++ b/drivers/net/wireless/marvell/mwifiex/cfg80211.c @@ -4358,6 +4358,8 @@ int mwifiex_register_cfg80211(struct mwifiex_adapter *adapter) BIT(NL80211_IFTYPE_P2P_GO) | BIT(NL80211_IFTYPE_AP); + wiphy->max_num_akm_suites = CFG80211_MAX_NUM_AKM_SUITES; + if (ISSUPP_ADHOC_ENABLED(adapter->fw_cap_info)) wiphy->interface_modes |= BIT(NL80211_IFTYPE_ADHOC); -- 2.39.2