Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp6561812iob; Tue, 10 May 2022 23:40:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxOYCLZ6d/xlMk6U5rhp/x/zC/fAhqmbpfi7vsV3fvyvxWqT4jTTNEktv5A0wuigKNmQvLO X-Received: by 2002:a17:903:41c9:b0:15e:b449:ce9a with SMTP id u9-20020a17090341c900b0015eb449ce9amr23907432ple.136.1652251227190; Tue, 10 May 2022 23:40:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652251227; cv=none; d=google.com; s=arc-20160816; b=RQCpvuop5gWPJvYpUuSCBN4ueiiXunwHmjNuNUHLKomYr15Vq1kQhhx5CR9AWBKHDm hMvYB4+Czi6ZBQSp+5DIYnLvcZDg3lrRXEma1hbXqCepIxqt37qTq3t0eEBpd/cUD6qA 652+WRLhgLN/COgPEMsb2fRr/9MdEIKtD7UyXM+05X7No0yDoXc3sZqrD9BIi5fngxD9 etdY0zHzZnAYeYxjd24YOLOPRPYuWWrO0PJESabB3TnaqILY5c6o84ay7rfbEgtwvcKu g3zv+l2XbKkzyfVZV2GjY+HEcBJF45kB+BK7Uc/LLM+aN1obO3s8fj/UlCof3kfYVemo yyLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:in-reply-to :date:references:subject:cc:to:from:dkim-signature; bh=0i83NiXyefQOUSBfjjLZG3CnSJ3qxbr8ry+aarhUdT8=; b=GiVIdu4lE9ahCBrkPCyspQ54Agm12uNTIZ9Xhc5eb/JvBcujVD34Jt9v8vwsPoGT0S tx1Rrra/oOIsEMqQoUcp6y7ekJ8ZjKytTPK50ZTuCFAbe21bNOYw+M1UGX2D4UztG01s KtS1ubGXQlOyB+Z1CeE1u/AvUEbkIVVcLkA7tU2aIFNS5yB5yV7tyUG7GCrvYBP0bfLM vTqXZPZz2JMcB1XOaCDmIE6a+UkvwiC7AClfdKQprLSO/mRw0ObPkxix82ybeAmoNaU2 sY8H6dgVkIeOb3+M5L/eRDOWxDCvCvW0iBlX5b1BZFjIEmmet+XNrw0LdJKgQBvIvZF5 R74g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rJI7fV0H; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 189-20020a6302c6000000b003c6b96fbd91si1856433pgc.434.2022.05.10.23.40.15; Tue, 10 May 2022 23:40:27 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rJI7fV0H; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242019AbiEKElp (ORCPT + 69 others); Wed, 11 May 2022 00:41:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47566 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239632AbiEKElg (ORCPT ); Wed, 11 May 2022 00:41:36 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A3D0F6B03E for ; Tue, 10 May 2022 21:41:34 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 4E401B82013 for ; Wed, 11 May 2022 04:41:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 03009C385DB; Wed, 11 May 2022 04:41:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1652244092; bh=wPetpvpmXglh7SVFtEWh8pbnlApf9kJM1ighISf3zHY=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=rJI7fV0HXYMMA38PtDVT0cFF7kHaY5XJCma0j4vMUCctC27dWMZFzohRI9bVWsy46 VjPPKAC33F6AwqeYQGMQZohKg0LaBOftb9i4YUAOWmWwGm4W0kytfQg9FvQWmcwOYs 843dxqnLHbj1nrGzjo6FfPpeaghpU1O/9T9f3c0FFtjhCPiJczhsb1eiWqbvV8YLuC L5aE77UjEk2sDxhZ9NAxhANG+IN2GgJyjuisMELssxBId2SURpJTv+1P5JkWDHZfJQ tfGTqN3p1rC1kDREuPSIoiariWHAMvvR9K983Bw7FBiMIj1JxHsaVJhSP70x/dkdPV +wB0MhI2S/UFQ== From: Kalle Valo To: Cc: , , , Subject: Re: [PATCH 3/5] wilc1000: fix crash observed in AP mode with cfg80211_register_netdevice() References: <20220504161924.2146601-1-ajay.kathat@microchip.com> <20220504161924.2146601-3-ajay.kathat@microchip.com> <87pmkmylex.fsf@kernel.org> <57cb3e2f1ba75aec472ca5cfdcd8fc3c7ffffeb0.camel@sipsolutions.net> <112580fc-4394-f6f2-2b85-b385ba4714b2@microchip.com> Date: Wed, 11 May 2022 07:41:28 +0300 In-Reply-To: <112580fc-4394-f6f2-2b85-b385ba4714b2@microchip.com> (Ajay Kathat's message of "Tue, 10 May 2022 09:55:16 +0000") Message-ID: <87h75wy93b.fsf@kernel.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 writes: > On 10/05/22 01:14, Johannes Berg wrote: >> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe >> >> On Mon, 2022-05-09 at 13:49 +0000, Ajay.Kathat@microchip.com wrote: >>> As I understand, in WILC "ieee80211_ptr" is used for the station/AP >>> interface but not to configure the monitor interface which gets >>> additionally added in AP mode. In AP mode, for an interface( wlan0 ), an >>> additional monitor interface( mon.wlan0 ) gets created. A netdevice is >>> register for monitor interface(mon.wlan0) to transmit/receive frames >>> from/to hostapd. That interface doesn't explicitly set up >>> 'ieee80211_ptr' because the original interface(wlan0) uses it, so using >>> "cfg80211_register/unregister" API's for mon.wlan0 interfaces fails. >> Btw, this probably should just be removed in favour of using the nl80211 >> based APIs for hostapd ... >> >> But I think as a quick bugfix goes this is fine, but it'd be better to >> remove this and either allow hostapd to create the interface with the >> proper ieee80211_ptr, or to just use the nl80211-based TX/RX. > > > Thanks Johannes. Yes, this patch would help to make the AP mode work. > I will check on using nl80211 based APIs for hostapd but might take some > time to change. Ok, I'll take this as a quick fix but please switch to using proper interfaces. -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches