From patchwork Fri Nov 27 08:37:08 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: 7711761 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 F05C39F1D3 for ; Fri, 27 Nov 2015 08:37:31 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2F35620648 for ; Fri, 27 Nov 2015 08:37:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0B03620641 for ; Fri, 27 Nov 2015 08:37:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754124AbbK0Ih2 (ORCPT ); Fri, 27 Nov 2015 03:37:28 -0500 Received: from mail-lf0-f45.google.com ([209.85.215.45]:34293 "EHLO mail-lf0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753982AbbK0Ih1 (ORCPT ); Fri, 27 Nov 2015 03:37:27 -0500 Received: by lffu14 with SMTP id u14so121540119lff.1 for ; Fri, 27 Nov 2015 00:37:25 -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=Db6jHDyy83cTs0iNyrVaKm75V5XGc4B5N4x1al9rC/U=; b=d8RF8KS/ieDMAzvZrxuc/U8O+WVnvtzZg5CmaXBbzgQvsL2JCxI6E3XL7QYlP2n6SU rCjZ4/+NGoSZSPKivWxBx497nsF7UZ13OsyaXNui6oZ0gP+9ugITr91zIziNdsZ4VCia HcODFZ8BBwPYyPIo81ICCBJ1As5eVoE3WSl5Y= 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=Db6jHDyy83cTs0iNyrVaKm75V5XGc4B5N4x1al9rC/U=; b=DZAtUheGGCmtdQWvRyXxEMULTvY4iBZa33URm0Dbvmvkanys7qNiJ4pd3Z794bSg3X 3ocPG71iLq/K+dHgIz/6eeNmXLPAQWFIAAOsBrnEUJX3hagu2aOV2ERcqRdaOWnLvyIe n0oH49MESx/q2dybb81dpvdM/YrcmfPOJDP9PaUzjRqpIu5tpeoTFTWLpDCOJHZx0sFA UgzFZmfxpJ5wiBq2jQZapiO4+vg8EE9T44O70eoPMrKSd1SR6xvHvWx7FDZnRjCjbZxd r4XLUorK5DJSVeU1ZQuNjhcEe6XUKxLleZDjDAoNkLWeC9kfNQE6OKCDy9kl4kEaEsgd QOtg== X-Gm-Message-State: ALoCoQnMXTbU8vOAcpcHkxMqcGtBIVepWzzuXH8RQ0AQfM3W5nrRpndaxA4k1CC3YOAgAHe1+2WONciKa2KMs3U5iKlIUwyF5FKS4PtJg//xSR01X/REhjyvoimzcXgM7KDKmZXb2ls+vl5KxI64ZaI9TyvpIfAQMWebpHqWuRr9wDfyU1ZRJKIWlAgFQU8f9hTqQApxvCIB X-Received: by 10.25.27.16 with SMTP id b16mr15286773lfb.149.1448613445851; Fri, 27 Nov 2015 00:37:25 -0800 (PST) Received: from localhost.localdomain ([91.198.246.8]) by smtp.gmail.com with ESMTPSA id l128sm4838004lfe.27.2015.11.27.00.37.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 27 Nov 2015 00:37:25 -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 03/13] ath9k: queue null frames in case of MCC Date: Fri, 27 Nov 2015 09:37:08 +0100 Message-Id: <1448613438-5173-3-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 While mac80211 using null frames when connection polling, we should queue this frames while NOA could be there, and AP, P2P_GO could be not present. Without this patch, with no traffic we often saw disconnections while we try to send nullfunc when AP/GO wasn't present. Signed-off-by: Janusz Dziedzic --- drivers/net/wireless/ath/ath9k/xmit.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/net/wireless/ath/ath9k/xmit.c b/drivers/net/wireless/ath/ath9k/xmit.c index 26698a6..82fc76f 100644 --- a/drivers/net/wireless/ath/ath9k/xmit.c +++ b/drivers/net/wireless/ath/ath9k/xmit.c @@ -2331,6 +2331,12 @@ int ath_tx_start(struct ieee80211_hw *hw, struct sk_buff *skb, queue = ieee80211_is_data_present(hdr->frame_control); + /* If chanctx, queue all null frames while NOA could be there */ + if (ath9k_is_chanctx_enabled() && + ieee80211_is_nullfunc(hdr->frame_control) && + !txctl->force_channel) + queue = true; + /* Force queueing of all frames that belong to a virtual interface on * a different channel context, to ensure that they are sent on the * correct channel.