From patchwork Mon Dec 30 08:07:51 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Puzyniak X-Patchwork-Id: 3418101 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.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 8382B9F374 for ; Mon, 30 Dec 2013 08:08:13 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C7B32200ED for ; Mon, 30 Dec 2013 08:08:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 32B45200E9 for ; Mon, 30 Dec 2013 08:08:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751492Ab3L3III (ORCPT ); Mon, 30 Dec 2013 03:08:08 -0500 Received: from mail-ea0-f171.google.com ([209.85.215.171]:57371 "EHLO mail-ea0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751415Ab3L3IIH (ORCPT ); Mon, 30 Dec 2013 03:08:07 -0500 Received: by mail-ea0-f171.google.com with SMTP id h10so4985915eak.30 for ; Mon, 30 Dec 2013 00:08:06 -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; bh=RcmAQn9SqMSpH3cw753buz/1dbWjI6FmVkvXVa1yhQ8=; b=qdKSE71J/BX/4UNV7ujdeL1WtRyFIApFMQQo5GXJVR6bd6C7e4Dm2qIDiGPVb36IaM I5Ns8f/excRr2o5QsSGH/VbZGkj8jqWS/5szMTjLEwZfrjkThZp0mLQVO8hCUbGd4x+W ej28NJz8knQxTIoVjxKiEwksEhjMc0XFokAgA= 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; bh=RcmAQn9SqMSpH3cw753buz/1dbWjI6FmVkvXVa1yhQ8=; b=CKHcGshhr2W6APXLuPz/UEZaUe95N9zcldOCEabL/3/xMmaAMCT0Smytac/qawy9Hj pWLuntC1T5uwc6g0L6gPY/jv8C5jFw9bgcu4tA5drpnrufzgg+gEfUoM74bnV8M0hTL1 4JoJaZkqLSsjKWRAL6P2FK3xOoC/twiDIN+O/XSfZcpLQY0LPa2ri0Gr37oiTa6z5lCA pdsBhQxkZHRlwt9uB/qXyyOLoO77hETPXpxZZCb3hdUlFhMpipNiGZlXnPhhwCWBYPg4 Ix3tH8qrGy8LY+qyZfkfJ8e/vuBWKu/kBsiLswqA2HooZmvEIKwMQJII7BpcQ1oSQ/tf icRg== X-Gm-Message-State: ALoCoQksZpwR4T9INxTbsan2BXam9M+0kqSYhPYvhdEQ7CO/xeHmJvBWW8wTAimyoiaDeZm6G8QovQ1fUaPDS4r0sTA1WuiXyhJs7ic+/f/yVTzjJYBQpsg= X-Received: by 10.14.208.199 with SMTP id q47mr336582eeo.77.1388390886085; Mon, 30 Dec 2013 00:08:06 -0800 (PST) Received: from localhost.localdomain ([91.198.246.8]) by mx.google.com with ESMTPSA id g47sm106337986eeo.19.2013.12.30.00.08.05 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 30 Dec 2013 00:08:05 -0800 (PST) From: Marek Puzyniak To: ath10k@lists.infradead.org Cc: linux-wireless@vger.kernel.org, Marek Puzyniak Subject: [PATCH] ath10k: disable STA KICKOUT in FW Date: Mon, 30 Dec 2013 09:07:51 +0100 Message-Id: <1388390871-3932-1-git-send-email-marek.puzyniak@tieto.com> X-Mailer: git-send-email 1.8.1.2 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.9 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 Currently ath10k is not using STA KICKOUT firmware functionality. In order to avoid unwanted FW events this functionality should be disabled when not used. Signed-off-by: Marek Puzyniak --- drivers/net/wireless/ath/ath10k/mac.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/net/wireless/ath/ath10k/mac.c b/drivers/net/wireless/ath/ath10k/mac.c index 5b45f3a..93416ab 100644 --- a/drivers/net/wireless/ath/ath10k/mac.c +++ b/drivers/net/wireless/ath/ath10k/mac.c @@ -2292,11 +2292,20 @@ static int ath10k_add_interface(struct ieee80211_hw *hw, } if (arvif->vdev_type == WMI_VDEV_TYPE_AP) { + u32 param_id; + ret = ath10k_peer_create(ar, arvif->vdev_id, vif->addr); if (ret) { ath10k_warn("Failed to create peer for AP: %d\n", ret); goto err_vdev_delete; } + + param_id = ar->wmi.pdev_param->sta_kickout_th; + + /* Disable STA KICKOUT functionality in FW */ + ret = ath10k_wmi_pdev_set_param(ar, param_id, 0); + if (ret) + ath10k_warn("Failed to disable STA KICKOUT\n"); } if (arvif->vdev_type == WMI_VDEV_TYPE_STA) {