Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp665482ybi; Fri, 12 Jul 2019 02:41:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqzC4ihK/bOj/uiRZ+VNtX4dkr2W/mh6i0cjABuek7EEjpPmCK4Fy2h+XQMvqWugjpGGry9k X-Received: by 2002:a17:902:2884:: with SMTP id f4mr10106867plb.286.1562924498025; Fri, 12 Jul 2019 02:41:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562924498; cv=none; d=google.com; s=arc-20160816; b=Fpiee+rfNyzqIw6SCQx2RK9ajOwUCw9Pq8pylEv3xHeghLHo5IJPHRtO3LUqMzq8qg vSMbO1zl1f+0fHcFQzIP4Rb9w6EE9xOU6Mhe+9lnUeFbYkczEbn1YswP78CQYhGqjZAz Y26YOEuyZZ8bCNpP9tzF4ps4O0lJ7BC1ql1DdcODgeZNZk5um0fgOc4afbs/CV3aqeyl hP709IMLpFZNOJZfXP52/Y5pGkM2srM1YwLrJj3fObDW/1luGUqR/lnJJjYAOb1djyLf T1jTIhXxZgAamyAK0ZX2LJTDEUkBmCWrGB51qpWL3I52ktskbP5kbi4uXvkMLcImaqeU BBMA== 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 :references:in-reply-to:date:cc:to:from:subject:message-id; bh=jDOmZ5BxbUXGN2KmsJK3FNzsrVb+d0tecKM4ojwjfJ0=; b=0Ccmr+mtK5a2PV6vPlb6XqEoB+10OjeCKl9ljsU78M3JSX7QrzYbnKZ14Umlo3PNwH MRKp7D8QGmho2nG2XTQYmLTnZNkXMR1N9J1YjQ7395siZhcAp/ogb8n6E3sZNPG7hw5x Ys7kV90UPSh4xKW49MWbtDujBODKdUAwrB3o1wa7mz8BopLoJJvCExXigW38WORAV1xc Ov1jY332m/WNXKR6PeFAYtf6y1K6lHDZoDN7GrQgKIbKsN/NdjxQkLBewy3SEH33Xn91 lKQaJf8PMh9hzrrSKiiyQyemGchJvh7uUuJ3tAAxz4NcVH8ICoGcJnaZN4IazOEnV0El GdXA== 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 l125si7999630pgl.63.2019.07.12.02.41.23; Fri, 12 Jul 2019 02:41:38 -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 S1726602AbfGLJkP (ORCPT + 99 others); Fri, 12 Jul 2019 05:40:15 -0400 Received: from s3.sipsolutions.net ([144.76.43.62]:55792 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725989AbfGLJkP (ORCPT ); Fri, 12 Jul 2019 05:40:15 -0400 Received: by sipsolutions.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1hls2H-00077E-4Y; Fri, 12 Jul 2019 11:40:13 +0200 Message-ID: <43055be7b2d7ff0f8dbadd19443fc73f30f93bb6.camel@sipsolutions.net> Subject: Re: [RFC PATCH v3 0/2] cfg80211: fix duplicated scan entries after channel switch From: Johannes Berg To: Sergey Matyukevich Cc: "linux-wireless@vger.kernel.org" , Igor Mitsyanko , Mikhail Karpenko Date: Fri, 12 Jul 2019 11:40:11 +0200 In-Reply-To: <20190712092716.ywnkns473s5rtoku@bars> References: <20190710173651.15770-1-sergey.matyukevich.os@quantenna.com> <1c371a5921200a11da459b591df121bbcb0f967d.camel@sipsolutions.net> <20190712092716.ywnkns473s5rtoku@bars> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5 (3.28.5-3.fc28) 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 Fri, 2019-07-12 at 09:27 +0000, Sergey Matyukevich wrote: > On Fri, Jul 12, 2019 at 11:11:19AM +0200, Johannes Berg wrote: > > > > [External Email]: This email arrived from an external source - Please exercise caution when opening any attachments or clicking on links. Heh, you have a not so fun email system that rewrites mails ... > > > Suggested approach to handle non-transmitting BSS entries is simplified in the > > > following sense. If new entries have been already created after channel switch, > > > only transmitting bss will be updated using IEs of new entry for the same > > > transmitting bss. Non-transmitting bss entries will be updated as soon as > > > new mgmt frames are received. Updating non-transmitting bss entries seems > > > too expensive: nested nontrans_list traversing is needed since we can not > > > rely on the same order of old and new non-transmitting entries. > > > > That sounds like a reasonable trade-off. I do wonder though what happens > > if we're connected to a non-transmitting BSS? > > Well, here I rely upon the assumption that CSA IEs of non-transmitting BSS > are handled correctly by mac80211 or any FullMAC firmware. And if we are > connected to non-transmitting BSS rather than transmitting one, the > following code in the beginning of new cfg80211_update_assoc_bss_entry > function is supposed to care about this use-case: Right, it will be updated on RX. But then if we chanswitch, we would probably (mac80211 using a pointer to the non-transmitting BSS) update only one of the nontransmitting BSSes? Just saying that maybe we need to be careful there - or your wording might be incorrect. We might end up updating a *nontransmitting* BSS, and then its transmitting/other non-tx ones only later? johannes