Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp979349ybt; Wed, 1 Jul 2020 15:13:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyLC/aScfITkVcs6tPuYnFSO10tcDnFlY4VaNP6FK0O5yRstTPHjW5B/2MtFWG3MSREJpgg X-Received: by 2002:a17:906:8607:: with SMTP id o7mr24422325ejx.142.1593641627379; Wed, 01 Jul 2020 15:13:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593641627; cv=none; d=google.com; s=arc-20160816; b=N6Iw0U7kQsg0hq+wPmzITgMkE1udllUucHc1ewitrAvrnsjoLPyI9IBWERHvNq2hYl eZZAbpx9xQQULe8UNrBOSdCGfht5mbun6VDEy+6pLQF1NjpjscD+MTI+NJlqxt3P9fgo jnvvnWouND3FqujrPOke+jdgMgdZfP2jAujvMdnS9TmnZwEYuXHAIEMoDKe3+ymg754U EMRPCST3H76BVOLftST79DczIyzyQFC8l+ZedycOOIw9LS6pGbapbWwydBR+qncqCJxp tmVmXKbk3CWZ4OIxqee86oNgvA7HkW43GslfQQu2ORy9+GOf6oOwiTVGAz7TNALgcHIl QOiw== 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:date:cc:to:from:subject:message-id:dkim-signature; bh=z4mNTT/M5shWj3ZiwJB659mU2yoX0MNQ+EAM05N/HO0=; b=TpEFh7zi3iBysiEFw6Tyo5F2Bl3AwHLZ7WqOjY0oQOD/Sn1HGn1ZUW5GAlMOxu1Fq6 30FEK3vqWIEJ7B27ruucO7vMniBqDw+cVUCndjll2OxEQQd5Tua/P87tMzuNxyMV4lML pE0qyIs6X4TXgZrhcO60O3Hmu674mgXBYRYMDIoR7va2Iz6Z/9QU7jIBSirMfXFKdA9W 8vMtggkL9Y+4dbUjj/ofGa+qkMmQxgb+1fHU2mpW3g09C2MIdP72D+cZtt04EwcqvcRB eZ0X8+PrGcYi8xjT6s2gU7YyVUCcV7t4aXeUfjvENSo8y2q6Nm6M4T4rqzqy/28IsVAV 4yjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="kHdg70/N"; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p7si4714081ejy.206.2020.07.01.15.13.08; Wed, 01 Jul 2020 15:13:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="kHdg70/N"; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726144AbgGAWMn (ORCPT + 99 others); Wed, 1 Jul 2020 18:12:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38120 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725771AbgGAWMn (ORCPT ); Wed, 1 Jul 2020 18:12:43 -0400 Received: from mail-pg1-x52b.google.com (mail-pg1-x52b.google.com [IPv6:2607:f8b0:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 117F5C08C5C1 for ; Wed, 1 Jul 2020 15:12:43 -0700 (PDT) Received: by mail-pg1-x52b.google.com with SMTP id z5so12400056pgb.6 for ; Wed, 01 Jul 2020 15:12:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:subject:from:to:cc:date:user-agent:mime-version :content-transfer-encoding; bh=z4mNTT/M5shWj3ZiwJB659mU2yoX0MNQ+EAM05N/HO0=; b=kHdg70/Ng3OW67/DQiZCOEtNz263LqnwSzIE7ddrPDpmldcTJrqnlkwhVKkuSTmqia HP4ZW/mpoDSJA2gBIF9p7Hx2r1KL0wDh67LIR98Q9c3848dzQzlpk9AEgVtUnJZ84wI+ w6BZZZuKbpW4ziAx1TBSbLJfTfK2GTdur5YTw9unZxRlQFREXBMWMUaWWPG/GDHwHXp7 9m42LC5qwXeTGCLNmLOKZTg1sdVhjgLPJUr/GBHy8YcFXnuaAYPJzrSr55+tfE+waN+X DtBndxokwFn+o0xycEpoahuyj2FDUFb1eHh4186vFGXGxXLDFsloTC8eI8jfPkR39mld HURg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:cc:date:user-agent :mime-version:content-transfer-encoding; bh=z4mNTT/M5shWj3ZiwJB659mU2yoX0MNQ+EAM05N/HO0=; b=KqP2C0oe3Tv4iMIZJx6FJ0ot3TDLSmip5haeO1ZgWUYwR0BEd7OoAoWV/eU0EIZ2CI Y2iOKmgKLiUTFmVS5C3T2shhOeOHUt7AJjPun2n2ZqZ2x0lMv/92ofZNxWLJOOL34KYZ DGrjpOaY2LBsE+ZVLIAVxptmn84M9ldCM2AYy+12ziaNZXdbhyq7tg1dLimddMBx7IC2 5093h5dKOuGckAVs2E3Z5NSFLJwJqyQeLpKGYXQNAmzhhp+NJuQmI7prH3oJM/yyD/b/ kqqoXB1HBkdSj+YW18xb2gtFd8zvC7FGSESkKRDcHVayuZsTI72t8AFBibkupmo53JLc lgJw== X-Gm-Message-State: AOAM530kAe61HKc8+Rygx6XZ7VIu7E1KBGh4NQomU3yUjJM5P1qBdjBo jd2aW/5dexM+250HIMJChrV2SJnp X-Received: by 2002:a63:3fc2:: with SMTP id m185mr22515034pga.426.1593641562294; Wed, 01 Jul 2020 15:12:42 -0700 (PDT) Received: from host-29.home (50-39-160-111.bvtn.or.frontiernet.net. [50.39.160.111]) by smtp.gmail.com with ESMTPSA id z13sm6934501pfq.220.2020.07.01.15.12.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jul 2020 15:12:41 -0700 (PDT) Message-ID: Subject: Lost beacon behavior changed as of 01afc6fed (hwsim) From: James Prestwood To: "linux-wireless@vger.kernel.org" Cc: Johannes Berg Date: Wed, 01 Jul 2020 15:12:40 -0700 Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.32.5 (3.32.5-1.fc30) 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 Hi, First off, everything described here is using mac80211_hwsim. I have not tested if any of this happens on physical hardware or not. Commit 01afc6fed seems to have changed the kernel behavior with regard to lost beacons. So much so that it completely breaks all roaming tests for IWD and (if kept this way) will require severe changes to the existing roaming logic we have used for quite a long time. Plus supporting older kernels AND this new behavior is going to be quite annoying to deal with. Before, the kernel would only send a lost beacon QCM event when it detected beacon loss. This allowed us to scan, find a suitable BSS to roam to, and then roam. Now it also sends Del Station, Deauthenticate, and Disconnect all immediately after a lost beacon, and the disconnect reason being DISASSOC_DUE_TO_INACTIVITY (4). We handle these extra events as we would at any other time, and fully disconnect which prevents us from being able to roam quickly (as well as breaking tests). Looking at that commit nothing particular jumps out at me, but obviously those added flags are causing something else to send these extra events. Was this change actually intended to cause these extra events? And if so, why was it changed? Thanks, James