From patchwork Thu Nov 12 13:15:40 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: 7602231 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 0D61A9F1C2 for ; Thu, 12 Nov 2015 13:16:44 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4216C20434 for ; Thu, 12 Nov 2015 13:16:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9DC382079F for ; Thu, 12 Nov 2015 13:16:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752983AbbKLNQQ (ORCPT ); Thu, 12 Nov 2015 08:16:16 -0500 Received: from mail-lf0-f45.google.com ([209.85.215.45]:36218 "EHLO mail-lf0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752271AbbKLNQP (ORCPT ); Thu, 12 Nov 2015 08:16:15 -0500 Received: by lfs39 with SMTP id 39so33703690lfs.3 for ; Thu, 12 Nov 2015 05:16:14 -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=uPVQ+KwwcECmvrivd0mbKx+7qGJk5PPmhqWAg5mgQshvD1+VWFiQXi0KDBKVrZMVnn Z5FMG4R+19UgpOYpjYHinaF6ZchHSKAm23npHxe2d1LHGv5Co6lURmFb/dS4FLbqKBlF tMP4fnZBPzPdPJKuuGoQ0QGALzC+Uskw3rCCA= 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=Y5EmkZOBSxFc1/Mf/XdFj8Iq+0Ea6/EpaIOIdnvIwCN2BVU8bKkSlE6ZwzRgVOxFBE k16G6oHOpR8Qeb+yQhwWTh97YVuootEnDZVutZYlDBed1QvZQPvcoDsxPXRoB3OciDI0 uOcsEwQ12fM3Gm9MhT+DwMZKfnjT4mwy2+deDfFsUybVwduTRHSo0UfpSTXR+wTfDDi6 f93QYU2G4sWJ02oG+cRSj3KBl6kkMEfaLFPDGJC1KKHRr5Uoq/k6KO1fISNeCeYC1UTA 489jBYBuuyL22xd53vJsuLOXZiUJiKbAbX1yNGhaoa7oq+4Xkw2mf6Ku7G7grAkpuG0k 5LrA== X-Gm-Message-State: ALoCoQnFzXoR9Sym8BKIl/J2I1PdN74ayo8W3Nyabkyn8JE/ucTyKbG8CHl8MeDGrI0x/WiNRNPmczY6qCBUDr8AsC++ioM+BF3fqwmTM2wKaLzMZRdMyCf4wX2qKVIX9qOZcnYEEJ9B0YFbkW4jsuS5VVnUSjNOYTA8EQi2Ct0GcjUTLCxbsiH69KjzDJ4IKb6T0u2l+K4s X-Received: by 10.25.19.100 with SMTP id j97mr7289135lfi.114.1447334173812; Thu, 12 Nov 2015 05:16:13 -0800 (PST) Received: from localhost.localdomain ([91.198.246.8]) by smtp.gmail.com with ESMTPSA id i7sm2251430lbo.39.2015.11.12.05.16.12 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 12 Nov 2015 05:16:12 -0800 (PST) From: Janusz Dziedzic To: linux-wireless@vger.kernel.org Cc: ath9k-devel@lists.ath9k.org, Janusz Dziedzic Subject: [PATCH 03/12] ath9k: queue null frames in case of MCC Date: Thu, 12 Nov 2015 14:15:40 +0100 Message-Id: <1447334149-15507-3-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 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.