From patchwork Thu Nov 12 13:15:47 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Janusz.Dziedzic@tieto.com X-Patchwork-Id: 7602191 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id C780B9F1C2 for ; Thu, 12 Nov 2015 13:16:32 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0806C207A2 for ; Thu, 12 Nov 2015 13:16:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2D8E420737 for ; Thu, 12 Nov 2015 13:16:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753144AbbKLNQa (ORCPT ); Thu, 12 Nov 2015 08:16:30 -0500 Received: from mail-lf0-f54.google.com ([209.85.215.54]:34008 "EHLO mail-lf0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753006AbbKLNQX (ORCPT ); Thu, 12 Nov 2015 08:16:23 -0500 Received: by lffu14 with SMTP id u14so33763538lff.1 for ; Thu, 12 Nov 2015 05:16:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tieto.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Va5tMxP3WtFS8/V6JWCRGpUnFT2s30HdZ08zu277LMY=; b=xmFYQ4tExyAxBjLn2MMVVrrYCd/JWdG83DNBtp2RXxePLFr+uPK3hDRchW1gfgj71w vlrCu8QchEY0tijiEq2g78N4vZu8B+pmXcKHV4cGXTah7KRB9e55u9YH5rJ8lq/JhL4S 1QY2+u08YOpWYjvHEtut4MQGWXI4Iy0sadf78= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Va5tMxP3WtFS8/V6JWCRGpUnFT2s30HdZ08zu277LMY=; b=YMleUo34HiRMzFOeY/IufeCzUaZbNoGxjA+6aRekwXafFDLEDnlXZSjCaCf85Esf5O 5UudcSn++/tVJ/B1ECKR9qdOLVk8Ch3wx+EIFg+QXPw9Mf1/oG7kiUt4KSk0iUUbhcPz gHWMpgiiLdWBh9loXq7i2OSYbKCxhDKUvFo9ELL0nBERo0FwY8TmxsMp4MdSAkIk9OL3 W26Fdg4JFxqeJnst7NiYq0S+nrEhsF+Q5ELDtt2DiBL7EPxqK6G6mOJ7lnDLEaEkZwz8 31QOy5DZ9U/2dKO6mefNjWDrVRNZYrpNOrgD/d2jlKhwEw/S3147sW4N45VTc6ff7dVD Br9g== X-Gm-Message-State: ALoCoQkJaYlUlo37uUg9ub2GWcUcINtav8QH/mLtK0ly2v/m0skHa+KU9edoue/BKaFh9rUhCV234fuLRlR+v9gUK89ZyRFRZZC0vUR2KkoYmnMV2XUl6NWEV+rvAlHB85MErBx+sbntQT7XPJjNqAwodhXU5DRirHcdKlLfdLmQxkOE4imGAiK7eBJE9A0mZAn0jnQK3RqT X-Received: by 10.25.132.147 with SMTP id g141mr7370074lfd.106.1447334181920; Thu, 12 Nov 2015 05:16:21 -0800 (PST) Received: from localhost.localdomain ([91.198.246.8]) by smtp.gmail.com with ESMTPSA id i7sm2251430lbo.39.2015.11.12.05.16.21 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 12 Nov 2015 05:16:21 -0800 (PST) From: Janusz Dziedzic To: linux-wireless@vger.kernel.org Cc: ath9k-devel@lists.ath9k.org, Janusz Dziedzic Subject: [PATCH 10/12] ath9k: MCC, add NOA also in case of an AP Date: Thu, 12 Nov 2015 14:15:47 +0100 Message-Id: <1447334149-15507-10-git-send-email-janusz.dziedzic@tieto.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1447334149-15507-1-git-send-email-janusz.dziedzic@tieto.com> References: <1447334149-15507-1-git-send-email-janusz.dziedzic@tieto.com> X-DomainID: tieto.com Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,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 In case of MCC and AP interface, add also NOA attr that will inform stations about absence of an AP. There is a chance that some stations will handle this NOA attr correctly and will know exactly when AP is present/absent. Signed-off-by: Janusz Dziedzic --- drivers/net/wireless/ath/ath9k/beacon.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath9k/beacon.c b/drivers/net/wireless/ath/ath9k/beacon.c index f50a6bc..5cf0cd7 100644 --- a/drivers/net/wireless/ath/ath9k/beacon.c +++ b/drivers/net/wireless/ath/ath9k/beacon.c @@ -148,7 +148,8 @@ static struct ath_buf *ath9k_beacon_generate(struct ieee80211_hw *hw, ath_assign_seq(common, skb); - if (vif->p2p) + /* Always assign NOA attr when MCC enabled */ + if (ath9k_is_chanctx_enabled()) ath9k_beacon_add_noa(sc, avp, skb); bf->bf_buf_addr = dma_map_single(sc->dev, skb->data,