From patchwork Thu Jan 22 15:25:56 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Helmut Schaa X-Patchwork-Id: 5685971 Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 62EEFC058D for ; Thu, 22 Jan 2015 15:26:01 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 96CED20211 for ; Thu, 22 Jan 2015 15:26:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id AF1422020F for ; Thu, 22 Jan 2015 15:25:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752834AbbAVPZ6 (ORCPT ); Thu, 22 Jan 2015 10:25:58 -0500 Received: from mail-ie0-f173.google.com ([209.85.223.173]:38321 "EHLO mail-ie0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751906AbbAVPZ5 (ORCPT ); Thu, 22 Jan 2015 10:25:57 -0500 Received: by mail-ie0-f173.google.com with SMTP id tr6so1897531ieb.4 for ; Thu, 22 Jan 2015 07:25:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=EZMQlztWP4U9h4xKrDEzf+z2YU8JdnaBG9eRcos1I08=; b=jtW3X2Nowli0dOHQfUBpkfxSela2lD7Zpsi1sg4owoVni8crPUhOEtwKerTqn1K2wA bMsl9QlbS1TU/uvz2UXPFi/NyvLL0GG7vJRE0ymw3qrLzsYJ1BTFi7DlSiXwPpfFU6OK IRM045MHcf777PLDkaHsenpVA29dng6kZNbxoBdtMw06KbIUevT1Vos4WaUKWBz6mjQI yj6MUlAGaquaBv551fWIPAQfgrcwGqlTQtzVuUWjS8PMA3mku0qrkCakgcwteXVLSsTh dPPl984gcnHY7X5E5O+R+V7JAZehV0GbXmIzpZmWJ90zFwniTLOSbYC9w6VdFy2GEqWl L3ag== MIME-Version: 1.0 X-Received: by 10.50.142.99 with SMTP id rv3mr13197502igb.11.1421940356901; Thu, 22 Jan 2015 07:25:56 -0800 (PST) Received: by 10.64.9.67 with HTTP; Thu, 22 Jan 2015 07:25:56 -0800 (PST) Date: Thu, 22 Jan 2015 16:25:56 +0100 Message-ID: Subject: DFS issue on ath10k From: Helmut Schaa To: linux-wireless Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Hi, I've been seeing some issues with DFS on ath10k but this could also affect ath9k. In the end of the CAC period there seems to be a time window in which ath10k won't detect any radar pulses (<1sec) before starting operation on this channel. Reason is that the channel context for CAC is getting removed and it takes some time for hostapd to finish the hw setup so a new channel context gets set. This is no suitable patch but provides some more insight into this issue: ieee80211_hw_config(local, IEEE80211_CONF_CHANGE_CHANNEL); } else { Not sure how to get this race free. hostapd might have to configure the channel before the CAC period is finished so there is no window without channel context. Did anyone else notice this? Any ideas? Thanks, Helmut --- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html --- a/net/mac80211/chan.c +++ b/net/mac80211/chan.c @@ -494,9 +494,9 @@ if (!local->use_chanctx) { struct cfg80211_chan_def *chandef = &local->_oper_chandef; - chandef->width = NL80211_CHAN_WIDTH_20_NOHT; + /*chandef->width = NL80211_CHAN_WIDTH_20_NOHT; chandef->center_freq1 = chandef->chan->center_freq; - chandef->center_freq2 = 0; + chandef->center_freq2 = 0;*/ /* NOTE: Disabling radar is only valid here for * single channel context. To be sure, check it ... @@ -504,7 +504,7 @@ WARN_ON(local->hw.conf.radar_enabled && !list_empty(&local->chanctx_list)); - local->hw.conf.radar_enabled = false; + local->hw.conf.radar_enabled = cfg80211_chandef_dfs_required(local->hw.wiphy, chandef, NL80211_IFTYPE_AP);