Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp30233521rwd; Thu, 6 Jul 2023 02:56:44 -0700 (PDT) X-Google-Smtp-Source: APBJJlFbO47eyrkCqGL4KtWS7QYc25oKCAF+yNQ6LRFase0YuBT/JJl4HW5f8LIYKV4IihhiShkY X-Received: by 2002:a05:6870:5254:b0:1a2:cfd7:bfd0 with SMTP id o20-20020a056870525400b001a2cfd7bfd0mr1639159oai.9.1688637404498; Thu, 06 Jul 2023 02:56:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688637404; cv=none; d=google.com; s=arc-20160816; b=rvxpC6JQxPxU6Ge2pPc47sh3EyEtnAQH+r9hH64Mvj7LwBaG43/qO9m9E867U8GXC2 wamxH/G9epc9b3hiLyYtu8E1yeJnqHo2srWgIjK+NqpmqZFMrh5Pz7StMluu+AcrCbV8 x2wczD/Dc6iATC02+tLs8n2plk+B7lfYu8mUoehXEN6zHB5D/mJI5I6BqaJ9WdBKOuFZ L0c5epY9jpF6psKoZE0CNk5lE8rQYFN4U5/LuH3uywDcdj1fbmXF/5S+TIgT5Hk4B5Oe xZRyIiHBiH6J4ID0/cj2UhNW9ieWnu8plKI4nBnjL1VLmQfg0CJnJnetnfpycrEI3Vsl ldVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=Kp/nj6yJsLo1IiUjSfTe+rkA9vmPs8vxvrCAwSuCRVg=; fh=nfJIij/IsXY3QBqZb8fybwPQiGDbfX7KtNVsJ/Hpn6Y=; b=NpaoqA/G+UTuE9g3Qof+W1Kr7yYnZuZrAcsCVLBzEVrhyFTB3G3FcufyIyofiQJNIh GiZSiVxUzOuAEJvNl+WTVLejwknGLFd6L+bKL6ZsLN3IGZib+loR79MIOL1+J7FheWdu 3yzVTfGzsyeJgF09de2jiWcAnDHuE+r2v9SDZchAinkO9kpfRDUGhHTQ7GSKCK2jNdg9 Q8T7MM1UaTi6GhIb57XL6uYxklF7SZSgnjxUXrgRlTS/5bLAnS90OPmhmDW/RTq2dhrj g8SIGwNVrliKrn59lPIdebfpbbPAv0pMf2BX9+Fu4Po591zlLZSyuqEUi75TX4z6+0cd RGGA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=fraunhofer.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ki7-20020a170903068700b001b841d54b7csi917200plb.206.2023.07.06.02.56.10; Thu, 06 Jul 2023 02:56:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=fraunhofer.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231915AbjGFJuq (ORCPT + 59 others); Thu, 6 Jul 2023 05:50:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48606 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229518AbjGFJuo (ORCPT ); Thu, 6 Jul 2023 05:50:44 -0400 X-Greylist: delayed 599 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Thu, 06 Jul 2023 02:50:41 PDT Received: from mail.wsbck.net (unknown [IPv6:2a03:4000:6:f837:b87d:beff:fe7a:4fa2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AACF31998; Thu, 6 Jul 2023 02:50:41 -0700 (PDT) From: Johannes Wiesboeck To: Kalle Valo Cc: Johannes Wiesboeck , =?UTF-8?q?Michael=20Wei=C3=9F?= , Amitkumar Karwar , Ganapathi Bhat , Sharvari Harisangam , Xinming Hu , linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] wifi: mwifiex: Set WIPHY_FLAG_NETNS_OK flag Date: Thu, 6 Jul 2023 11:34:36 +0200 Message-ID: <20230706093437.3380526-1-johannes.wiesboeck@aisec.fraunhofer.de> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,RDNS_NONE, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Allow moving the wiphy device for mwififex to a non-inital network namespace. Many wireless drivers enable this flag implicitly by initializing through the generic ieee80211_alloc_hw_nm function. As mwifiex does not utilize this function WIPHY_FLAG_NETNS_OK must be set explicitly. Moving to network namespace and working connection tested using wpa_supplicant from a network namespace as well as from a container on GyroidOS. The hardware was the Toradex Apalis i.MX8QM Board using the Azurewave AW-CM276NF wireless module. Signed-off-by: Johannes Wiesboeck Reviewed-by: Michael Weiß --- drivers/net/wireless/marvell/mwifiex/cfg80211.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/marvell/mwifiex/cfg80211.c b/drivers/net/wireless/marvell/mwifiex/cfg80211.c index 813d1cbebe19b..ba4e29713a8c9 100644 --- a/drivers/net/wireless/marvell/mwifiex/cfg80211.c +++ b/drivers/net/wireless/marvell/mwifiex/cfg80211.c @@ -4395,6 +4395,7 @@ int mwifiex_register_cfg80211(struct mwifiex_adapter *adapter) WIPHY_FLAG_AP_UAPSD | WIPHY_FLAG_HAS_REMAIN_ON_CHANNEL | WIPHY_FLAG_HAS_CHANNEL_SWITCH | + WIPHY_FLAG_NETNS_OK | WIPHY_FLAG_PS_ON_BY_DEFAULT; if (ISSUPP_TDLS_ENABLED(adapter->fw_cap_info)) -- 2.41.0