get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/2218574/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 2218574,
    "url": "http://patchwork.ozlabs.org/api/patches/2218574/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/hostap/patch/20260401052713.3761478-4-peddolla.reddy@oss.qualcomm.com/",
    "project": {
        "id": 22,
        "url": "http://patchwork.ozlabs.org/api/projects/22/?format=api",
        "name": "HostAP Development",
        "link_name": "hostap",
        "list_id": "hostap.lists.infradead.org",
        "list_email": "hostap@lists.infradead.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20260401052713.3761478-4-peddolla.reddy@oss.qualcomm.com>",
    "list_archive_url": null,
    "date": "2026-04-01T05:26:53",
    "name": "[RFC,03/23] nl80211: Add MAC address filter support for remain-on-channel",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "b3f7c97e35d9f91acab771e47d7b3850f8fbbc14",
    "submitter": {
        "id": 93026,
        "url": "http://patchwork.ozlabs.org/api/people/93026/?format=api",
        "name": "Peddolla Harshavardhan Reddy",
        "email": "peddolla.reddy@oss.qualcomm.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/hostap/patch/20260401052713.3761478-4-peddolla.reddy@oss.qualcomm.com/mbox/",
    "series": [
        {
            "id": 498338,
            "url": "http://patchwork.ozlabs.org/api/series/498338/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/hostap/list/?series=498338",
            "date": "2026-04-01T05:26:59",
            "name": "[RFC,01/23] nl80211_copy.h changes related to Proximity Ranging",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/498338/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2218574/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2218574/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "\n <hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org>",
        "X-Original-To": "incoming@patchwork.ozlabs.org",
        "Delivered-To": "patchwork-incoming@legolas.ozlabs.org",
        "Authentication-Results": [
            "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n secure) header.d=lists.infradead.org header.i=@lists.infradead.org\n header.a=rsa-sha256 header.s=bombadil.20210309 header.b=lfhTTn8x;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n unprotected) header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256\n header.s=qcppdkim1 header.b=lXkLvNlD;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n unprotected) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com\n header.a=rsa-sha256 header.s=google header.b=Jcg4c/Rl;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=none (no SPF record) smtp.mailfrom=lists.infradead.org\n (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org;\n envelope-from=hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org;\n receiver=patchwork.ozlabs.org)"
        ],
        "Received": [
            "from bombadil.infradead.org (bombadil.infradead.org\n [IPv6:2607:7c80:54:3::133])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fm6KC4kjwz20wT\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 02 Apr 2026 01:08:27 +1100 (AEDT)",
            "from localhost ([::1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux))\n\tid 1w7wEZ-0000000FNlX-0LI2;\n\tWed, 01 Apr 2026 14:07:51 +0000",
            "from mx0a-0031df01.pphosted.com ([205.220.168.131])\n\tby bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux))\n\tid 1w7o7i-0000000Dzh1-3LAs\n\tfor hostap@lists.infradead.org;\n\tWed, 01 Apr 2026 05:28:15 +0000",
            "from pps.filterd (m0279866.ppops.net [127.0.0.1])\n\tby mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id\n 62VN4FPE1831828\n\tfor <hostap@lists.infradead.org>; Wed, 1 Apr 2026 05:28:14 GMT",
            "from mail-pf1-f197.google.com (mail-pf1-f197.google.com\n [209.85.210.197])\n\tby mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4d8equc2qd-1\n\t(version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT)\n\tfor <hostap@lists.infradead.org>; Wed, 01 Apr 2026 05:28:14 +0000 (GMT)",
            "by mail-pf1-f197.google.com with SMTP id\n d2e1a72fcca58-82a6c70f1f8so5174793b3a.0\n        for <hostap@lists.infradead.org>;\n Tue, 31 Mar 2026 22:28:14 -0700 (PDT)",
            "from hu-peddolla-hyd.qualcomm.com ([202.46.23.25])\n        by smtp.gmail.com with ESMTPSA id\n d2e1a72fcca58-82ca843e1desm15021223b3a.4.2026.03.31.22.28.11\n        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n        Tue, 31 Mar 2026 22:28:12 -0700 (PDT)"
        ],
        "DKIM-Signature": [
            "v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=lists.infradead.org; s=bombadil.20210309; h=Sender:\n\tContent-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post:\n\tList-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:\n\tMessage-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description:\n\tResent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:\n\tList-Owner; bh=GTZGA36ADLZaR4UzP78++lZ+iTGSH+cHjtTgJsDDLT8=; b=lfhTTn8x+AhIj1\n\t/gS3S7l9k7H9QBnEEm84Sv+QsBa61Z8vNs1Lfh8Y7trxtYSv1+PyAMLh+vYHMhxoABBYRriuxa+7Z\n\t6PMpD7B93n4ZQE5vEzlKWaGeH1IRKP4HycJ96/oCFJfR0+dcffiAD/yGjJGJMObHy0qOEK9kvqFCF\n\t8g/xFBJOO68J2nC/OhE9igGo3KjNsuVA+p5ymYlFrcQuoRb44NZpSvPkU/lbWXr9gcOsAn/wc73SW\n\tL91CtcOENgK9jxdw4RB9J8ZT2k9w0mZnZt9DaBv799xjcSAw9wgrePShc3WPCenjTktaz9QqzASsC\n\t2giu/4/6719OPPSSnOtA==;",
            "v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h=\n\tcc:content-transfer-encoding:date:from:in-reply-to:message-id\n\t:mime-version:references:subject:to; s=qcppdkim1; bh=IqwKZ2UeM7a\n\tko/oA9JLYC3TenL61uk3nVEoLUwQrKIY=; b=lXkLvNlDVp++9eBcSMnNEec7JD4\n\t5ZR07g1uyiU8I9C/fPYoBIexRKYkyl9BbNPfA8+GfFHq+0lRx5nr+jafg/KIG5Xq\n\tiu+KoZ0UI3k4jw2Yc5DGkLwJ6YnIBiIu8yYD2b/S3gVQxtRUPSFpLLwAjAtFHwl/\n\tdEP5lIp1qRLQtXOtX+mr+te42fQQ8tc/9QHidUFJEDMBso+jUQefONloCjwB02sC\n\tmgRmJFdeX1vL40BV0o8dfMzC1OwiBCdjy7z5SKQECltwRsK4Qr3OH35+g3Nu6gSJ\n\tpkUxfqQJOwrjWDzviOMwhYAO6p+9TSOvEF7S4Ld367U9OUNEVv96JaG4BIA==",
            "v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=oss.qualcomm.com; s=google; t=1775021294; x=1775626094;\n darn=lists.infradead.org;\n        h=content-transfer-encoding:mime-version:references:in-reply-to\n         :message-id:date:subject:cc:to:from:from:to:cc:subject:date\n         :message-id:reply-to;\n        bh=IqwKZ2UeM7ako/oA9JLYC3TenL61uk3nVEoLUwQrKIY=;\n        b=Jcg4c/Rlx0bpcYGaXt8tbLVKPMMjeyvqmy9mfIhAAMynkBi1nJG8jbm00jAngkTJGV\n         L2DfrMsdELPOVogUD4Y0yp5c/tWmlDsyXUKJEGNzXpg5cW+CizNV44wxex6LYGWJE4Zn\n         yM8QXhhhoyL/fukQdDDz2J1s9CMeT+Vcb0eGm5ZClMZUAkcLkpDM3cRL23eIjgah1zVm\n         Uq/ousnDQhogDYaHL/n5J+Qh8cnoj2xiGCbw5HvdYwCg7mkI7kIkbr8G6htAlkuaqdzM\n         jP85eBlcYEOPCdmKr/WAUL4GNZFJfE2tCjyxebE5FC/dx2M76BSSQBgQ+Dhiv+arHrsk\n         usXA=="
        ],
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=1e100.net; s=20251104; t=1775021294; x=1775626094;\n        h=content-transfer-encoding:mime-version:references:in-reply-to\n         :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from\n         :to:cc:subject:date:message-id:reply-to;\n        bh=IqwKZ2UeM7ako/oA9JLYC3TenL61uk3nVEoLUwQrKIY=;\n        b=pw8XLxlDCqg3PEwTrrybA7uP218WudmrIDZEmPF6+I0Z9zfTz/f1RY8rcboXbG1wyW\n         C+LZqLKImXoij7oykvXKj5FKVABzlGKyWLCW6N3De/d0m9xXefAHGc2MifFTXLnd/38D\n         sgLVewBliHvBIX7IHcKFLnMapMEJHg5NB65VB1MZ/916toUNo/gEujIxT3tTIteoXCfA\n         OUL4aMKpAZnZvGqn+3gSWpbbRpq7N90cHPBN8Ofa4mJ9tXFYTrMvP5E49Uj5FMmkdg5f\n         jEY72LkIm0/LQsJt38F2bpvZIx3D+0fnrOPh5auXFu0PjToJ/LGpBuogPT2/N+SLARud\n         JdAQ==",
        "X-Gm-Message-State": "AOJu0Ywhdu6ttO4aAQ5hDjMx6UfR3/cVAyI2F2v+XmAhta9CpovUsoB/\n\tfP+uH/le5v+xsCUGM1p45QlS37jupIkVT4lbgfDlide4gY/VRw75IIiqZJCW5YiJsPEh3GIMsu5\n\tm8Aj8itmL1ELHnp/IXVpk3yqV56ohkuzTPzJARIoGEp1yilHEn4xSAa3VJuyfar6KroeRuEE=",
        "X-Gm-Gg": "ATEYQzzj6BboKaPd50WvsOwVFFh9c4/wHYgGgvDPcdzgTkyU0KbOtGE0aVJMyHS3tTt\n\tqnm5XmUAlkYkG5m+SzIg5HYPOHCi0Vp5066qqkQ4dr/321rjm/PY4UpY3IZ/qQR5asAOemPVte8\n\t7c04JBv4NbhVKTSdldeDgjMJSsiOglNuZrpmHiov8rocRcqiCVo1fnW0kcGf/2ZSFYdDzo56k0a\n\tlEUXwKRB6KMGUBOGnze6NXxm4+2zWE/+d1a0YekoHEG3W6IfIBa4x7jCxvOvNL88SfQbCE5Lf0p\n\tFRBL0oVjDp4+7vGrLnDmQ2SApq9+fJ6Sd3JF6tHwGZBapTwWadFI4gCqnlkYrFzYJk5VW70pOrv\n\t4IGED0RQ0pewperhVWFn5ElPJGR45GZ8ZiCnDaHttbxw5U4atqkT1+/I=",
        "X-Received": [
            "by 2002:a05:6a00:3d4d:b0:829:a3ed:9749 with SMTP id\n d2e1a72fcca58-82ce8cc5048mr2313103b3a.57.1775021293527;\n        Tue, 31 Mar 2026 22:28:13 -0700 (PDT)",
            "by 2002:a05:6a00:3d4d:b0:829:a3ed:9749 with SMTP id\n d2e1a72fcca58-82ce8cc5048mr2313075b3a.57.1775021292988;\n        Tue, 31 Mar 2026 22:28:12 -0700 (PDT)"
        ],
        "From": "Peddolla Harshavardhan Reddy <peddolla.reddy@oss.qualcomm.com>",
        "To": "hostap@lists.infradead.org",
        "Cc": "vjakkam@qti.qualcomm.com",
        "Subject": "[RFC PATCH 03/23] nl80211: Add MAC address filter support for\n remain-on-channel",
        "Date": "Wed,  1 Apr 2026 10:56:53 +0530",
        "Message-Id": "<20260401052713.3761478-4-peddolla.reddy@oss.qualcomm.com>",
        "X-Mailer": "git-send-email 2.34.1",
        "In-Reply-To": "<20260401052713.3761478-1-peddolla.reddy@oss.qualcomm.com>",
        "References": "<20260401052713.3761478-1-peddolla.reddy@oss.qualcomm.com>",
        "MIME-Version": "1.0",
        "X-Proofpoint-Spam-Details-Enc": "AW1haW4tMjYwNDAxMDA0NCBTYWx0ZWRfX84CvMMyJTNMA\n 7a3aLrQ+4HqSTB/V6HABW8pc8HYDPqNORWpE5dg6rdKR7VJJoH26Ug+umn4F7z289fP3NXWgBJo\n u/hDi7tBOJ0o9Rsz7tJbHcM84F5TiztiGSuhtaEfEPMpgbjlrBBhTsSFb8sDTo5HhbYhwDeSt+f\n hbD4bxi2tjkTGHPwJFAyg4nzxuJfRqnXN9EwNZVKK0fasUy2Pyk6v97bxBZYpjX906nNVkdHUPU\n g/j8sjpQtMVYj7YuKTulGqH3CZhjI3zSaSwDAmy2ppPcdXamr+jv2d1KLUzp0L3mVE6rWIoK4OG\n ve8035NNTAexWYxIoeK1cqRt6u0cHcGE0vQquXtDNQCOP+BrdXh81txXErhI1D0hAQeVpegjtki\n oBtGh2mCo1RL2h9pBgDdrhiMziZGkO215DuJluLODvOM7EvJ1E3H/UfdrWrLgYNYYYGYvbIJfmZ\n cM5mdTJofkedrJnc8wA==",
        "X-Proofpoint-GUID": "KYDl0PjdzQ--iyZmRk-ala29lIjFrAR_",
        "X-Proofpoint-ORIG-GUID": "KYDl0PjdzQ--iyZmRk-ala29lIjFrAR_",
        "X-Authority-Analysis": "v=2.4 cv=YMOSCBGx c=1 sm=1 tr=0 ts=69ccacee cx=c_pps\n a=rEQLjTOiSrHUhVqRoksmgQ==:117 a=ZePRamnt/+rB5gQjfz0u9A==:17\n a=A5OVakUREuEA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22\n a=u7WPNUs3qKkmUXheDGA7:22 a=YMgV9FUhrdKAYTUUvYB2:22 a=EUspDBNiAAAA:8\n a=TELfNRclQfz8eO72Y8MA:9 a=2VI0MkxyNR6bbpdq8BZq:22",
        "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.51,FMLib:17.12.100.49\n definitions=2026-04-01_02,2026-03-31_02,2025-10-01_01",
        "X-Proofpoint-Spam-Details": "rule=outbound_notspam policy=outbound score=0\n priorityscore=1501 clxscore=1011 spamscore=0 impostorscore=0 adultscore=0\n lowpriorityscore=0 bulkscore=0 phishscore=0 malwarescore=0 suspectscore=0\n classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0\n reason=mlx scancount=1 engine=8.22.0-2603050001 definitions=main-2604010044",
        "X-CRM114-Version": "20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ",
        "X-CRM114-CacheID": "sfid-20260331_222814_840578_2635F9D9 ",
        "X-CRM114-Status": "GOOD (  31.64  )",
        "X-Spam-Score": "0.2 (/)",
        "X-Spam-Report": "Spam detection software,\n running on the system \"bombadil.infradead.org\",\n has NOT identified this incoming email as spam.  The original\n message has been attached to this so you can view it or label\n similar future email.  If you have any questions, see\n the administrator of that system for details.\n Content preview:  Currently, the remain_on_channel driver interface does not\n    support filtering received frames by a specific MAC address. This prevents\n    use cases like Proximity Ranging from listening for frames address [...]\n Content analysis details:   (0.2 points, 5.0 required)\n  pts rule name              description\n ---- ----------------------\n --------------------------------------------------\n -0.7 RCVD_IN_DNSWL_LOW      RBL: Sender listed at https://www.dnswl.org/, low\n                             trust\n                             [205.220.168.131 listed in list.dnswl.org]\n  1.0 RCVD_IN_VALIDITY_RPBL_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to\n                              Validity was blocked.  See\n                             https://knowledge.validity.com/hc/en-us/articles/20961730681243\n                              for more information.\n                           [205.220.168.131 listed in\n bl.score.senderscore.com]\n  1.0 RCVD_IN_VALIDITY_CERTIFIED_BLOCKED RBL: ADMINISTRATOR NOTICE: The\n                             query to Validity was blocked.  See\n                             https://knowledge.validity.com/hc/en-us/articles/20961730681243\n                              for more information.\n                        [205.220.168.131 listed in\n sa-trusted.bondedsender.org]\n  1.0 RCVD_IN_VALIDITY_SAFE_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to\n                              Validity was blocked.  See\n                             https://knowledge.validity.com/hc/en-us/articles/20961730681243\n                              for more information.\n                             [205.220.168.131 listed in\n sa-accredit.habeas.com]\n  0.0 SPF_HELO_NONE          SPF: HELO does not publish an SPF Record\n -0.0 SPF_PASS               SPF: sender matches SPF record\n  0.1 DKIM_SIGNED            Message has a DKIM or DK signature,\n not necessarily valid\n -0.1 DKIM_VALID_EF          Message has a valid DKIM or DK signature from\n                             envelope-from domain\n -0.1 DKIM_VALID_AU          Message has a valid DKIM or DK signature from\n author's\n                             domain\n -0.1 DKIM_VALID             Message has at least one valid DKIM or DK\n signature\n -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%\n                             [score: 0.0000]",
        "X-Mailman-Approved-At": "Wed, 01 Apr 2026 07:07:49 -0700",
        "X-BeenThere": "hostap@lists.infradead.org",
        "X-Mailman-Version": "2.1.34",
        "Precedence": "list",
        "List-Id": "<hostap.lists.infradead.org>",
        "List-Unsubscribe": "<http://lists.infradead.org/mailman/options/hostap>,\n <mailto:hostap-request@lists.infradead.org?subject=unsubscribe>",
        "List-Archive": "<http://lists.infradead.org/pipermail/hostap/>",
        "List-Post": "<mailto:hostap@lists.infradead.org>",
        "List-Help": "<mailto:hostap-request@lists.infradead.org?subject=help>",
        "List-Subscribe": "<http://lists.infradead.org/mailman/listinfo/hostap>,\n <mailto:hostap-request@lists.infradead.org?subject=subscribe>",
        "Content-Type": "text/plain; charset=\"us-ascii\"",
        "Content-Transfer-Encoding": "7bit",
        "Sender": "\"Hostap\" <hostap-bounces@lists.infradead.org>",
        "Errors-To": "hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org"
    },
    "content": "Currently, the remain_on_channel driver interface does not support\nfiltering received frames by a specific MAC address. This prevents\nuse cases like Proximity Ranging from listening for frames addressed\nto a custom MAC address that differs from the interface address.\n\nAdd a filter_addr parameter to the remain_on_channel driver operation\nand its wpa_drv_remain_on_channel() wrapper. When provided, the\nnl80211 driver adds NL80211_ATTR_MAC to the remain-on-channel command\nto configure hardware-level frame filtering. A new driver capability\nflag WPA_DRIVER_FLAGS2_ROC_ADDR_FILTER, detected from the kernel's\nNL80211_EXT_FEATURE_ROC_ADDR_FILTER, guards this behavior. All\nexisting callers are updated to pass NULL to maintain backward\ncompatibility.\n\nSigned-off-by: Peddolla Harshavardhan Reddy <peddolla.reddy@oss.qualcomm.com>\n---\n src/drivers/driver.h              | 10 +++++++++-\n src/drivers/driver_nl80211.c      | 27 +++++++++++++++++++++++----\n src/drivers/driver_nl80211_capa.c |  3 +++\n wpa_supplicant/dpp_supplicant.c   |  2 +-\n wpa_supplicant/driver_i.h         |  5 +++--\n wpa_supplicant/nan_supplicant.c   |  2 +-\n wpa_supplicant/offchannel.c       |  4 ++--\n wpa_supplicant/p2p_supplicant.c   |  2 +-\n 8 files changed, 43 insertions(+), 12 deletions(-)",
    "diff": "diff --git a/src/drivers/driver.h b/src/drivers/driver.h\nindex 1e4a3da35..268229edd 100644\n--- a/src/drivers/driver.h\n+++ b/src/drivers/driver.h\n@@ -2444,6 +2444,8 @@ struct wpa_driver_capa {\n #define WPA_DRIVER_FLAGS2_EPPKE\t\t\t\t0x0000000400000000ULL\n /** Driver supports IEEE 802.1X authentication in Authentication frames */\n #define WPA_DRIVER_FLAGS2_802_1X_AUTH\t\t0x0000000800000000ULL\n+/** Driver supports MAC address filter for remain-on-channel */\n+#define WPA_DRIVER_FLAGS2_ROC_ADDR_FILTER\t0x0000001000000000ULL\n \tu64 flags2;\n \n #define FULL_AP_CLIENT_STATE_SUPP(drv_flags) \\\n@@ -4312,6 +4314,8 @@ struct wpa_driver_ops {\n \t * @priv: Private driver interface data\n \t * @freq: Frequency (in MHz) of the channel\n \t * @duration: Duration in milliseconds\n+\t * @filter_addr: MAC address to filter received frames (NULL for no\n+\t *\tfilter)\n \t * Returns: 0 on success, -1 on failure\n \t *\n \t * This command is used to request the driver to remain awake on the\n@@ -4320,6 +4324,10 @@ struct wpa_driver_ops {\n \t * Probe Request frames may also be requested to be reported by calling\n \t * probe_req_report(). These will be reported with EVENT_RX_PROBE_REQ.\n \t *\n+\t * If filter_addr is provided, the driver will configure an additional MAC\n+\t * address for frame filtering. i.e., this new address would be used in\n+\t * addition to the interface address.\n+\t *\n \t * The driver may not be at the requested channel when this function\n \t * returns, i.e., the return code is only indicating whether the\n \t * request was accepted. The caller will need to wait until the\n@@ -4330,7 +4338,7 @@ struct wpa_driver_ops {\n \t * executed.\n \t */\n \tint (*remain_on_channel)(void *priv, unsigned int freq,\n-\t\t\t\t unsigned int duration);\n+\t\t\t\t unsigned int duration, const u8 *filter_addr);\n \n \t/**\n \t * cancel_remain_on_channel - Cancel remain-on-channel operation\ndiff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c\nindex 52c561dfc..297f363f4 100644\n--- a/src/drivers/driver_nl80211.c\n+++ b/src/drivers/driver_nl80211.c\n@@ -9868,7 +9868,8 @@ static int nl80211_put_any_link_id(struct nl_msg *msg,\n \n \n static int wpa_driver_nl80211_remain_on_channel(void *priv, unsigned int freq,\n-\t\t\t\t\t\tunsigned int duration)\n+\t\t\t\t\t\tunsigned int duration,\n+\t\t\t\t\t\tconst u8 *filter_addr)\n {\n \tstruct i802_bss *bss = priv;\n \tstruct wpa_driver_nl80211_data *drv = bss->drv;\n@@ -9884,12 +9885,30 @@ static int wpa_driver_nl80211_remain_on_channel(void *priv, unsigned int freq,\n \t\treturn -1;\n \t}\n \n+\t/* Add MAC address filter if provided and supported */\n+\tif (filter_addr) {\n+\t\tif (!(drv->capa.flags2 & WPA_DRIVER_FLAGS2_ROC_ADDR_FILTER)) {\n+\t\t\twpa_printf(MSG_ERROR,\n+\t\t\t\t   \"nl80211: Driver does not support ROC address filter\");\n+\t\t\tnlmsg_free(msg);\n+\t\t\treturn -1;\n+\t\t}\n+\n+\t\tif (nla_put(msg, NL80211_ATTR_MAC, ETH_ALEN, filter_addr)) {\n+\t\t\twpa_printf(MSG_ERROR,\n+\t\t\t\t   \"nl80211: Failed to add MAC address filter\");\n+\t\t\tnlmsg_free(msg);\n+\t\t\treturn -1;\n+\t\t}\n+\t}\n+\n \tcookie = 0;\n \tret = send_and_recv_resp(drv, msg, cookie_handler, &cookie);\n \tif (ret == 0) {\n-\t\twpa_printf(MSG_DEBUG, \"nl80211: Remain-on-channel cookie \"\n-\t\t\t   \"0x%llx for freq=%u MHz duration=%u\",\n-\t\t\t   (long long unsigned int) cookie, freq, duration);\n+\t\twpa_printf(MSG_DEBUG,\n+\t\t\t   \"nl80211: Remain-on-channel cookie 0x%llx for freq=%u MHz duration=%u%s\",\n+\t\t\t   (unsigned long long) cookie, freq, duration,\n+\t\t\t   filter_addr ? \" (with MAC filter)\" : \"\");\n \t\tdrv->remain_on_chan_cookie = cookie;\n \t\tdrv->pending_remain_on_chan = 1;\n \t\treturn 0;\ndiff --git a/src/drivers/driver_nl80211_capa.c b/src/drivers/driver_nl80211_capa.c\nindex 1ee021cd9..b8bfb6613 100644\n--- a/src/drivers/driver_nl80211_capa.c\n+++ b/src/drivers/driver_nl80211_capa.c\n@@ -586,6 +586,9 @@ static void wiphy_info_ext_feature_flags(struct wiphy_info_data *info,\n \tif (ext_feature_isset(ext_features, len,\n \t\t\t      NL80211_EXT_FEATURE_MGMT_TX_RANDOM_TA_CONNECTED))\n \t\tcapa->flags |= WPA_DRIVER_FLAGS_MGMT_TX_RANDOM_TA_CONNECTED;\n+\tif (ext_feature_isset(ext_features, len,\n+\t\t\t      NL80211_EXT_FEATURE_ROC_ADDR_FILTER))\n+\t\tcapa->flags2 |= WPA_DRIVER_FLAGS2_ROC_ADDR_FILTER;\n \tif (ext_feature_isset(ext_features, len,\n \t\t\t      NL80211_EXT_FEATURE_SCHED_SCAN_RELATIVE_RSSI))\n \t\tcapa->flags |= WPA_DRIVER_FLAGS_SCHED_SCAN_RELATIVE_RSSI;\ndiff --git a/wpa_supplicant/dpp_supplicant.c b/wpa_supplicant/dpp_supplicant.c\nindex ab9d81593..a55d0e7ab 100644\n--- a/wpa_supplicant/dpp_supplicant.c\n+++ b/wpa_supplicant/dpp_supplicant.c\n@@ -1034,7 +1034,7 @@ static void dpp_start_listen_cb(struct wpa_radio_work *work, int deinit)\n \twpa_s->dpp_pending_listen_freq = lwork->freq;\n \n \tif (wpa_drv_remain_on_channel(wpa_s, lwork->freq,\n-\t\t\t\t      wpa_s->max_remain_on_chan) < 0) {\n+\t\t\t\t      wpa_s->max_remain_on_chan, NULL) < 0) {\n \t\twpa_printf(MSG_DEBUG,\n \t\t\t   \"DPP: Failed to request the driver to remain on channel (%u MHz) for listen\",\n \t\t\t   lwork->freq);\ndiff --git a/wpa_supplicant/driver_i.h b/wpa_supplicant/driver_i.h\nindex 60eb31ca1..5a8298288 100644\n--- a/wpa_supplicant/driver_i.h\n+++ b/wpa_supplicant/driver_i.h\n@@ -460,11 +460,12 @@ static inline int wpa_drv_if_remove(struct wpa_supplicant *wpa_s,\n \n static inline int wpa_drv_remain_on_channel(struct wpa_supplicant *wpa_s,\n \t\t\t\t\t    unsigned int freq,\n-\t\t\t\t\t    unsigned int duration)\n+\t\t\t\t\t    unsigned int duration,\n+\t\t\t\t\t    const u8 *filter_addr)\n {\n \tif (wpa_s->driver->remain_on_channel)\n \t\treturn wpa_s->driver->remain_on_channel(wpa_s->drv_priv, freq,\n-\t\t\t\t\t\t\tduration);\n+\t\t\t\t\t\t\tduration, filter_addr);\n \treturn -1;\n }\n \ndiff --git a/wpa_supplicant/nan_supplicant.c b/wpa_supplicant/nan_supplicant.c\nindex 1eac1fb78..362dd75e3 100644\n--- a/wpa_supplicant/nan_supplicant.c\n+++ b/wpa_supplicant/nan_supplicant.c\n@@ -523,7 +523,7 @@ static void wpas_nan_usd_start_listen_cb(struct wpa_radio_work *work,\n \t\tduration = wpa_s->max_remain_on_chan;\n \twpa_printf(MSG_DEBUG, \"NAN: Start listen on %u MHz for %u ms\",\n \t\t   lwork->freq, duration);\n-\tif (wpa_drv_remain_on_channel(wpa_s, lwork->freq, duration) < 0) {\n+\tif (wpa_drv_remain_on_channel(wpa_s, lwork->freq, duration, NULL) < 0) {\n \t\twpa_printf(MSG_DEBUG,\n \t\t\t   \"NAN: Failed to request the driver to remain on channel (%u MHz) for listen\",\n \t\t\t   lwork->freq);\ndiff --git a/wpa_supplicant/offchannel.c b/wpa_supplicant/offchannel.c\nindex 9e591d7d6..688718cd7 100644\n--- a/wpa_supplicant/offchannel.c\n+++ b/wpa_supplicant/offchannel.c\n@@ -124,7 +124,7 @@ static void wpas_send_action_cb(void *eloop_ctx, void *timeout_ctx)\n #endif /* CONFIG_TESTING_OPTIONS */\n \t\t\tif (wpa_drv_remain_on_channel(\n \t\t\t\t    wpa_s, wpa_s->pending_action_freq,\n-\t\t\t\t    duration) < 0) {\n+\t\t\t\t    duration, NULL) < 0) {\n \t\t\t\twpa_printf(MSG_DEBUG, \"Off-channel: Failed to \"\n \t\t\t\t\t   \"request driver to remain on \"\n \t\t\t\t\t   \"channel (%u MHz) for Action Frame \"\n@@ -369,7 +369,7 @@ int offchannel_send_action(struct wpa_supplicant *wpa_s, unsigned int freq,\n \t\twait_time += wpa_s->extra_roc_dur;\n \t}\n #endif /* CONFIG_TESTING_OPTIONS */\n-\tif (wpa_drv_remain_on_channel(wpa_s, freq, wait_time) < 0) {\n+\tif (wpa_drv_remain_on_channel(wpa_s, freq, wait_time, NULL) < 0) {\n \t\twpa_printf(MSG_DEBUG, \"Off-channel: Failed to request driver \"\n \t\t\t   \"to remain on channel (%u MHz) for Action \"\n \t\t\t   \"Frame TX\", freq);\ndiff --git a/wpa_supplicant/p2p_supplicant.c b/wpa_supplicant/p2p_supplicant.c\nindex 154322f8a..b8a9d60b8 100644\n--- a/wpa_supplicant/p2p_supplicant.c\n+++ b/wpa_supplicant/p2p_supplicant.c\n@@ -3253,7 +3253,7 @@ static void wpas_start_listen_cb(struct wpa_radio_work *work, int deinit)\n \t}\n #endif /* CONFIG_TESTING_OPTIONS */\n \n-\tif (wpa_drv_remain_on_channel(wpa_s, lwork->freq, duration) < 0) {\n+\tif (wpa_drv_remain_on_channel(wpa_s, lwork->freq, duration, NULL) < 0) {\n \t\twpa_printf(MSG_DEBUG, \"P2P: Failed to request the driver \"\n \t\t\t   \"to remain on channel (%u MHz) for Listen \"\n \t\t\t   \"state\", lwork->freq);\n",
    "prefixes": [
        "RFC",
        "03/23"
    ]
}