From patchwork Thu Mar 19 08:07:39 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krishna Chaitanya X-Patchwork-Id: 6047391 X-Patchwork-Delegate: johannes@sipsolutions.net 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 E9B23BF90F for ; Thu, 19 Mar 2015 08:08:10 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 22A6D2051C for ; Thu, 19 Mar 2015 08:08:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 409862042A for ; Thu, 19 Mar 2015 08:08:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752555AbbCSIII (ORCPT ); Thu, 19 Mar 2015 04:08:08 -0400 Received: from mail-wg0-f45.google.com ([74.125.82.45]:36154 "EHLO mail-wg0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751805AbbCSIIB (ORCPT ); Thu, 19 Mar 2015 04:08:01 -0400 Received: by wgra20 with SMTP id a20so55316231wgr.3 for ; Thu, 19 Mar 2015 01:08:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=huA/yvqfarcYtNUKoEQTSH4jj9PtE7Mij3/kkrPCIOg=; b=Nr33/vUdYdt0H5Mazv/2BB618R3pdulLx1xzbLiBIAAwM/PUAMCzJ1Mynvz9rPRPh/ UTl1lWXu0VtlPpS5cxM45a/Md46Qr74xUxg+tYiPf7G4raT2pYylttQ2fM3v931jZojq jyhiL/XwVQOe1inPdkad3eyzD0Ap9gZ7KyhfQc3ZQfW6QmUYJp+azy1y8Ux6c+JyG2Xe uO3i4Hn6P6fCK7nw4ygQSD+8NXiJL01tsxPZ/76ppCH2j2RkSc6NeQaHkr/IvvVXnnn/ YAcGSCAj5A0yZVhdBvNjRaooBzr9X67S4RdOmvfEZb1+g/AfSbu4sbBuP1YtM8iIIYIe lrNg== X-Received: by 10.194.61.100 with SMTP id o4mr150571140wjr.28.1426752479999; Thu, 19 Mar 2015 01:07:59 -0700 (PDT) MIME-Version: 1.0 Received: by 10.194.1.14 with HTTP; Thu, 19 Mar 2015 01:07:39 -0700 (PDT) From: Krishna Chaitanya Date: Thu, 19 Mar 2015 13:37:39 +0530 Message-ID: Subject: cfg80211: Beacon hints for DFS channels To: linux-wireless , Luis Rodriguez 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, In the Regulatory and DFS wiki it is mentioned that beacon hints are not processed for DFS channels. But i could not find the related piece of code which does this. So in DFS channels can we process beacon hints? Assuming that if AP is beaconing then there is no RADAR in that channel. But how do we handle channel switch (if we dont disconnect) then that channel is enabled for active scan? (or) should be we have something like this: --- net/wireless/reg.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) } diff --git a/net/wireless/reg.c b/net/wireless/reg.c index 8c6cf52..25b3173 100644 --- a/net/wireless/reg.c +++ b/net/wireless/reg.c @@ -1384,7 +1384,8 @@ static void handle_reg_beacon(struct wiphy *wiphy, unsigned int chan_idx, chan_before.center_freq = chan->center_freq; chan_before.flags = chan->flags; - if (chan->flags & IEEE80211_CHAN_NO_IR) { + if (!(chan->flags & IEEE80211_CHAN_RADAR) && + (chan->flags & IEEE80211_CHAN_NO_IR)) { chan->flags &= ~IEEE80211_CHAN_NO_IR; channel_changed = true;