Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp1774632lql; Wed, 13 Mar 2024 07:54:30 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVTTQCjPotbL3i+coD7iQd8t1svsHaAFCdMbN+p0oi3pAh3REQ8f5iF4GhPPa8xPX6c00Mc28nyRbP6A4A20idyMQxZ3n0ZmmSdrY2QEQ== X-Google-Smtp-Source: AGHT+IG56CBgoeXAtogMIHKwshkjcmw+7o3y4rH29pgq/LC6mmJFB5Fv9IdjLhzbOR6FNVppZB4F X-Received: by 2002:a05:620a:8cd:b0:789:c48c:f6f7 with SMTP id z13-20020a05620a08cd00b00789c48cf6f7mr89711qkz.10.1710341670482; Wed, 13 Mar 2024 07:54:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710341670; cv=pass; d=google.com; s=arc-20160816; b=QJrj1MdBHspv9mZGa718hmsoS/znVKzLk/DiWLEVcsugmv+bqfNlTWWAdoEseEedpg hwNrbwktdx74q1wP81dn8zpiFTFIkDkxKQN5ka+2maA+cSBHikUtSqak252eTeuw3hmH ii4Jd/nusawsv3MCnw9dCDnNzI3yoRGLPiHcBfHPtLjmhK6RaeLRu7N25zmUOaBsz//z Mz5Tt7KKVySuTpdZ54d98tMrdtBuLNeDSu0osbNTV+5Kz2NYt05FamXXjN9ulkws7DQm FM2xYwH1JJqEDE3cZOuJeo3sz/AyrLd5+v1+GPVigTX++joqEyCxaMiTS1EqWkwcADKI 1p+A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=lyG2r0aEdl9aZ6k/UnIDZZxlvmVMWBGdlKiIT9nHaGk=; fh=dRNDPLKj1q8SUpbayxqGVeYxeS9at2WOrn0wPVmYJGA=; b=PbmuNp1tMF1kfrxjzVJQUth3MUKu6D4im8hxh8pwtlJegea0zsrHmNxqWf1SaR3xAW FtnPVgGR+16KdBrMKOuJ7VotIb9O7oNy1Dfk+Sfika+qaqX6Uf9NNSqeZv0QuoXjoThN ABWkNYxqiIuXaAd2ow5qhOv8GjnUm73KbQo878c3uqPV1GibnZGQG0SI0QAfRw6l5xOB g1LhPYujZf/7z3UMyXhFan4bPifGKrb6YJu//CYIQ4xpMIs+UO8SbaAQtFoTGkyZwUi9 /1qPIucWJxNUAU89IPjgGmWD/8e1RtLtRghIwuEnIH4jK0R5yF9AMWVk5qWDoMoV86mx NFPQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=AGznQI0c; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-wireless+bounces-4679-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-4679-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id b22-20020a05620a0cd600b007887490c008si5269873qkj.339.2024.03.13.07.54.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Mar 2024 07:54:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-4679-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=AGznQI0c; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-wireless+bounces-4679-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-4679-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 22CBD1C20859 for ; Wed, 13 Mar 2024 14:54:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 19EA2947F; Wed, 13 Mar 2024 14:54:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="AGznQI0c" X-Original-To: linux-wireless@vger.kernel.org Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6A2041426C for ; Wed, 13 Mar 2024 14:54:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710341667; cv=none; b=CR/mRLv8JT/0tnGL6hDmLp3vN4HdUE1XTu0VbUg2pt0kSXBJwxU2z9QiRh6LmA+c4UUHaC6LyPUXctgJ7qXQNIzvdoHqksMR9Yk5objLDnwvDF6FgvLeRQ0uBlZyATX4tcMIevLr3uf3MWpSAqi8UOdirYGlQxfHUIMPZGwtm2g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710341667; c=relaxed/simple; bh=3eho8jYCAjMs8WtVHXxmNk/+SgFX6mvTWl058PG4H6M=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=m1OTv+wMO7eNzVQ30qRwKnRodd6VQOyycYPh+DG6P5Ly4K+zBhqxqd0+Ire4UIM/OQtYY2aCQVbqMPGouwDNmXMlX7OV+DmYw1hWIhCZlC0CkS7ctVdVU4L/Vlr8/1n5vpkrVZItScH/3HP7MbNDRNk4dDltUqrSTddYV4U4xKs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=AGznQI0c; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 42DENtuf004517; Wed, 13 Mar 2024 14:54:21 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding:content-type; s=qcppdkim1; bh=lyG2r0a Edl9aZ6k/UnIDZZxlvmVMWBGdlKiIT9nHaGk=; b=AGznQI0cU7h6xG2xPgzASZ6 AW9tKZ9XaDxSeQqTc/UbJ1EwYEjMRHsXjoa/L9FvFxwGq5rWlyS+/PjVWUBkPzif zW7zakMVGiO6pHjp9y6qrjDgCKsn3P+TBikoFu4O+AD4LNR+uFo3G08XjgfsjYDH AOICef+SUi5zvLCL1jRx8QU9TNxVsoex5U82bPCseGK3plxtgGDfQ333xr4NuM3t jf5M93hLF+Ie8sHZs7muAINeDDre8euEpSRDdA1NBt4yiUhY0ijMdlDzlOa5izXz IR3do3FtguAoD8qpgayZIp5k12gWtZ3Pnrf8TEN6R4ibMsMn/BE11t4ET/zf4Xg= = Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3wu9xarkcs-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 13 Mar 2024 14:54:20 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 42DEsJCQ016484 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 13 Mar 2024 14:54:19 GMT Received: from cdcwlex322514-lin.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Wed, 13 Mar 2024 07:54:17 -0700 From: Aditya Kumar Singh To: CC: , Aditya Kumar Singh Subject: [PATCH] wifi: mac80211_hwsim: set link ID information during Rx Date: Wed, 13 Mar 2024 20:24:02 +0530 Message-ID: <20240313145402.456514-1-quic_adisi@quicinc.com> X-Mailer: git-send-email 2.25.1 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: ohHAeryzjlUIPRge1tIGn9Y665GCMIdA X-Proofpoint-GUID: ohHAeryzjlUIPRge1tIGn9Y665GCMIdA X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-03-13_09,2024-03-12_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 clxscore=1015 lowpriorityscore=0 impostorscore=0 adultscore=0 mlxlogscore=748 mlxscore=0 priorityscore=1501 phishscore=0 malwarescore=0 bulkscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2402120000 definitions=main-2403130111 Currently link ID information is not passed to mac80211 via Rx status by mac80211_hwsim. This leads to packet getting dropped in function __ieee80211_rx_handle_packet since it expects the link ID if packet is intended for a MLO station and the station is not directly passed via pubsta function argument. Add changes to pass the link ID information in Rx status. Signed-off-by: Aditya Kumar Singh --- drivers/net/wireless/virtual/mac80211_hwsim.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/wireless/virtual/mac80211_hwsim.c b/drivers/net/wireless/virtual/mac80211_hwsim.c index b55fe320633c..783114ccb5b8 100644 --- a/drivers/net/wireless/virtual/mac80211_hwsim.c +++ b/drivers/net/wireless/virtual/mac80211_hwsim.c @@ -1721,6 +1721,9 @@ static void mac80211_hwsim_rx(struct mac80211_hwsim_data *data, sp->active_links_rx &= ~BIT(link_id); else sp->active_links_rx |= BIT(link_id); + + rx_status->link_valid = true; + rx_status->link_id = link_id; } rcu_read_unlock(); } base-commit: e27b02e23a701e5761f1d6028643e1203a1c56de -- 2.25.1