Message ID | 20230817121718.989-1-prasunmaiti87@gmail.com |
---|---|
State | Accepted |
Headers | show
Return-Path: <openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=patchwork.ozlabs.org) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4RRPGg1n6qz1xrk for <incoming@patchwork.ozlabs.org>; Thu, 17 Aug 2023 22:20:25 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=3VwGqam7Ja/gSBEoFL6s87lxuRYp0jmTOzt6s0a29rQ=; b=xW5PQtElcKSjNe wpNIGDi6zABJfo4cP6mB9qrVhnpt89PwQcjO4DtnWBsea0dVZt87oBi2dxwqqfhZIUIL0/5qMRSse aCE/e0QFb1GyJ76AIJGOhrgQEypj6jTs/xwzp1r/jdY2cIq5Ro/nwPIgQ+EYhp1YMiPrRQWj4d8zI BpG0+MUyXLT1Be7iV4RdRLdLAe7FwJCT+Zvww+cyP5bD+B434mYbDcnyagwnIOrHW6PwCQsv8DpkW 1iGC7UA5IRZsHE6ymmjJRgDjFTAyN6zRhxvqtl5fc+l6M/QwQEODx3AfYi9YB+Jb7w3MJvPjyNwtD 4KdvNc6FRq1vC4c3IR4w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qWbwU-006Mc9-2Z; Thu, 17 Aug 2023 12:17:34 +0000 Received: from mail-pf1-x42b.google.com ([2607:f8b0:4864:20::42b]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qWbwS-006MbK-10 for openwrt-devel@lists.openwrt.org; Thu, 17 Aug 2023 12:17:33 +0000 Received: by mail-pf1-x42b.google.com with SMTP id d2e1a72fcca58-689f4fb1c29so66563b3a.0 for <openwrt-devel@lists.openwrt.org>; Thu, 17 Aug 2023 05:17:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1692274648; x=1692879448; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=cLyS9uj9KXxtcuMEEa1C9gKxvxVoHx9cMNRNns8Qdj0=; b=FLchWV3kh6mxugTsVO9x7bVSthYwTcs0grk0QAoxoSOFrk8gifV9qdoQFBWr9+NV7x e+CSGjyYEjVw4ffnTDpVHk14eax9PA+sX2EYy/UH5Z6XD+wS6s/VY68lMUsLS/NptPNi Oq+9ph5pSOdVV2A/URRmlTzv0Ag3wIrMsjed2vtrolRoCvHoQhs7CZaLpfiPw7UySLYv z6+aOEWVPBp8mmEFk2wcAxxCwEvxYgj+PWzWRmzleNitUdSEEi7XnzVzNHZs8DKTTjAY 8kQB9lkwbj6qq2ALqpl1+9ovPuYwibY+L/GfO7liMerJ1YXbNLdGc6qL3EdVte96uxQo kqbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692274648; x=1692879448; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=cLyS9uj9KXxtcuMEEa1C9gKxvxVoHx9cMNRNns8Qdj0=; b=Gq2Ag0ljeEJtggSNECRgRgjBNFC7mzeQxTQLUrMtYiHGUNPIcT7ORDDm6bt8x6YfTe javWqrpmwfJrEDj7z0d+rGUTAc5lA6nRk1zKPyujxUi+Cat8buuX+Bt3b8yZDZUY6utP kwzyyKO7glcMjrlkFNZ2Xwu209mxolkslaZh8jdIA6jYNsGOEZf6mv3KUs+8W5bBUIwU paq/cPPHJXrfeEpSxc/B7nrD1vTkUFEwrRNIQ4lUYCjbfXaI9BzpoHT7FL6XeK2Z85Hv Ctl5wifzf265grRH7+gGUZM847rmx3BALZstPsDApPkbl74pB2JpSd8kEz39P5EDb/+9 Z8UA== X-Gm-Message-State: AOJu0Yx0BwnAvZU68SI2By+n40ex96gAcFpxiRnMuQOKod1Rt/+TBPfX bA+2atSSIKnzN+M23cyP723Z6atfIgg= X-Google-Smtp-Source: AGHT+IHDpzZWHCrBzL7DMhmKCLtu24T1Ss5PhbtCQTQmGojJgcluwe9h9ILPxxPJhAubgUYE/1dVIg== X-Received: by 2002:a05:6a20:3c8b:b0:132:d09f:1716 with SMTP id b11-20020a056a203c8b00b00132d09f1716mr2980723pzj.2.1692274648166; Thu, 17 Aug 2023 05:17:28 -0700 (PDT) Received: from BALT-PMAITI.maxlinear.com ([116.206.202.170]) by smtp.gmail.com with ESMTPSA id p26-20020a63b81a000000b0055387ffef10sm13389237pge.24.2023.08.17.05.17.26 for <openwrt-devel@lists.openwrt.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Aug 2023 05:17:27 -0700 (PDT) From: Prasun Maiti <prasunmaiti87@gmail.com> To: OpenWrt Development List <openwrt-devel@lists.openwrt.org> Subject: [PATCH] netifd: allow to disable radio if reconf is enable Date: Thu, 17 Aug 2023 17:47:18 +0530 Message-Id: <20230817121718.989-1-prasunmaiti87@gmail.com> X-Mailer: git-send-email 2.36.0.windows.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230817_051732_349330_EA16E7E3 X-CRM114-Status: GOOD ( 11.12 ) X-Spam-Score: 0.1 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: From: "Prasun Maiti" radio is not down when reconf is enabled, as not invoking __wireless_device_set_down() and it is following reconf flow. So, proceed if radio is not disabled for reconf Content analysis details: (0.1 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:42b listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [prasunmaiti87[at]gmail.com] 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit [prasunmaiti87[at]gmail.com] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: OpenWrt Development List <openwrt-devel.lists.openwrt.org> List-Unsubscribe: <https://lists.openwrt.org/mailman/options/openwrt-devel>, <mailto:openwrt-devel-request@lists.openwrt.org?subject=unsubscribe> List-Archive: <http://lists.openwrt.org/pipermail/openwrt-devel/> List-Post: <mailto:openwrt-devel@lists.openwrt.org> List-Help: <mailto:openwrt-devel-request@lists.openwrt.org?subject=help> List-Subscribe: <https://lists.openwrt.org/mailman/listinfo/openwrt-devel>, <mailto:openwrt-devel-request@lists.openwrt.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "openwrt-devel" <openwrt-devel-bounces@lists.openwrt.org> Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org |
Series |
netifd: allow to disable radio if reconf is enable
|
expand
|
diff --git a/wireless.c b/wireless.c index 873c437..898a012 100644 --- a/wireless.c +++ b/wireless.c @@ -681,7 +681,7 @@ wdev_set_config_state(struct wireless_device *wdev, enum interface_config_state return; wdev->config_update = false; - if (s == IFC_RELOAD && wdev->reconf && wdev->state == IFS_UP) { + if (!wdev->disabled && s == IFC_RELOAD && wdev->reconf && wdev->state == IFS_UP) { wireless_device_reconf(wdev); return; }