From patchwork Tue Apr 21 13:32:05 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rajkumar Manoharan X-Patchwork-Id: 6248901 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 8191ABF4A6 for ; Tue, 21 Apr 2015 13:32:35 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8C8E9202F0 for ; Tue, 21 Apr 2015 13:32:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2C2FC20295 for ; Tue, 21 Apr 2015 13:32:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754680AbbDUNc2 (ORCPT ); Tue, 21 Apr 2015 09:32:28 -0400 Received: from wolverine01.qualcomm.com ([199.106.114.254]:39530 "EHLO wolverine01.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752262AbbDUNc1 (ORCPT ); Tue, 21 Apr 2015 09:32:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=qti.qualcomm.com; i=@qti.qualcomm.com; q=dns/txt; s=qcdkim; t=1429623147; x=1461159147; h=from:to:cc:subject:date:message-id:mime-version; bh=t0zEvX8D9v8jqup9M/8AwL5+HNtvtZkTo+WM9gW1JnM=; b=JKcgdiVLr0Nl8AENkC2Ewhb2c1XVDFWnzYnv651ubLAQIECeANvJP8qP R87BSFtuLJVrnzp6KTXdW14sTjXRhG9pLuxTZIxrxwHjASkT2Ki1FB78e cePy41vri7b6ONwAWMYmcY1lS4akmghdN8Wxgb05ZzrzmbkwYKBeyf3rZ s=; X-IronPort-AV: E=McAfee;i="5700,7163,7777"; a="114428546" Received: from ironmsg04-l.qualcomm.com ([172.30.48.19]) by wolverine01.qualcomm.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 21 Apr 2015 06:32:27 -0700 X-IronPort-AV: E=Sophos;i="5.11,616,1422950400"; d="scan'208";a="867337222" Received: from nasanexm01h.na.qualcomm.com ([10.85.0.34]) by Ironmsg04-L.qualcomm.com with ESMTP/TLS/RC4-SHA; 21 Apr 2015 06:32:26 -0700 Received: from aphydexm01b.ap.qualcomm.com (10.252.127.11) by NASANEXM01H.na.qualcomm.com (10.85.0.34) with Microsoft SMTP Server (TLS) id 15.0.1044.25; Tue, 21 Apr 2015 06:32:25 -0700 Received: from qcmail1.qualcomm.com (10.80.80.8) by aphydexm01b.ap.qualcomm.com (10.252.127.11) with Microsoft SMTP Server (TLS) id 15.0.1044.25; Tue, 21 Apr 2015 19:02:17 +0530 Received: by qcmail1.qualcomm.com (sSMTP sendmail emulation); Tue, 21 Apr 2015 19:02:06 +0530 From: Rajkumar Manoharan To: CC: , , "Rajkumar Manoharan" Subject: [RFC] mac80211: clear radar_required while setting up sdata Date: Tue, 21 Apr 2015 19:02:05 +0530 Message-ID: <1429623125-9484-1-git-send-email-rmanohar@qti.qualcomm.com> X-Mailer: git-send-email 2.3.5 MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: NASANEXM01F.na.qualcomm.com (10.85.0.32) To aphydexm01b.ap.qualcomm.com (10.252.127.11) 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_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID,T_RP_MATCHES_RCVD,UNPARSEABLE_RELAY autolearn=unavailable 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 The commit "mac80211: don't defer scans in case of radar detection" drops scan requests when interface is running on radar channel. Once the AP interface is brought up on DFS channel, sdata->radar_required never be cleared on deinit path unless the interface is deleted. This is causing failures while restarting hostapd. Signed-off-by: Rajkumar Manoharan --- net/mac80211/iface.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/mac80211/iface.c b/net/mac80211/iface.c index b4ac596..c764eb0 100644 --- a/net/mac80211/iface.c +++ b/net/mac80211/iface.c @@ -1341,6 +1341,7 @@ static void ieee80211_setup_sdata(struct ieee80211_sub_if_data *sdata, sdata->control_port_no_encrypt = false; sdata->encrypt_headroom = IEEE80211_ENCRYPT_HEADROOM; sdata->vif.bss_conf.idle = true; + sdata->radar_required = false; sdata->noack_map = 0;