From patchwork Tue Jan 28 15:09:48 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergey Matyukevich X-Patchwork-Id: 1230407 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=quantenna.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20170209 header.b=rlE3vrso; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=quantenna.com header.i=@quantenna.com header.a=rsa-sha256 header.s=selector1 header.b=kRvRWu+s; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 486VRp5z9xz9sQp for ; Wed, 29 Jan 2020 02:10:45 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=biQCWVC+W5EMtPID+C23qSEMXh+QkhPGTmgNAUb4JZ4=; b=rlE3vrsosz9bP3 6+0igbvNQ4m+Qnit/KFpibkrVPHgDWBLSmSILa6Osko4t/niCXEzt6MrMTWXGA2ZFoqhRuf5hi7a0 IQk17mwDC/qLyvyZmsEezihCnAw0U623JVOEWjbvg40Iwy8phmUwN2fOXPARjtwsnNjAIqgtRqSi9 GhGW3UDIRw5DVytGZVpSbh6TCpSYlQnSycSPunzQvsy71/jXkVwGcBL0eDfBSb7QhfQNcfpa7YO/L b0IhtUOZ4wT6FNwGbhGy2Av0Nlbv+45csloXXGQnMzv7qw0dzQx86Syw0xTBkpkUEYgszrzretv+T BSNd7VK08DL6k8wsql+w==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1iwSVl-0002Dy-7S; Tue, 28 Jan 2020 15:10:41 +0000 Received: from mx0a-00183b01.pphosted.com ([67.231.149.44]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iwSVi-0002DH-0X for hostap@lists.infradead.org; Tue, 28 Jan 2020 15:10:39 +0000 Received: from pps.filterd (m0048106.ppops.net [127.0.0.1]) by mx0a-00183b01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 00SF1Sc0026226 for ; Tue, 28 Jan 2020 08:10:33 -0700 Received: from nam04-sn1-obe.outbound.protection.outlook.com (mail-sn1nam04lp2059.outbound.protection.outlook.com [104.47.44.59]) by mx0a-00183b01.pphosted.com with ESMTP id 2xrhdayctq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 28 Jan 2020 08:10:33 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EBAIFnThZer3cYus/Z6E/dqhQ/rOKQfrBJoPnU2q+zmLLKkJY5HFe0qZzWKc5Mb3fv5G2P4x49P7cSlx3vh7WU2KVleLMJPWAR/JcrztlDodxdXVSbuJodvlRXXNP+MnNdJPvbxFLKm3xLrL5K/HpvG9VjJbOsUm73GJ/hWHxHWE2sFddKncAfDviY5jCbYznWTq2I7BVTHKopaJWKXRDhVW1uv2XKAaO0tr/Mf+zBNiIclrEFdb+4UrsDq3xOPcsVCHyr2ME4D3xto4//Ed3c03FS+ptruHK3+2KKpiaKL/oeGLAOAIGluXPK0icOou82DnAzWf/pMZKU5wO3jqCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=2Xn8R1bOfVTG035rwfjAGko/htW0vfzObP4IGW/prJo=; b=mUYj2ZmAsGzFYCRdXiT7oI0q6/s3HJeZ7ZDGB/y+N0+NNUwvS1dkyaWZ2huqnnIw3qT3KY05sgQEOcB16tIJaTDE/GAvtwRH+pu56DLw2oJTMzzUgv+bGLxTOtR4ZSnEOg6eybUJSRq5Gxdo/aHMZLHiOSbtvaD3kUs689VmdDKNnpgLIrO7D/MWYsPk9J6raljjjXnO6sPdhJBnMJi5V3cpSvb9TGeyGRgBpuhbwzRxMrWCcEDm/OfLghPZJz3hECVS/4JPiLNe/oi3SJDzjwYMi0RtkdCvi5C88mkKLMig28XybIkgxNfOXBKLSrrO8QleSyx2tqwMn0dkE8FWiQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=quantenna.com; dmarc=pass action=none header.from=quantenna.com; dkim=pass header.d=quantenna.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quantenna.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=2Xn8R1bOfVTG035rwfjAGko/htW0vfzObP4IGW/prJo=; b=kRvRWu+sauhQKhALNjooYAT9DRNBwzcfhGKaNZfRPeSKpIGu0NuxBDjXMgDlTCI4mwVt1RE2oAqlMtU5CafUFyENSJhGLb+HaVbqSImUImmLK2H4pa/zgF1owPrtgiIvvIhewwalJ2yTo5wRYArnVL6lcZA8crnoAVzZnMKXizg= Received: from SN6PR05MB3952.namprd05.prod.outlook.com (52.132.125.24) by SN6PR05MB4830.namprd05.prod.outlook.com (52.135.117.96) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2686.22; Tue, 28 Jan 2020 15:10:32 +0000 Received: from SN6PR05MB3952.namprd05.prod.outlook.com ([fe80::f179:5385:36b7:c0ad]) by SN6PR05MB3952.namprd05.prod.outlook.com ([fe80::f179:5385:36b7:c0ad%3]) with mapi id 15.20.2686.019; Tue, 28 Jan 2020 15:10:31 +0000 Received: from SN6PR05MB4928.namprd05.prod.outlook.com (52.135.117.74) by SN6PR05MB5421.namprd05.prod.outlook.com (52.135.109.140) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2686.11; Tue, 28 Jan 2020 15:09:49 +0000 Received: from SN6PR05MB4928.namprd05.prod.outlook.com ([fe80::2956:4ff3:7d5b:333c]) by SN6PR05MB4928.namprd05.prod.outlook.com ([fe80::2956:4ff3:7d5b:333c%5]) with mapi id 15.20.2686.019; Tue, 28 Jan 2020 15:09:49 +0000 Received: from bars.quantenna.com (195.182.157.78) by HE1P192CA0013.EURP192.PROD.OUTLOOK.COM (2603:10a6:3:fe::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2665.22 via Frontend Transport; Tue, 28 Jan 2020 15:09:47 +0000 From: Sergey Matyukevich To: "hostap@lists.infradead.org" Subject: [RFC PATCH 0/5] hostapd: DFS channels in chan_switch command ane event Thread-Topic: [RFC PATCH 0/5] hostapd: DFS channels in chan_switch command ane event Thread-Index: AQHV1ez7KhmEjZ7zq0qj8qN26FnS5Q== Date: Tue, 28 Jan 2020 15:09:48 +0000 Message-ID: <20200128150940.17018-1-sergey.matyukevich.os@quantenna.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: HE1P192CA0013.EURP192.PROD.OUTLOOK.COM (2603:10a6:3:fe::23) To SN6PR05MB4928.namprd05.prod.outlook.com (2603:10b6:805:9d::10) x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.11.0 x-originating-ip: [195.182.157.78] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 5fcd0af1-e275-4d61-c287-08d7a4041dea x-ms-traffictypediagnostic: SN6PR05MB5421:|SN6PR05MB4830: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-moderation-data: 1/28/2020 3:10:29 PM x-ms-oob-tlc-oobclassifiers: OLM:3826; x-forefront-prvs: 029651C7A1 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(346002)(366004)(39850400004)(396003)(376002)(136003)(189003)(199004)(8676002)(71200400001)(8936002)(1076003)(36756003)(107886003)(6486002)(4744005)(4326008)(6916009)(86362001)(66476007)(2616005)(103116003)(956004)(316002)(478600001)(2906002)(7696005)(52116002)(16526019)(186003)(66946007)(5660300002)(64756008)(66446008)(66556008)(26005)(81166006)(81156014); DIR:OUT; SFP:1101; SCL:1; SRVR:SN6PR05MB4830; H:SN6PR05MB3952.namprd05.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: quantenna.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: oW/8DNafg78+KjeuQK3LtLdlRja+CFdi5bfeB3V9qDq2nnV+8jyWXYYdvW1mSUglylbcfQ9RTRYc/AWTqsr3rVi1MbxOU4XqM6oiczPMeZrzs6zgKJYGban5ABjIkPNjOh1hyKe/zqDq+tXJlGsn1cEHYr3StlfUWma+m+RXwEdAzhds6TvN7U42bN0xTZs7wgcACxEZuPRKz4TQ6M/u/BRf36+o561gAvuT4qaybLnKeUnf/mErjBECZH0zmU9NqZcpDayXj5DAWSKCKB/XSRPmsZgLAke1CzBCs4uUKgKBYOFxgzPBUYI7L0L9ByDkdhoOfZ4FEfvpshRjVxd6MEksVZhk8NMwT5W7hxvZ/pe1wzwD+vzWjk3gn9/7l07U92hi7iZ7UeoZKzgYFVDWBoy7jMbCX+cIprZQKyM3SUQzmKmtlay/W+3Ld4y/yBM/ x-ms-exchange-antispam-messagedata: Qsw8qjCUy8Vy0VgwpnMy91d+9Tyb7wfShV91ybUh9fruEZkKDj0HYrtkfpjVvD3J9OZMNkNqJCzWqF+fzJU6ytDXcitsy97S5ifgQi99yE1oylG4PXX32qpH+3HvLpsLE5thjOjw582JhUrtyq2FfA== MIME-Version: 1.0 X-OriginatorOrg: quantenna.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5fcd0af1-e275-4d61-c287-08d7a4041dea X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a355dbce-62b4-4789-9446-c1d5582180ff X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: CfvATmr2dVQ+Ff0n+VKBJpi3NSfMMymFiA8agL3e40qVXJPdcGg2hJhoqDr7fOOfISkrpn/OEHug3x+68NZJ6T0cXvCMCTqCKThGKy1J0z412XNy4jzYVp/rJiSU58l1qRjoXMYtv3UyxFCo1YEqjB7e9me/RjXmPKO0LQxwKHNUmSpcgwWVBX5fcqzb/NTK0AaYhMatWOODRe0EY5ilhodzedW65bmfk363/Yr5I5Q= X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Jan 2020 15:10:31.8100 (UTC) X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR05MB4830 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138, 18.0.572 definitions=2020-01-28_03:2020-01-28, 2020-01-28 signatures=0 X-Proofpoint-Spam-Reason: safe X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200128_071038_306704_C1078CDD X-CRM114-Status: UNSURE ( 8.47 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.9 (/) X-Spam-Report: SpamAssassin version 3.4.3 on bombadil.infradead.org summary: Content analysis details: (-0.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [67.231.149.44 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: hostap@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Sergey Matyukevich Sender: "Hostap" Errors-To: hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Hello Jouni and all, This patch series includes misc bits related to switching to DFS channels in various circumstances. Major changes include: - support for switching to DFS channels in hostapd_cli chan_switch command - handle switching to DFS channel in ch_switch event for repeater Sergey Matyukevich (5): hostapd: basic channel check for hostapd_cli chan_switch DFS: rename and export hostapd_config_dfs_chan_available helper DFS: add new hostapd_is_dfs_overlap helper hostapd: add support for DFS channels in hostapd_cli chan_switch hostapd: DFS for channel switch in repeater mode hostapd/ctrl_iface.c | 173 ++++++++++++++++++++++++++++++++++++++++++++++++- src/ap/dfs.c | 59 ++++++++++++++++- src/ap/dfs.h | 5 +- src/ap/drv_callbacks.c | 7 ++ 4 files changed, 240 insertions(+), 4 deletions(-)