Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp513023ybv; Sat, 22 Feb 2020 08:19:11 -0800 (PST) X-Google-Smtp-Source: APXvYqwE3rCjJyxmQVvMXSM+ye/Gy2KNMcr/Lnq6H+ATAeDOU24C9Fm0r7V6ph+indwHt/QBufQw X-Received: by 2002:a05:6830:22ca:: with SMTP id q10mr35648326otc.280.1582388350941; Sat, 22 Feb 2020 08:19:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582388350; cv=none; d=google.com; s=arc-20160816; b=bQpgD0MSqSyC2GPWArthZawZTNWiCe4LY1S/ZRHcgpfr/+6Tr+OaEgsPtD/KA/0Sf6 FONpWW2DM5rPb1C1mcTlSSqUq/d45lcDacXC6hSon44AoyJPiUcf4GyDwiwIIMljXVKw tXhbr47peImytBOCS/szwERS9BtAQM4hgPLVBp5AQx4Y1KnNSca8nqzai/tvcGO4kzK8 RCX5IsPgDShU4YIxEl/q8kWDDQpRTNVtO+2iHoHWjYb3a5QUwY6sRzScZVo3wdQokVmN jsSjcGrd3/KYG3/M30ioUDEPVg4FZBjhtj/fSlOcY2FElqbwCez2aCiReqpvcguB310B H+yg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=shJZobte9/bk6RlpvDnRKBrRHoqB2vI01y5szO87HMg=; b=fvqiihrWpo7/DZQ8TQyZVLWlGhB/l9UWo9RXquksO9Y3YAk5JEWLcPAxshwSqO9AfD MG9tkVfFaLpfOVeDH9/R+ygVrrHh9yNVFQ13xBazLdTHsOfts5eoYnbBSbXOhAEc/T2l 50x/7gbJJW+btlFWtMqqwQPj5iJGlbBKis7PxgZfdZ5XdGWYEI6mY3vHokPOI5dyQ8C8 L1CsPyboheDOluD5+5Trdh1Q4A22fuiIsgQV4YxwGX6uZ4+uWQMnrKH/bGt8GOeqnfEB nB53AdFg7toxFpx4IiIyzvkXzH5zwqsXh1ojgmrqdLb8Qt6dyBE4F+6TwoinuqXzS4Uk 7dxg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a124si2565476oii.138.2020.02.22.08.18.30; Sat, 22 Feb 2020 08:19:10 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726562AbgBVQRr (ORCPT + 99 others); Sat, 22 Feb 2020 11:17:47 -0500 Received: from s3.sipsolutions.net ([144.76.43.62]:34096 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726310AbgBVQRr (ORCPT ); Sat, 22 Feb 2020 11:17:47 -0500 Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.93) (envelope-from ) id 1j5XTN-0015Y5-O0; Sat, 22 Feb 2020 17:17:45 +0100 Message-ID: <8a1516685201cc25cdcb8ac0016e0b5f30401f2f.camel@sipsolutions.net> Subject: Re: [PATCH 1/7] cfg80211: More error messages for key addition failures From: Johannes Berg To: Jouni Malinen Cc: linux-wireless@vger.kernel.org Date: Sat, 22 Feb 2020 17:17:44 +0100 In-Reply-To: <20200222132548.20835-1-jouni@codeaurora.org> References: <20200222132548.20835-1-jouni@codeaurora.org> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.2 (3.34.2-1.fc31) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Sat, 2020-02-22 at 15:25 +0200, Jouni Malinen wrote: > > - if (!err) > + if (err) > + GENL_SET_ERR_MSG(info, "key not allowed"); > + if (!err) { > err = rdev_add_key(rdev, dev, key.idx, [...] Had to read this twice, but I don't see any reason not to put an else there? :) I can fix it up later when I apply it. Thanks, btw, BIGTK was definitely something we were also looking into now. johannes