Received: by 2002:ab2:7041:0:b0:1f4:bcc8:f211 with SMTP id x1csp24657lql; Fri, 12 Apr 2024 02:24:57 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV0QI3uUUdLOVzztWq063fimykoyVyfMSYyqJWbsF4gJGX4yYoW/lCO0NjeKvhXAXPimdbTpr5dv6rrZIaNf/tEBlqmTOemv7V98eHc+g== X-Google-Smtp-Source: AGHT+IHlEg7VT+eg+In1GDIIjiCePMsFh3wziKNc3MqRop44dFYQMaIJ/Ot4weChi8xDhl5nj9jk X-Received: by 2002:a50:d4d5:0:b0:56f:e4f7:fbd9 with SMTP id e21-20020a50d4d5000000b0056fe4f7fbd9mr1356793edj.20.1712913897179; Fri, 12 Apr 2024 02:24:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712913897; cv=pass; d=google.com; s=arc-20160816; b=LHe9NHyJ3cIvabHf3FyoFUGjXnlRVb9b1QpN2tLQxwZm9vgcMZjyNB67ZRsXvw2NPT gGEjHrthytm/10N1V4JxZ7ImjA+Gv6LdIMSh+KhUEoQPLX2nHRDgFkGnwzJdzrVXmC1r G66FSfMER52pTop1Lt5MVkO4P5HMvjKK/QUMsmgTseL0MjJkNe96k8hmhM29DYNiq6LS bpGH/95Pj65nPnW3glTRbDzVGzdT7jDXQjHJMJRYcIzRv2rhyKCZqZQcMyxkB+TdFC+H QLUpFhvPmjnzvbZiLCuBSKc5Gsb+nKQCp4l3D9j11lFA8NnMGRPuHOpKWS9IRqzMZd25 7e7g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=5WK4hlBESstsIUX+zMhngFDheN5gnJTFx66i5y0Tzm4=; fh=0CZj9KkZQX1gRbMVNQBP6P7TalIDkqJKhjj8hEurKJQ=; b=aJ1hhhDl0auU4E4J6OM5i5Cn9fCHonMQSK1owqum7R9ZcH/NzFKzU5Gcc4K1EEu+TY 5374icBW1skMkvSPIKMM+bH6Z6y72BFoy2gMwNbnu/2JxZsawpWRm+zCN19pj02NC7wF Vi+yzPZXXab6opn77Qfvq1Esw4riw3LWZzGbvK/5id5MiPKpSBXXNB7PyU+TPNkQPUkW bym/0GrRjc3kSJlMIOyunZADSe6QJSz3uT6qW3bDwLUQFNDTS1ZihR7pdgO4Xgu2Opai f6BacXQVPjNBD12JPECdROcuGqpvowQm4WD5MlbdpVof5Y6kUbx/Gb5OG5EYbzhLYaAL tRRA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=IfM5pZvU; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-wireless+bounces-6234-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-6234-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id r27-20020a50c01b000000b00568c5cd4f45si1495527edb.625.2024.04.12.02.24.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Apr 2024 02:24:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-6234-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=IfM5pZvU; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-wireless+bounces-6234-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-6234-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id E49061F225BD for ; Fri, 12 Apr 2024 09:24:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 520D252F61; Fri, 12 Apr 2024 09:23:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="IfM5pZvU" X-Original-To: linux-wireless@vger.kernel.org Received: from mail-wr1-f51.google.com (mail-wr1-f51.google.com [209.85.221.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A952454650 for ; Fri, 12 Apr 2024 09:23:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712913827; cv=none; b=RpvspHy8eGaIoT6ts6WBDv3a3aH7xxByXFiWqVnJXknu8zD6FvjbsCVX5/6Ms60wwsWR/1zfXDypzERdoo7v55uNvQ2+aUdQFLyZjkIOyjrIcZK+z6F0rqS5LMBkayI3QPdyBsG0dn2GeJuUmQY8MfZkqGJpBFqQKq5eigucFEQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712913827; c=relaxed/simple; bh=7UXVghcgcMjURurQ2igNhy01eq3tNyxUGlr0/MXH2u8=; h=Mime-Version:Content-Type:Date:Message-Id:Cc:Subject:From:To: References:In-Reply-To; b=f/KUiMRIkn9s33eQxleSjuCmkXl4tWpcTKwYK/g4ZtmSlthAUDzQWH+/ZMKA78A3mCH4VZdESUtj0/2JnTf33O1+PiNTN5dmE3F56BobR9VRvkzXTLjXOh13QrWeijUOm5TCYzR+dGgP7Bd5SQvB2z9mnpO3upx0TVRglTzO4cM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=IfM5pZvU; arc=none smtp.client-ip=209.85.221.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wr1-f51.google.com with SMTP id ffacd0b85a97d-343c2f5b50fso461504f8f.2 for ; Fri, 12 Apr 2024 02:23:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712913824; x=1713518624; darn=vger.kernel.org; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=5WK4hlBESstsIUX+zMhngFDheN5gnJTFx66i5y0Tzm4=; b=IfM5pZvUyWBYFndBuUsdQPzwdinAZ/AcpZOJe9kAqLHWMC6R3+24/Em7r2BRvGpJCh /jglvTHP9g0BZ2a5JZtSOBySIYVskjSEc5ai8Wh1uyUhIWimZXO8HulWlE0hhPPtV1b1 BoZbcShGUDtizCCpjyVjviAIPdfOFFMp/iZvGnQpGA13dcSHGluJWkpylc4gKGcjmkx9 rsLn4WJJ14WlejbE2KCWFBPfCPu4zXFo1PHnZgCw5Of0qD8q6qm/ObnJ28o+hBg48nC6 ZW4gHOizgTaIKD8lukOh8QoCe+cktzvkfLCcAg/5ObuFMhnPfqevpPDXlTzTaKum6E3S oL0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712913824; x=1713518624; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=5WK4hlBESstsIUX+zMhngFDheN5gnJTFx66i5y0Tzm4=; b=WbyqeP7E/S65kQKinch2LbGyT/EWYOHAiYC7cOF3AKsNGA9ft9tmOdZAKamJvlyB6A faXHya+4OPEDTYLApYGaxM1FzukBc21ExNJWVYbX/59fnaqbBySLG9NmkQfZWXOrH42y WvPEf5JKG7A5gUg0cliuFlVVCHlEh37nBAgHK3N8CpQiJjfHnrFH3D3YJh5FRMEeS5uI 6T71b5o35oqRZeN4+tMbn54rtLulBgJWS+36SILj3SAw5qnIr0gdz5lE6XjXTzyhZgwH tu2mi3ZJTOKK/qDY1I5jL83h83KliwWJgRJ8SqsF3BH+ap3QW8ma3UP8P9WQESABXdnQ hKKw== X-Gm-Message-State: AOJu0YzEtOTUoASxK4PRM/dbCRzlrjN/vm45wCYuV4HKG0vLpZnkka25 Z5nz319mPAFlPzAmw9wYmuIAxo9sxuXxSjE2d52qd7clfJD0WJt1RsVBZg== X-Received: by 2002:adf:e2c8:0:b0:343:6e18:5f09 with SMTP id d8-20020adfe2c8000000b003436e185f09mr1261070wrj.12.1712913823801; Fri, 12 Apr 2024 02:23:43 -0700 (PDT) Received: from localhost (freebox.vlq16.iliad.fr. [213.36.7.13]) by smtp.gmail.com with ESMTPSA id ea15-20020a0560000ecf00b003438cc1d2b4sm3812598wrb.59.2024.04.12.02.23.43 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 12 Apr 2024 02:23:43 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Fri, 12 Apr 2024 11:23:43 +0200 Message-Id: Cc: Subject: Re: [PATCH v2] wifi: ath12k: add support to handle beacon miss for WCN7850 From: "Nicolas Escande" To: "Kang Yang" , X-Mailer: aerc 0.17.0 References: <20240412025149.1211-1-quic_kangyang@quicinc.com> <6ee5664b-997b-45eb-89f9-5f75708c268a@quicinc.com> In-Reply-To: <6ee5664b-997b-45eb-89f9-5f75708c268a@quicinc.com> On Fri Apr 12, 2024 at 10:47 AM CEST, Kang Yang wrote: > > > On 4/12/2024 3:33 PM, Nicolas Escande wrote: > > On Fri Apr 12, 2024 at 4:51 AM CEST, kangyang wrote: > > [...] > >> @@ -5986,6 +6055,20 @@ static int ath12k_mac_vdev_create(struct ath12k= *ar, struct ieee80211_vif *vif) > >> lockdep_assert_held(&ar->conf_mutex); > >> =20 > >> arvif->ar =3D ar; > >> + arvif->vif =3D vif; > >> + > >> + INIT_LIST_HEAD(&arvif->list); > >> + INIT_DELAYED_WORK(&arvif->connection_loss_work, > >> + ath12k_mac_vif_sta_connection_loss_work); > >> + > > Is there a need to move the following part ? > > Isn't just adding the delay work enough ? > > > Just checked, you are right, but should add delay work in add_interface()= . > > Will change in v3. > > > >> + for (i =3D 0; i < ARRAY_SIZE(arvif->bitrate_mask.control); i++) { > >> + arvif->bitrate_mask.control[i].legacy =3D 0xffffffff; > >> + memset(arvif->bitrate_mask.control[i].ht_mcs, 0xff, > >> + sizeof(arvif->bitrate_mask.control[i].ht_mcs)); > >> + memset(arvif->bitrate_mask.control[i].vht_mcs, 0xff, > >> + sizeof(arvif->bitrate_mask.control[i].vht_mcs)); > >> + } > >> + > >> vdev_id =3D __ffs64(ab->free_vdev_map); > >> arvif->vdev_id =3D vdev_id; > >> arvif->vdev_subtype =3D WMI_VDEV_SUBTYPE_NONE; > >> @@ -6316,16 +6399,6 @@ static int ath12k_mac_op_add_interface(struct i= eee80211_hw *hw, > >> =20 > >> arvif->vif =3D vif; > >> =20 > >> - INIT_LIST_HEAD(&arvif->list); > >> - > >> - for (i =3D 0; i < ARRAY_SIZE(arvif->bitrate_mask.control); i++) { > >> - arvif->bitrate_mask.control[i].legacy =3D 0xffffffff; > >> - memset(arvif->bitrate_mask.control[i].ht_mcs, 0xff, > >> - sizeof(arvif->bitrate_mask.control[i].ht_mcs)); > >> - memset(arvif->bitrate_mask.control[i].vht_mcs, 0xff, > >> - sizeof(arvif->bitrate_mask.control[i].vht_mcs)); > >> - } > >> - > >> /* Allocate Default Queue now and reassign during actual vdev creat= e */ > >> vif->cab_queue =3D ATH12K_HW_DEFAULT_QUEUE; > >> for (i =3D 0; i < ARRAY_SIZE(vif->hw_queue); i++) > > [...] > >=20 > > Thanks Yeah, I wasn't clear enough, I meant adding the INIT_DELAY_WORK without mov= ing the rest of the code around.=20 Thanks