Return-path: Received: from wolverine02.qualcomm.com ([199.106.114.251]:31421 "EHLO wolverine02.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751084AbdAaJPx (ORCPT ); Tue, 31 Jan 2017 04:15:53 -0500 From: "Thiagarajan, Vasanthakumar" To: Johannes Berg CC: "linux-wireless@vger.kernel.org" Subject: Re: [RFC 2/3] cfg80211: Disallow moving out of operating DFS channel in non-ETSI Date: Tue, 31 Jan 2017 09:12:38 +0000 Message-ID: <589054CB.3050106@qti.qualcomm.com> (sfid-20170131_101723_841534_77BEA498) References: <1485343870-23601-1-git-send-email-vthiagar@qti.qualcomm.com> <1485343870-23601-3-git-send-email-vthiagar@qti.qualcomm.com> <1485423406.11038.6.camel@sipsolutions.net> In-Reply-To: <1485423406.11038.6.camel@sipsolutions.net> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org List-ID: T24gVGh1cnNkYXkgMjYgSmFudWFyeSAyMDE3IDAzOjA2IFBNLCBKb2hhbm5lcyBCZXJnIHdyb3Rl Og0KPg0KPj4gK3N0YXRpYyBib29sIGNmZzgwMjExX29mZl9jaGFubmVsX29wZXJfYWxsb3dlZChz dHJ1Y3Qgd2lyZWxlc3NfZGV2DQo+PiAqd2RldikNCj4+ICt7DQo+PiArCWlmICghY2ZnODAyMTFf YmVhY29uaW5nX2lmYWNlX2FjdGl2ZSh3ZGV2KSkNCj4+ICsJCXJldHVybiB0cnVlOw0KPj4gKw0K Pj4gKwlpZiAoISh3ZGV2LT5jaGFuZGVmLmNoYW4tPmZsYWdzICYgSUVFRTgwMjExX0NIQU5fUkFE QVIpKQ0KPj4gKwkJcmV0dXJuIHRydWU7DQo+DQo+IFRoYXQgY291bGQgdXNlIHNvbWUgbG9ja2lu ZyBhc3NlcnRpb25zLiBNYXliZSBhbHNvIGluIHRoZQ0KPiBjZmc4MDIxMV9iZWFjb25pbmdfaWZh Y2VfYWN0aXZlKCkgZnVuY3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