Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp937733rdb; Fri, 1 Dec 2023 02:43:49 -0800 (PST) X-Google-Smtp-Source: AGHT+IF2Ruf9N2FKrnB4UfZaXZKktTGADIYG6hV327Qb+BP532LAt7gU3orC56SCiOztrplwJpNc X-Received: by 2002:a05:6808:f88:b0:3b5:37c6:6dcb with SMTP id o8-20020a0568080f8800b003b537c66dcbmr2992200oiw.21.1701427428875; Fri, 01 Dec 2023 02:43:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701427428; cv=none; d=google.com; s=arc-20160816; b=KliyuOOzJ5c0HMqfw3ThwhdgYANSnTJYVUgXumFBOYMh0Se4fDuRc5p+J9Whde4lqL 4KJ+68ClP8sTKw4Do/BH+n+Eo58vHieLyqEOcF+6ByFxHZxzKa3JQOqSP0ngQRIjbjc+ q4xe5L9zzHis6Gdos+qOH3LlOIFn+iPZp2M7BfDTTvjcCYovoniYI/xPHLP9NU9mrrfq f7Z/K1PwHQIXZ1ZeAdETBqtrwnnDpOSgJDeP5T8FT4wavWaC80s5O9dfcs5KZt96SY2L dGyLisN91M28Wo1cXLJkrlaP4L/tclHRPKTxE5oIh9RtiIUbKsx5JcLRlccBGJKc4JWh 0AQQ== ARC-Message-Signature: i=1; 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:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=9PD+eSgbXXCIBgWYOOHB5YNDolmENUoJUpsocWsMFtA=; fh=fwMNxyu+bZfAf53++GI+RFEVtyvTzA3QBuVTIX1tpVQ=; b=i/dkCv5XyDNQ1hql17SbHWUvaoOYKoF/XQRrUX8yGRCCUtuWmOCQ6bQc9sLyA1yfu5 NoUDPKxNOLZAK1cpJMysIo8ow9ZMQ0JtHGgUMVNbYV2l15tq+BjmlDS1hHoDe32Hnw2v GaV7w+uzPQ2enRGIXHa7yJmajYUUPQ4y7OBLOAWXOdlTaq/E+F4ipwAEA2Tu1OvLAGEe H7aSpF6k2IBtskqq2LvHcjPKU70H/GR0xemBSitU4dGw8JTmNT4xB6g90jt8MvU//2vA 7p32MlAZT5ssvDTgIQ7qkD1oGyHFf+x8wXO1HHnX4W9So4u91d92vwWiOAou4UcqAvFK cLtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=xEW3Th9n; spf=pass (google.com: domain of linux-wireless+bounces-281-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-wireless+bounces-281-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id o190-20020a62cdc7000000b006cb7f9ddbd5si2962653pfg.321.2023.12.01.02.43.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Dec 2023 02:43:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-281-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=xEW3Th9n; spf=pass (google.com: domain of linux-wireless+bounces-281-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-wireless+bounces-281-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 85206B210F5 for ; Fri, 1 Dec 2023 10:43:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DF5091C6A9; Fri, 1 Dec 2023 10:43:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sipsolutions.net header.i=@sipsolutions.net header.b="xEW3Th9n" X-Original-To: linux-wireless@vger.kernel.org Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:242:246e::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0B412196; Fri, 1 Dec 2023 02:43:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sipsolutions.net; s=mail; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Content-Type:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-To: Resent-Cc:Resent-Message-ID; bh=9PD+eSgbXXCIBgWYOOHB5YNDolmENUoJUpsocWsMFtA=; t=1701427417; x=1702637017; b=xEW3Th9nooAsM0W1CcZIg0b12j01TOZKH80QMYMyyOfIhPw 19d6g24BZEOUjMgkP4ALuR5DI5iEfELiWaiEqde449TT+NqU0+0eN46gRkPB8PcwF/JS1ld3FlIgr SQ/UJv5g0b+DLGr2cDra87iTUWDPbn4cmjahruIKArz4nVh5DXXI2+0lYxmOq2UqyjM23/u/BOyiu TGqFDdCJxbSiq3x9BP0WiE+U84qmaEeDv5Jw18gWcha1vGRZw/jRlgc/Hot442xr7mRdFl6kU2hQU dn1WEyEROVjMOMxt3ttl8Mk3Jb69fOAikeR9OHujb7QXfPSpZ2QxiX5syJxlPBlQ==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.97) (envelope-from ) id 1r90ze-0000000BBV7-3rZd; Fri, 01 Dec 2023 11:43:35 +0100 From: Johannes Berg To: linux-wireless@vger.kernel.org Cc: netdev@vger.kernel.org Subject: [PATCH wireless-next 0/3] netlink carrier race workaround Date: Fri, 1 Dec 2023 11:41:14 +0100 Message-ID: <20231201104329.25898-5-johannes@sipsolutions.net> X-Mailer: git-send-email 2.43.0 In-Reply-To: <346b21d87c69f817ea3c37caceb34f1f56255884.camel@sipsolutions.net> References: <346b21d87c69f817ea3c37caceb34f1f56255884.camel@sipsolutions.net> Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Hi again, So I had put this aside for a while, but really got annoyed by all the test failures now ... thinking about this again I basically now arrived at a variant of solution #3 previously outlined, and I've kind of convinced myself that userspace should always get an event with a new carrier_up_count as it does today. So I've implemented a new nl80211 attribute carrying the current carrier_up_count at the time of the wireless event, so that we can (in userspace) wait for the corresponding rtnetlink event if we haven't seen it yet. Patches for wpa_supplicant to follow. johannes