{"id":2219031,"url":"http://patchwork.ozlabs.org/api/1.1/covers/2219031/?format=json","web_url":"http://patchwork.ozlabs.org/project/hostap/cover/20260402095356.1401176-1-allen.ye@mediatek.com/","project":{"id":22,"url":"http://patchwork.ozlabs.org/api/1.1/projects/22/?format=json","name":"HostAP Development","link_name":"hostap","list_id":"hostap.lists.infradead.org","list_email":"hostap@lists.infradead.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20260402095356.1401176-1-allen.ye@mediatek.com>","date":"2026-04-02T09:53:49","name":"[v11,0/7] Introduce Automated Frequency Coordination (AFC) support","submitter":{"id":86975,"url":"http://patchwork.ozlabs.org/api/1.1/people/86975/?format=json","name":"Allen Ye","email":"Allen.Ye@mediatek.com"},"mbox":"http://patchwork.ozlabs.org/project/hostap/cover/20260402095356.1401176-1-allen.ye@mediatek.com/mbox/","series":[{"id":498460,"url":"http://patchwork.ozlabs.org/api/1.1/series/498460/?format=json","web_url":"http://patchwork.ozlabs.org/project/hostap/list/?series=498460","date":"2026-04-02T09:53:56","name":"Introduce Automated Frequency Coordination (AFC) support","version":11,"mbox":"http://patchwork.ozlabs.org/series/498460/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/covers/2219031/comments/","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=10PGRNGD;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n unprotected) header.d=mediatek.com header.i=@mediatek.com header.a=rsa-sha256\n header.s=dk header.b=epwhzcUc;\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 4fmczW1QmPz1yGJ\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 02 Apr 2026 21:09:59 +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 1w8EzS-0000000HMCU-3o2k;\n\tThu, 02 Apr 2026 10:09:30 +0000","from mailgw01.mediatek.com ([216.200.240.184])\n\tby bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux))\n\tid 1w8EzO-0000000HMAN-3jeH\n\tfor hostap@lists.infradead.org;\n\tThu, 02 Apr 2026 10:09:29 +0000","from mtkmbs14n2.mediatek.inc [(172.21.101.76)] by\n mailgw01.mediatek.com\n\t(envelope-from <allen.ye@mediatek.com>)\n\t(musrelay.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384\n 256/256)\n\twith ESMTP id 1282830682; Thu, 02 Apr 2026 02:54:10 -0700","from mtkmbs13n2.mediatek.inc (172.21.101.108) by\n MTKMBS14N1.mediatek.inc (172.21.101.75) with Microsoft SMTP Server\n (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id\n 15.2.2562.29; Thu, 2 Apr 2026 17:54:08 +0800","from mtksitap99.mediatek.inc (10.233.130.16) by\n mtkmbs13n2.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id\n 15.2.2562.29 via Frontend Transport; Thu, 2 Apr 2026 17:54:08 +0800"],"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:Message-ID:Date:Subject:CC\n\t:To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:\n\tResent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:\n\tList-Owner; bh=1zMfLkzmqCpTir5CCwB8Io4zGOJHmrW4WANWyQKz9cc=; b=10PGRNGDBNNVdh\n\ts9v3mq8Qv/tmIng+3PqzV8mqda0uCt8jDaS5XR8rjU4pYJI0hUdoKXVOSAzGRXRcNRUNH7MuU7DIg\n\t/WOrX3kIJQO+c8+RwtSILqUmKsTEvnJqaCaLEbjUUSOpgNkpDtVPy5hVXnMdgQDfJLdNquUfrXbln\n\tFHPhArnoMFFDEYUQmSTL3blg+kN1iO1Lv4kiPNVKpC8cjM6RQWfg/ZB+giv316zs65N0G1cqdPz1t\n\tDyTL8eMq/jLl46YQfxMm+DOOxUPowW99Is0Fq6Ab1FNiLeAYld0LiYhTFxvctdbh7T4QEB5DTfNWt\n\tfpJvCDV9L0GPn1InePEg==;","v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n d=mediatek.com; s=dk;\n\th=Content-Type:Content-Transfer-Encoding:MIME-Version:Message-ID:Date:Subject:CC:To:From;\n bh=bpKAa/fukD4QisfPVAMLXkpOzFmgwwl6qk5+QlSWDak=;\n\tb=epwhzcUcsJ0ByeqA9e+m46nefwtuPqFanZeXorzLcmQRuGZzTj1qyBCHTlLAAntHK3YygErhU33IWFivWYj5IBT/ChHZCyLdcoXKUwHdqKfsHG0YFb+lW6AOrYeS3Hj5ba8FksSKjiAQrTW8Voo7RGw7MzA79GwZPDIa9rq7z4U=;"],"X-UUID":["e5c3fbf62e7911f19e7563141e833ce8-20260402","e5c3fbf62e7911f19e7563141e833ce8-20260402"],"X-CID-P-RULE":"Release_Ham","X-CID-O-INFO":"VERSION:1.3.12,REQID:a8e8b5b0-84ab-4f7d-bc24-3d44ee5041bd,IP:0,U\n\tRL:0,TC:0,Content:0,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION:\n\trelease,TS:0","X-CID-META":"VersionHash:e7bac3a,CLOUDID:9ef9fd8e-6df4-4a3d-a7a4-fbdc42d669ce,B\n\tulkID:nil,BulkQuantity:0,Recheck:0,SF:102|836|865|888|898,TC:-5,Content:0|\n\t15|50,EDM:-3,IP:nil,URL:1,File:130,RT:0,Bulk:nil,QS:nil,BEC:-1,COL:0,OSI:0\n\t,OSA:0,AV:0,LES:1,SPR:NO,DKR:0,DKP:0,BRR:0,BRE:0,ARC:0","X-CID-BVR":"2,SSN|SDN","X-CID-BAS":"2,SSN|SDN,0,_","X-CID-FACTOR":"TF_CID_SPAM_SNR,TF_CID_SPAM_ULS","X-CID-RHF":"D41D8CD98F00B204E9800998ECF8427E","From":"Allen Ye <allen.ye@mediatek.com>","To":"Jouni Malinen <j@w1.fi>","CC":"<hostap@lists.infradead.org>, Felix Fietkau <nbd@nbd.name>, Evelyn Tsai\n\t<evelyn.tsai@mediatek.com>, \"Mark-MC . Lee\" <mark-mc.lee@mediatek.com>, Tarun\n Radhakrishnan <tarun.r@tataelxsi.co.in>, Allen Ye <allen.ye@mediatek.com>","Subject":"[PATCH v11 0/7] Introduce Automated Frequency Coordination (AFC)\n support","Date":"Thu, 2 Apr 2026 17:53:49 +0800","Message-ID":"<20260402095356.1401176-1-allen.ye@mediatek.com>","X-Mailer":"git-send-email 2.45.2","MIME-Version":"1.0","X-MTK":"N","X-CRM114-Version":"20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ","X-CRM114-CacheID":"sfid-20260402_030926_941507_94A3D1F3 ","X-CRM114-Status":"GOOD (  14.87  )","X-Spam-Score":"-2.1 (--)","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:  This patch series introduces Automated Frequency\n Coordination\n    (AFC) support for Standard Power Devices (SPDs) operating in the 6GHz\n UNII-5\n    and UNII-7 bands. AFC is a regulatory requirement for SPDs to [...]\n Content analysis details:   (-2.1 points, 5.0 required)\n  pts rule name              description\n ---- ----------------------\n --------------------------------------------------\n -0.0 SPF_PASS               SPF: sender matches SPF record\n -0.0 SPF_HELO_PASS          SPF: HELO 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]\n  0.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                             [216.200.240.184 listed in\n sa-accredit.habeas.com]\n  0.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                        [216.200.240.184 listed in\n sa-trusted.bondedsender.org]\n  0.0 UNPARSEABLE_RELAY      Informational: message has unparseable relay\n lines\n  0.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                           [216.200.240.184 listed in\n bl.score.senderscore.com]","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":"This patch series introduces Automated Frequency Coordination (AFC) support\nfor Standard Power Devices (SPDs) operating in the 6GHz UNII-5 and UNII-7\nbands. AFC is a regulatory requirement for SPDs to determine a list of\navailable channels and their permissible power levels.\n\nThe implementation introduces a new standalone daemon, afcd, to manage\ncommunication with the AFC server. A client within hostapd then interacts\nwith afcd via a Unix socket to fetch spectrum availability and update AP\nparameters accordingly. The series also includes hwsim tests for validation.\n\nThe implementation has been tested against the Wi-Fi Alliance's AFC DUT\nTest Harness [0].\n\n[0] https://github.com/Wi-FiTestSuite/AFC-DUT/tree/main\nChanges since v10:\n- fix compile warning\n- fix memory leak when building afc request\n- add bandwidth 320 afc testcase in hwsim test\n- rebase on top of hostapd main branch\nChanges since v9:\n- add afc event for EasyMesh spec 8.2.5 requirements\n- fix Wsign-compare\n- rebase on top of hostapd main branch\nChanges since v8:\n- rework afc request with internal JSON implementation\n- add hwsim test case to mock afcd and AFC server\n- add ctrl interface commands to dump AFC information and resend requests\n- rebase on top of hostapd main branch\nChanges since v7:\n- fix 320MHz channel width support\n- rebase on top of hostapd main branch\nChanges since v6:\n- do not run acs in hostapd_afc_handle_request() if the configured channel is\n  available in the AFC list from the coordinator\n- fix possible crash in hostap_afc_disable_channels()\n- add more debug log in hostapd_afc_parse_reply()\nChanges since v5:\n- rebased on top of hostapd main branch\nChanges since v4:\n- fix curl header parsing\n- increase afc buffer size\n- fix afc-reply.txt\n- add some more error logging\n- add sanity check for some afc config file data\nChanges since v3:\n- fix compilation errors when IEEE80211_AX is not enabled\n- fix a leftover crash stopping the interface\n- make sure rx buffer is null-terminated\nChanges since v2:\n- multiple fixes testing with AFC DUT Test Harness\nChanges since v1:\n- use unix socket instead of a tcp one\nChanges since rfc:\n- move curl connection to a dedicated afc daemon\n\nAllen Ye (4):\n  JSON: Add double type support\n  hostapd: Expand hostapd_cli and ctrl_iface buffer size\n  hostapd: Support 80/160/320 MHz widths in hostapd_is_usable_chans\n  tests: Add AFC hwsim tests\n\nLorenzo Bianconi (3):\n  hostapd: afcd: Add AFC daemon support\n  hostapd: ap: Add AFC client support\n  hostapd: Update TPE IE according to AFC\n\n afc/.gitignore                     |    1 +\n afc/Makefile                       |   31 +\n afc/afc-reply.txt                  |  219 ++++++\n afc/afcd.c                         |  402 ++++++++++\n hostapd/Makefile                   |    8 +\n hostapd/config_file.c              |  250 +++++++\n hostapd/ctrl_iface.c               |   53 +-\n hostapd/defconfig                  |    3 +\n hostapd/hostapd.conf               |   41 +\n hostapd/hostapd_cli.c              |   31 +-\n src/ap/afc.c                       | 1122 ++++++++++++++++++++++++++++\n src/ap/ap_config.c                 |   15 +\n src/ap/ap_config.h                 |   46 ++\n src/ap/hostapd.c                   |   24 +\n src/ap/hostapd.h                   |   58 ++\n src/ap/hw_features.c               |  128 +++-\n src/ap/hw_features.h               |    7 +\n src/ap/ieee802_11.c                |   53 +-\n src/common/wpa_ctrl.h              |    3 +\n src/utils/json.c                   |  137 +++-\n src/utils/json.h                   |    3 +\n tests/hwsim/example-hostapd.config |    1 +\n tests/hwsim/test_afc.py            |  335 +++++++++\n 23 files changed, 2899 insertions(+), 72 deletions(-)\n create mode 100644 afc/.gitignore\n create mode 100644 afc/Makefile\n create mode 100644 afc/afc-reply.txt\n create mode 100644 afc/afcd.c\n create mode 100644 src/ap/afc.c\n create mode 100644 tests/hwsim/test_afc.py"}