Return-path: Received: from s3.sipsolutions.net ([5.9.151.49]:38024 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755673AbaLWKgj (ORCPT ); Tue, 23 Dec 2014 05:36:39 -0500 Message-ID: <1419330994.6091.2.camel@sipsolutions.net> (sfid-20141223_113642_547667_1737F2DD) Subject: Re: [PATCH] cfg80211: do not check for carrier during start_radar_detect From: Johannes Berg To: Avinash Patil Cc: "janusz.dziedzic@tieto.com" , "linux-wireless@vger.kernel.org" , Cathy Luo , Amitkumar Karwar Date: Tue, 23 Dec 2014 11:36:34 +0100 In-Reply-To: References: ,<5FF020A1CFFEEC49BD1E09530C4FF5951B160B81A7@SC-VEXCH1.marvell.com> ,<1419330394.6091.0.camel@sipsolutions.net> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org List-ID: On Tue, 2014-12-23 at 02:30 -0800, Avinash Patil wrote: > Oops.. > > Are you talking about this? > >>So, at least we should move if (netif_carrier_ok(dev)) check to mac80211 otherwise we might change channel of the running interface (via vif_use_channel). > > I can move this check to ieee80211_start_radar_detection but I dont have any hardware to test these modifications. That should be ok - however maybe you don't need those modifications at all? Frankly I'm not even sure how off-channel CAC stuff would work but Janusz probably knows what he's talking about :) johannes