From patchwork Tue Mar 3 12:23:03 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rajkumar Manoharan X-Patchwork-Id: 5921921 X-Patchwork-Delegate: johannes@sipsolutions.net 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 CFC8D9F36A for ; Tue, 3 Mar 2015 12:24:13 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0575020148 for ; Tue, 3 Mar 2015 12:24:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 177992008F for ; Tue, 3 Mar 2015 12:24:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756136AbbCCMYK (ORCPT ); Tue, 3 Mar 2015 07:24:10 -0500 Received: from wolverine02.qualcomm.com ([199.106.114.251]:32351 "EHLO wolverine02.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756540AbbCCMXu (ORCPT ); Tue, 3 Mar 2015 07:23:50 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=qti.qualcomm.com; i=@qti.qualcomm.com; q=dns/txt; s=qcdkim; t=1425385431; x=1456921431; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=Oji+WtllgVcrOboGB2RAqYduDe5jfDjCqP7gIDBEFfM=; b=WfFuVT59q2Mu16d5VsPSKsvd2+c9kTjrG2qcwxfxbcJsEIrCNGjfUtWs wFTkvR5PTePizhzCpE9rFxR/TF3r1nlluS0bNOGOLHu0U3SX7Y+u8PsX+ Gj+YgIzFuD2ab9q4ebQKPDrhAOxQuRYv+BZwC+NTLW+TLjAqj8RR1Rzgi M=; X-IronPort-AV: E=McAfee;i="5600,1067,7728"; a="198087819" Received: from ironmsg03-r.qualcomm.com ([172.30.46.17]) by wolverine02.qualcomm.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 03 Mar 2015 04:23:51 -0800 X-IronPort-AV: E=Sophos;i="5.09,681,1418112000"; d="scan'208";a="862446214" Received: from nasanexm02f.na.qualcomm.com ([10.85.0.87]) by Ironmsg03-R.qualcomm.com with ESMTP/TLS/RC4-SHA; 03 Mar 2015 04:23:50 -0800 Received: from aphydexm01b.ap.qualcomm.com (10.252.127.11) by nasanexm02f.na.qualcomm.com (10.85.0.87) with Microsoft SMTP Server (TLS) id 15.0.995.29; Tue, 3 Mar 2015 04:23:49 -0800 Received: from qcmail1.qualcomm.com (10.80.80.8) by aphydexm01b.ap.qualcomm.com (10.252.127.11) with Microsoft SMTP Server (TLS) id 15.0.995.29; Tue, 3 Mar 2015 04:23:40 -0800 Received: by qcmail1.qualcomm.com (sSMTP sendmail emulation); Tue, 03 Mar 2015 17:53:30 +0530 From: Rajkumar Manoharan To: CC: , , "Rajkumar Manoharan" Subject: [RFC 2/2] mac80211: store low ack threshold in bss config Date: Tue, 3 Mar 2015 17:53:03 +0530 Message-ID: <1425385383-25482-2-git-send-email-rmanohar@qti.qualcomm.com> X-Mailer: git-send-email 2.3.1 In-Reply-To: <1425385383-25482-1-git-send-email-rmanohar@qti.qualcomm.com> References: <1425385383-25482-1-git-send-email-rmanohar@qti.qualcomm.com> MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: NASANEXM01C.na.qualcomm.com (10.85.0.83) To aphydexm01b.ap.qualcomm.com (10.252.127.11) 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=unavailable 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 Store the low ack threshold configured by user in BSS config. This will be used by driver for triggering low ack event whenever the station is not ACKing the number of frames mentioned in threshold. Signed-off-by: Rajkumar Manoharan --- include/net/mac80211.h | 3 +++ net/mac80211/cfg.c | 1 + 2 files changed, 4 insertions(+) diff --git a/include/net/mac80211.h b/include/net/mac80211.h index d52914b..ec769dd 100644 --- a/include/net/mac80211.h +++ b/include/net/mac80211.h @@ -383,6 +383,8 @@ enum ieee80211_rssi_event { * userspace), whereas TPC is disabled if %txpower_type is set to * NL80211_TX_POWER_FIXED (use value configured from userspace) * @p2p_noa_attr: P2P NoA attribute for P2P powersave + * @low_ack_threshold: Number of consecutive packet loss to trigger low ack + * event by driver. */ struct ieee80211_bss_conf { const u8 *bssid; @@ -419,6 +421,7 @@ struct ieee80211_bss_conf { int txpower; enum nl80211_tx_power_setting txpower_type; struct ieee80211_p2p_noa_attr p2p_noa_attr; + int low_ack_threshold; }; /** diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c index dd4ff36..514d3ab 100644 --- a/net/mac80211/cfg.c +++ b/net/mac80211/cfg.c @@ -772,6 +772,7 @@ static int ieee80211_start_ap(struct wiphy *wiphy, struct net_device *dev, sdata->vif.bss_conf.beacon_int = params->beacon_interval; sdata->vif.bss_conf.dtim_period = params->dtim_period; sdata->vif.bss_conf.enable_beacon = true; + sdata->vif.bss_conf.low_ack_threshold = params->low_ack_threshold; sdata->vif.bss_conf.ssid_len = params->ssid_len; if (params->ssid_len)