From patchwork Fri Nov 27 08:37:15 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: 7711831 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 B758E9F750 for ; Fri, 27 Nov 2015 08:37:43 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 000DD205B5 for ; Fri, 27 Nov 2015 08:37:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2EFEC2063F for ; Fri, 27 Nov 2015 08:37:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754176AbbK0Ihk (ORCPT ); Fri, 27 Nov 2015 03:37:40 -0500 Received: from mail-lf0-f42.google.com ([209.85.215.42]:33367 "EHLO mail-lf0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754125AbbK0Ihh (ORCPT ); Fri, 27 Nov 2015 03:37:37 -0500 Received: by lfaz4 with SMTP id z4so121318728lfa.0 for ; Fri, 27 Nov 2015 00:37:35 -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=bJ+Xm1u1tW5JeQBS0ZDv9/Qq8VkKx4EQGBOtkYBhQYV+fy1bT1ZExer1vsZ44D+lOB Tt83WObBbLqCEwy60SzPTb6vz0/7p9kosIlB6eLEpUCb8qkBPcJ0Gj/gXIziPBVcPg5s lRiomWHOdarjNlkyiLVfznZRg5bBTuagaznX4= 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=RhTrRqZcYwHC6UmVngnknBtbc6cQvam7Mt1+nNZoscPuY/Fq+FxgAzDvBaxS/DExa4 XLMdhNgIgnkCrmbqFcSpcNphm8bQDENWVUNBjHpcL4xMHk81vPYlaFgjUPp1OGtV70E2 kvvyo1onak+7iOOvIyB+3UyH2rRPaFYAolyzkQJCxpYpNkjHv+SbzKtCseYamHpmgm/I 3PG3DBDb+cV3VuuwUPVfwAHN1lLnGUIadlUI2lKS84lrbjz5giOGFrMguwgXivU+9MUx bONX+W5dKzbLOp38q7iB6f3kXcYy2AGxXgntfqVF66kGbLvGsJ3TQuwuZJofNysLoOiA xv1Q== X-Gm-Message-State: ALoCoQkzNax8VOcjcB/cxhw+gNtmYqPsdp6H0Y2x+NMiwLn9LKeTQOsM4kXaseYJl6ZjVTXtLeVG2fQSBu/CKsCDUAJgG9nO01okcCUMAVQAwklnIwkCks4/3HNF53ykuPC5rmQwwEDkZR9m4wgRwx366ETpOwGoXwCFv8XepqSoRxQdPy2fT+ixxW2cKF1miDacP9ZWd9RJ X-Received: by 10.112.77.98 with SMTP id r2mr15871078lbw.124.1448613455780; Fri, 27 Nov 2015 00:37:35 -0800 (PST) Received: from localhost.localdomain ([91.198.246.8]) by smtp.gmail.com with ESMTPSA id l128sm4838004lfe.27.2015.11.27.00.37.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 27 Nov 2015 00:37:35 -0800 (PST) From: Janusz Dziedzic To: linux-wireless@vger.kernel.org Cc: ath9k-devel@lists.ath9k.org, nbd@openwrt.org, Janusz Dziedzic Subject: [PATCH v2 10/13] ath9k: MCC, add NOA also in case of an AP Date: Fri, 27 Nov 2015 09:37:15 +0100 Message-Id: <1448613438-5173-10-git-send-email-janusz.dziedzic@tieto.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1448613438-5173-1-git-send-email-janusz.dziedzic@tieto.com> References: <1448613438-5173-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=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, 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 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,