Message ID | 20200128150940.17018-6-sergey.matyukevich.os@quantenna.com |
---|---|
State | Accepted |
Headers | show
Return-Path: <hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org> 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=<UNKNOWN>) 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=A6+FEwDY; 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=YmUyMUyL; 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 486VSz1Yf6z9sRd for <incoming@patchwork.ozlabs.org>; Wed, 29 Jan 2020 02:11:47 +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:In-Reply-To:References: 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: List-Owner; bh=mSGrTMBUTYLgA0sVtdmVW7ezXl36lrUVZO3V01oZt/E=; b=A6+FEwDYPWrgMW gu96V2DW+iLU8zAeBSnOaSXTOVkKSnAm6pfUbrt5jNg/rNmElhKzTVM6Da4hs0Yk/KgLUb3oUL0oq 2F+qf50BVsMvGHML8AbBw4pAl67PNJQyAqPVsmnK2ySj6hSqn4D5EebVLMFP2YmegOzSbDaDbBdKI AG9XGjok78buiDBHtWcKmoVDjd4TT6GJrSc1+TqOjShNUy5tQ4t4Vn9jO4vkLJUeA4/X8prcg0H8+ Xj6YNi/NbYqTwL7caY20mBmTZ25PxW3Oh5c/t5VXjQ6cGR/3fvr1bHTACNGz3Th815CfQpOXitf5o b9azAStcZW3b5H0c2+OA==; 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 1iwSWk-0003Hq-S6; Tue, 28 Jan 2020 15:11:42 +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 1iwSWh-0003Gw-Ii for hostap@lists.infradead.org; Tue, 28 Jan 2020 15:11:40 +0000 Received: from pps.filterd (m0048105.ppops.net [127.0.0.1]) by mx0a-00183b01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 00SFBClv000981 for <hostap@lists.infradead.org>; Tue, 28 Jan 2020 08:11:39 -0700 Received: from nam11-co1-obe.outbound.protection.outlook.com (mail-co1nam11lp2176.outbound.protection.outlook.com [104.47.56.176]) by mx0a-00183b01.pphosted.com with ESMTP id 2xrkum754f-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for <hostap@lists.infradead.org>; Tue, 28 Jan 2020 08:11:39 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Al95R8dxqf9RQ7JX/UvWqLjg/PYRIOnwC2MA/trQUjA3hdgeVuyQ97XU2oQcGqgCSvvyamAv62rcJjxG0QXg91uDS1je5+95GGRHI3PpFKdgcA60frU6g0EO+UJoiWNFkEh4m3WEkaQmBbRHXHOMGX25v4HLpuccslG7Ygm82rqRqItx9mxwOEQj4ykuVk3FTFwkYfHFxOdKX1v+OsunrPNMXXKQKH06MnuiuRMMsNIlxldZWEhrRpujbYcG8uxtQFYrthaz6vpc+8IBSbBMlGD3yUt/FHxsRX6hcumZ5AmVZ9EqxalJGA6gZcmCKA/IfLyUy5CbYCJKWvBe7UEgEQ== 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=YT8k0NK7K37fOAjhXKLL9267f5xnJdVa3CUP/CHu/EM=; b=ascE2iMAPrhiK3J/KSztt+kI/N4Iczt68OvXUF4WRxEc4S6HKPJNmpNBr31aieYf1yG72+3OxT+jKVTV+2OBwf43ZywRs2xm+09Q40Lgow3Mw2Lql5wYsfCk9nE0/pR8PfOJckMWOB+H1CsRbA06ZnEzb3wvBMTiBo9ZVZlPJz0zOPHz7MjrIv9e32P8mZp/FltUfh+LMmMA3U4aPHqhNurKhoq+EVYc0EYMKT/KpkaS8IEcbQ8N9uMAlqfAtTEPxocbq/WQPXmDIKmnK8Thr4QEe+Y2ATkTNbXL30V6MpDwkElZkwMCjElyxJWK4u5ybyaFh/Vk+fwJ/qEeUWdn0g== 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=YT8k0NK7K37fOAjhXKLL9267f5xnJdVa3CUP/CHu/EM=; b=YmUyMUyLn9wPZ7yyKt0xt+kRYgbj7b+d6apM++BAkw2nUerPLpZ5ttSvo+RFFMsjaxV6XvROi+ShaK6HeMCzb9DKbYsu51t9NCFRnWOENtdBtUVYC1wZH4TRYMSUaje258T5WhJ+S1zUg5n10o7NTFdWBvdFnzHc8UrHMo5yxDg= Received: from SN4PR0501MB3837.namprd05.prod.outlook.com (10.167.141.143) by SN4PR0501MB3855.namprd05.prod.outlook.com (10.167.139.160) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2686.10; Tue, 28 Jan 2020 15:11:37 +0000 Received: from SN4PR0501MB3837.namprd05.prod.outlook.com ([fe80::3de3:c8c8:d5c6:d4]) by SN4PR0501MB3837.namprd05.prod.outlook.com ([fe80::3de3:c8c8:d5c6:d4%6]) with mapi id 15.20.2686.019; Tue, 28 Jan 2020 15:11:37 +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:54 +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:54 +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:53 +0000 From: Sergey Matyukevich <sergey.matyukevich.os@quantenna.com> To: "hostap@lists.infradead.org" <hostap@lists.infradead.org> Subject: [RFC PATCH 5/5] hostapd: DFS for channel switch in repeater mode Thread-Topic: [RFC PATCH 5/5] hostapd: DFS for channel switch in repeater mode Thread-Index: AQHV1ez/HM8blOCVxk6qv5Sz6tLmUA== Date: Tue, 28 Jan 2020 15:09:54 +0000 Message-ID: <20200128150940.17018-6-sergey.matyukevich.os@quantenna.com> References: <20200128150940.17018-1-sergey.matyukevich.os@quantenna.com> In-Reply-To: <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: c6d8e046-d9ac-4037-1f6f-08d7a4042181 x-ms-traffictypediagnostic: SN6PR05MB5421:|SN4PR0501MB3855: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: <SN6PR05MB5421F96F81AAE146BA939D4BA30A0@SN6PR05MB5421.namprd05.prod.outlook.com> x-moderation-data: 1/28/2020 3:11:35 PM x-ms-oob-tlc-oobclassifiers: OLM:7219; x-forefront-prvs: 029651C7A1 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(136003)(39850400004)(396003)(346002)(376002)(366004)(199004)(189003)(86362001)(52116002)(956004)(2616005)(316002)(8936002)(103116003)(8676002)(7696005)(16526019)(186003)(26005)(81156014)(71200400001)(81166006)(1076003)(66556008)(6486002)(2906002)(107886003)(66946007)(4326008)(64756008)(66446008)(66476007)(478600001)(6916009)(5660300002)(36756003); DIR:OUT; SFP:1101; SCL:1; SRVR:SN4PR0501MB3855; H:SN4PR0501MB3837.namprd05.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX: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: RZPdg99jdSZQydssK7n5K/hM4lRnBMTjo1x99wXRkBwtz1odTwHrjHfkEBJU7NE/wnDsvOx+RJqxk4+/qEp0cNGUXkpRuwTzLNiEiv6dmmEdP+HXlOy/l4JGgCLYPiefS4P7B8OEiQ+96P/77BLOZp1ctqBTWhwhZNATBh5ypjG7MV6ELQ9O7ciGk44BAZgKMdgpcLWKMK0CZs+1WqYJ2xwE0TI8YDrt1Vbu1srBeOKYtImOVLCk5EBBvzPjTZcohGA4jBs+ttxsGi38XPBlzQVAMj4YHIJ5cX6o4AWl9Yil8PkHFQI5W/eACdNyJFQsHtVhzxO2Ef10Y9gMlvftQ20zhRspzNpBAeSw4SwhI1sO843SWYXwcXlpzCUQAY4cqjErDpwlAarMmSBD0jPY+0H/odXBZiP1PNbqEWD7tyQcWWsolcymdch5LXhiLwhC x-ms-exchange-antispam-messagedata: gt4qbOLO70vrKS562llIPSuUnafrUyz3XgJxjMmYObb9w2AKLlCBmlpQvAotzn2cm0lsirx+nHnmwKJ02/M54M/7lmxtp1rQSeZXGV7Wpg0HB/S772PlsQw3A5GgsPFYoJEfzXy0JvbMs8+9GF9IFw== MIME-Version: 1.0 X-OriginatorOrg: quantenna.com X-MS-Exchange-CrossTenant-Network-Message-Id: c6d8e046-d9ac-4037-1f6f-08d7a4042181 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: DJw9IQlUzacmVnuXr8XjnFdbHeraUILaRXS4EKn1Nc6Y8pq4l5JJToOxnXJs+Mxr6L4p6CIQyMYBJ+/nR/qAGWRWA8eZ33ySwNMLSeraYodNu0l99hamCysLatDMQL+PDlh9/aul14JjUBEld+7jopLKdwD8KAwFCx01J8fdLdQlLxrBNX67BUt9el7+NPxH96R08oR2WopSop4IqiXHbHEJiTzyMj1ubWoXyponIjA= X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Jan 2020 15:11:37.7028 (UTC) X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN4PR0501MB3855 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-Details: rule=notspam policy=default score=0 clxscore=1015 phishscore=0 adultscore=0 spamscore=0 mlxscore=0 impostorscore=0 lowpriorityscore=0 malwarescore=0 suspectscore=0 bulkscore=0 mlxlogscore=961 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-1911200001 definitions=main-2001280120 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200128_071139_622352_165B18EA X-CRM114-Status: GOOD ( 11.43 ) 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: <hostap.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/hostap>, <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>, <mailto:hostap-request@lists.infradead.org?subject=subscribe> Cc: Sergey Matyukevich <sergey.matyukevich.os@quantenna.com> 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 |
Series |
hostapd: DFS channels in chan_switch command ane event
|
expand
|
diff --git a/src/ap/drv_callbacks.c b/src/ap/drv_callbacks.c index fdd845573..6575eaa9f 100644 --- a/src/ap/drv_callbacks.c +++ b/src/ap/drv_callbacks.c @@ -906,6 +906,13 @@ void hostapd_event_ch_switch(struct hostapd_data *hapd, int freq, int ht, } else if (hapd->iface->drv_flags & WPA_DRIVER_FLAGS_DFS_OFFLOAD) { wpa_msg(hapd->msg_ctx, MSG_INFO, AP_CSA_FINISHED "freq=%d dfs=%d", freq, is_dfs); + } else if (is_dfs) { + if (hostapd_is_dfs_required(hapd->iface) && + !hostapd_is_dfs_chan_available(hapd->iface) && + !hapd->iface->cac_started) { + hostapd_disable_iface(hapd->iface); + hostapd_enable_iface(hapd->iface); + } } for (i = 0; i < hapd->iface->num_bss; i++)
In repeater mode remote AP may request channel switch to a new channel. Check if DFS is required for the new channel before proceeding with normal AP operations. Start CAC procedure if radar detection is required and channel is not yet marked as available. Signed-off-by: Sergey Matyukevich <sergey.matyukevich.os@quantenna.com> --- src/ap/drv_callbacks.c | 7 +++++++ 1 file changed, 7 insertions(+)