From patchwork Tue Feb 28 23:50:49 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexis Green X-Patchwork-Id: 9597189 X-Patchwork-Delegate: johannes@sipsolutions.net Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id B108860429 for ; Wed, 1 Mar 2017 00:02:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A2BD020855 for ; Wed, 1 Mar 2017 00:02:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 977A6223C7; Wed, 1 Mar 2017 00:02:27 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2DE4320855 for ; Wed, 1 Mar 2017 00:02:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752132AbdCAACN (ORCPT ); Tue, 28 Feb 2017 19:02:13 -0500 Received: from mail-pg0-f48.google.com ([74.125.83.48]:36833 "EHLO mail-pg0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751980AbdCAABa (ORCPT ); Tue, 28 Feb 2017 19:01:30 -0500 Received: by mail-pg0-f48.google.com with SMTP id s67so12426929pgb.3 for ; Tue, 28 Feb 2017 16:00:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=uniumwifi-com.20150623.gappssmtp.com; s=20150623; h=from:reply-to:to:subject:message-id:date:user-agent:mime-version :content-transfer-encoding; bh=XH1h5tbgOhdBiTSQ2TyIHbB6H0By9fPCjqBhZ65R4aY=; b=NuvyAEo5CVVc2TjjEWV51aQFqyDUvKEsOzE7aRHfhugjzjCJiajdO1I/4yMVPbJ43V DfPWj4LY2/3CFcfR3+skKrus4UfuVgncA2hk3AewOdIsVLtl8TNTeszFkbG1qdF6JwVR Z+nGThKE1w4m4a8C6ntn4G5x9QBbqWigKRufQS1VBUSZ9Psq4KJXCZU0N2Ma8cAruwa9 8ZeU5lyPiMiYuOcyyBmEsOWUmQb5ya/YUsPaa2B7zWbeYJTLyUfj71cZmRjCTiryVr9w 4a7ciuHn0e76y/M4OoPzUeHfFwgyZ5Y7kGPHIePzAeahJag8MI5H+FG5TRdc8UKIlLkt jjdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:reply-to:to:subject:message-id:date :user-agent:mime-version:content-transfer-encoding; bh=XH1h5tbgOhdBiTSQ2TyIHbB6H0By9fPCjqBhZ65R4aY=; b=TNsktl0mVKCwre4jEi7SkQ13+cqUdH6pv7L+XqwLmBkhTw2GNm/N7SlLj+rFjRtPi7 QxVIEPuZ58L90qaLvS8FRis+Rw0KFiDEuA5QdSx5FlCHsrt/G6nFky3A+0IPZ6/BVJRm hQRFZuiPH+bMU4u/XYDpJDcvL4V4Wz0xIeo+Li0YwllxGJRtHtGgocEnPYUk1urWhVUK kQN82FdNqac//vwKe50KSWELU3ChlZ/zjIupU805fFskVyhXaPtE6nBGq11W2fFB/0Ts jWGAKb3ehaAZs97JylvZlWCn1nf5Q3qZRjwNABSCatfnb/dv4VRdmI9H0MgCKC4H6KrJ YdoQ== X-Gm-Message-State: AMke39lhtdfpkvo+34uSV3YBoDoo1OzshtAR58Xw7pyZm8ueSvd7dJSPhbMwoU9ThWlw3Hmp X-Received: by 10.98.196.12 with SMTP id y12mr5454735pff.49.1488325853608; Tue, 28 Feb 2017 15:50:53 -0800 (PST) Received: from [10.4.0.31] ([67.137.71.162]) by smtp.gmail.com with ESMTPSA id c64sm6246458pfa.45.2017.02.28.15.50.53 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 28 Feb 2017 15:50:53 -0800 (PST) From: Alexis Green X-Google-Original-From: Alexis Green Reply-To: agreen@cococorp.com To: linux-wireless@vger.kernel.org Subject: [PATCH] iw: Add support for NL80211_MESHCONF_HWMP_ALWAYS_MAX_DISCOVERIES netlink attribute Message-ID: <58B60CD9.9050507@cococorp.com> Date: Tue, 28 Feb 2017 15:50:49 -0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This attributes allows configuring mesh to either do only minimum number of discovery attempts (up to MaxPREretries) or always do MaxPREretries number of tries even when getting responses. Signed-off-by: Alexis Green --- mesh.c | 3 +++ nl80211.h | 3 +++ 2 files changed, 6 insertions(+) diff --git a/mesh.c b/mesh.c index 97f236b..b828408 100644 --- a/mesh.c +++ b/mesh.c @@ -264,6 +264,9 @@ const static struct mesh_param_descr _mesh_param_descrs[] = _my_nla_put_u16, _parse_u16, _print_u16_in_TUs}, {"mesh_plink_timeout", NL80211_MESHCONF_PLINK_TIMEOUT, _my_nla_put_u32, _parse_u32, _print_u32_in_seconds}, + {"mesh_hwmp_always_max_discoveries", + NL80211_MESHCONF_HWMP_ALWAYS_MAX_DISCOVERIES, + _my_nla_put_u8, _parse_u8_as_bool, _print_u8}, }; static void print_all_mesh_param_descr(void) diff --git a/nl80211.h b/nl80211.h index 56368e9..bb53e8b 100644 --- a/nl80211.h +++ b/nl80211.h @@ -3352,6 +3352,8 @@ enum nl80211_mesh_power_mode { * established peering with for longer than this time (in seconds), then * remove it from the STA's list of peers. You may set this to 0 to disable * the removal of the STA. Default is 30 minutes. + * @NL80211_MESHCONF_HWMP_ALWAYS_MAX_DISCOVERIES: whether to always perform + * number of discovery attempts equal to MaxPREQretries (default is FALSE) * * @__NL80211_MESHCONF_ATTR_AFTER_LAST: internal use */ @@ -3385,6 +3387,7 @@ enum nl80211_meshconf_params { NL80211_MESHCONF_POWER_MODE, NL80211_MESHCONF_AWAKE_WINDOW, NL80211_MESHCONF_PLINK_TIMEOUT, + NL80211_MESHCONF_HWMP_ALWAYS_MAX_DISCOVERIES, /* keep last */ __NL80211_MESHCONF_ATTR_AFTER_LAST,