Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp913832ybx; Wed, 30 Oct 2019 07:09:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqxE5N3jrhTifD2kp52AyClBViHmEZexpgxorK6OBgaVi8Krs6zyXZsNHCsGdOTLk7lWD56m X-Received: by 2002:a05:6402:1a55:: with SMTP id bf21mr31533516edb.61.1572444549393; Wed, 30 Oct 2019 07:09:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572444549; cv=none; d=google.com; s=arc-20160816; b=q3sjm7qqazhNLWeAVgicMYgf0jqbOTwpWoC4LviVnoejZhjSE1TJmE3EHRHKx7m6i0 kDFFa9saBfNZhSF0odHJpO6bLgaLrj+ClHLlJvFq2dnWmMmLlzacnBeb9VOe2k/Se+tR JxnhAiQAj+i7YIkGCLgj3rty6gfGZwuR9h7+puFWPOwVf0g6FkpFWu/IcJzDwRPd8c3E 25QDAphcaYZ/cRBplmwvnYrb9Y3oKYbloC9zvA1wYM2+HStjjeqJ1RYbX4QfgMk2iozs 1GuXqOR23mNGS59doDX+q8UFiiuPEj4Mb4g6QHwBdDkavZ4kHhhaWUyO39W9tzbQ7QD+ Jnqg== 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=Uz8CjdBef/dfbFI6PymJx24Hrk74Ri36TwARGr/+/O0=; b=IpaZ3EDPKbNXQIuCb7i77Mhta9X2RRSiK0E4PHECIihU02bRXs+c240CoIWdVLry/U 00ka8M0A6SQVCLnsrO8psyEdwpccRo2urhG9VoQ2AGjUruZ4SJcW8wHTCeYNNKaW4G9x c7zqSNZf9bfecEAX/c4HMZk9QEmWlsWKJ92pz/pjyk1jiV/UMev7MqpGNk9Ik9779cbR QJKR9fM8DO6vlbAmg2vXZFpQyj60f0oG/y26+VfoDWRFBdOxtOy1kW8ViQoHVxKin7KO tbwYR2Diu0hQCyS03xDtTXzfSVM/dphwxQY53wPyV4RNPGA0bhh42KEVbqaZeanCyGBn 4Bvw== 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 d10si1655378edb.226.2019.10.30.07.08.34; Wed, 30 Oct 2019 07:09:09 -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 S1726695AbfJ3OEw (ORCPT + 99 others); Wed, 30 Oct 2019 10:04:52 -0400 Received: from s3.sipsolutions.net ([144.76.43.62]:59944 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726284AbfJ3OEv (ORCPT ); Wed, 30 Oct 2019 10:04:51 -0400 Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.92.2) (envelope-from ) id 1iPoag-0003zY-5O; Wed, 30 Oct 2019 15:04:50 +0100 Message-ID: <48aa046256186ecc3aaffb9c6642ab44ae91bbd4.camel@sipsolutions.net> Subject: Re: [PATCH] nl80211: allow more operations for mesh and ad-hoc interfaces From: Johannes Berg To: Markus Theil Cc: linux-wireless@vger.kernel.org Date: Wed, 30 Oct 2019 15:04:48 +0100 In-Reply-To: References: <20191029115602.78990-1-markus.theil@tu-ilmenau.de> <4b9c7b36f175667a76609c6560618bb48a321ed8.camel@sipsolutions.net> 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-10-30 at 14:40 +0100, Markus Theil wrote: > > Mesh interfaces are allowed to perform EDCA according to the standard > 802.11-2016. Well, they *have to* in a sense :-) [...] > > Changing beacons on the fly from user-space in these modes is only > useful, if vendor-specific elements are used, which can change over time. > > All in all I can nevertheless understand your point, that these changes > could be "wrong" from a pragmatic point of view. No no, that's not even it. The problem is that you're focusing too much on the standard without understanding how the stack works. Take the QoS parameters again for example. Setting them from userspace is wrong because that data will immediately be forgotten and killed again by the call to ieee80211_set_wmm_default() in that code. Or look at how the change_beacon call is handled - the data you set here will never even be used for IBSS or mesh because in mac80211 ieee80211_change_beacon() will quite possibly even crash when you call it for a non-AP interface since it accesses sdata->u.ap.beacon without any other checks. So while the *idea* of being able to change beacons or WMM parameters *might* be correct, this kind of implementation is (fairly obviously) completely wrong. johannes