Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp12062386ybi; Fri, 26 Jul 2019 04:10:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqz6o9uBbnGgTDLXEMEa1UElfQMKGmrI1Gsd0F35rOBLtlxfQBbwlfeMlsztYWucRoYvFfip X-Received: by 2002:aa7:9092:: with SMTP id i18mr21533776pfa.101.1564139456227; Fri, 26 Jul 2019 04:10:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564139456; cv=none; d=google.com; s=arc-20160816; b=I7cZMJJ4MWs2/3ufYDuWA04fRPrym8k2d4fR40h5+IzXZMdqcfhFjK5cAU/4ztIX6M WCfM5+YF+bhuuwy3vPb0x31gtqJDEI6p2q1U/JEgqYqFiKENHtGOSx6zf87sPJKTy5n9 1VOYxohMhHVPmoeHtSNf16DrV2sGJCv9DGEbea2RfdHCCPBTxfcooZu8pJh2/S3Er3mv OGbNeVHj4U5r6GStmMKwxyLd1Kmj3R0gWjxk2V5zwmEPxoZgHWArwOrBCVKAIRy7jkAz Q14LzBHQotfeDJs2cYamMAwVF0kooo903cFPza5AtvoAnb4bDNzmxn8jHSwJj/5ktAT5 J4Dg== 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=SPh0c/04ehK7DKS5J3Ki0NngzClngg2LKpdleqVqtww=; b=VfgVUeZkR0MseKKjvb/38PgNebtAJmXU8nJt8HYWSA+Doo6H1aL3U8rbKu94+QxDC6 qYQDIv5efD1SLlzgCPy7ApAZS5TATyrPT5wNaAhzZ2riFDByjWTNyHaZJVSjfPvS6Iyw OOi217y7Fk/cmPbDvV17fcAnJzXFumE9IjIl4zwC0r6d+A3ppCsfJuk1c0oSeFP8Ooym 8vgXrGH7leaKARphhI0VuWQayiqxtJN3OjKuBQzXou4HhOV6i8HetE0uEm00DxapDaa7 duog8iZuGY83Z6EfSjUFxwCHCIOVr0YeJMlzwFEUvG9pxp/VArTee+sAH9apRCig0IhQ 9vew== 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 31si17690976plz.290.2019.07.26.04.10.33; Fri, 26 Jul 2019 04:10:56 -0700 (PDT) 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 S1726688AbfGZLGo (ORCPT + 99 others); Fri, 26 Jul 2019 07:06:44 -0400 Received: from s3.sipsolutions.net ([144.76.43.62]:47286 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725953AbfGZLGo (ORCPT ); Fri, 26 Jul 2019 07:06:44 -0400 Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1hqy3f-0001Xs-Km; Fri, 26 Jul 2019 13:06:43 +0200 Message-ID: <0cc7d0c578b60730e77ecd03e2df240dd1b393a0.camel@sipsolutions.net> Subject: Re: [PATCH] mac80211: reject zero MAC address in add station From: Johannes Berg To: Karthikeyan Periyasamy Cc: linux-wireless@vger.kernel.org Date: Fri, 26 Jul 2019 13:06:42 +0200 In-Reply-To: <1563959770-21570-1-git-send-email-periyasa@codeaurora.org> References: <1563959770-21570-1-git-send-email-periyasa@codeaurora.org> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.30.5 (3.30.5-1.fc29) 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 Wed, 2019-07-24 at 14:46 +0530, Karthikeyan Periyasamy wrote: > Don't allow using a zero MAC address as the station > MAC address. so validated the MAC address using > is_valid_ether_addr. Theoretically, all zeroes might have been a valid address at some point. I see no reason not to reject it, but I'd like to know why you ended up with this now?? johannes