From patchwork Wed Jul 4 16:26:33 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chun-Yeow Yeoh X-Patchwork-Id: 1157081 Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 992C3DFF0F for ; Wed, 4 Jul 2012 16:26:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932084Ab2GDQ0x (ORCPT ); Wed, 4 Jul 2012 12:26:53 -0400 Received: from mail-gh0-f174.google.com ([209.85.160.174]:48365 "EHLO mail-gh0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754843Ab2GDQ0w (ORCPT ); Wed, 4 Jul 2012 12:26:52 -0400 Received: by ghrr11 with SMTP id r11so6621718ghr.19 for ; Wed, 04 Jul 2012 09:26:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer; bh=TUXsNnpLB2E0o40Tedz5IFN03o1UEXLIgFW8v/akLtk=; b=HQdnGzwyFY/abp2dsC3d8wiPGuw3USP2ck1BM4q760Dc5M4ziWnfZ56ouJrcVIuCCh mLypzipxX14OewAePlO3YY/j/J+aL4ZiyBM9CdI/OsnzS6Uzmr0Z8veCSIZiZMr6YueC XgmOnbtRi5r/19YNCy+eqFSN2fQaJAZ7PClyjm7Ji+rRlei+MKKVlKCQH9HvpbcShHBo eUPAO312PPxO33hq7BirDl9WlKGCq1X8P6lhzgDn3gs2VB3bDAimFcdCtKylYzJSPAtT YC6pyTUWj2mJ19OdR69kgme2LMhLNxDxqDeqlro66Yz13V55UXmQA67LUuPkVqlx/AF+ rEyA== Received: by 10.66.76.134 with SMTP id k6mr30483542paw.58.1341419211824; Wed, 04 Jul 2012 09:26:51 -0700 (PDT) Received: from localhost.localdomain ([58.26.233.146]) by mx.google.com with ESMTPS id ru4sm17962166pbc.66.2012.07.04.09.26.49 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 04 Jul 2012 09:26:51 -0700 (PDT) From: Chun-Yeow Yeoh To: linux-wireless@vger.kernel.org Cc: johannes@sipsolutions.net, devel@lists.open80211s.org, Chun-Yeow Yeoh Subject: [PATCH] iw: allow setting mesh proactive tree building mode related parameters Date: Thu, 5 Jul 2012 00:26:33 +0800 Message-Id: <1341419193-5670-1-git-send-email-yeohchunyeow@gmail.com> X-Mailer: git-send-email 1.7.0.4 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org This patch allows the setting of following mesh parameters: mesh_hwmp_active_path_to_root_timeout mesh_hwmp_root_interval mesh_hwmp_confirmation_interval Also ensure the TU is printed for mesh_hwmp_rann_interval. --- mesh.c | 10 +++++++++- 1 files changed, 9 insertions(+), 1 deletions(-) diff --git a/mesh.c b/mesh.c index f678dc0..7b7efe8 100644 --- a/mesh.c +++ b/mesh.c @@ -199,7 +199,7 @@ const static struct mesh_param_descr _mesh_param_descrs[] = {"mesh_hwmp_rootmode", NL80211_MESHCONF_HWMP_ROOTMODE, _my_nla_put_u8, _parse_u8, _print_u8}, {"mesh_hwmp_rann_interval", NL80211_MESHCONF_HWMP_RANN_INTERVAL, - _my_nla_put_u16, _parse_u16, _print_u16}, + _my_nla_put_u16, _parse_u16, _print_u16_in_TUs}, {"mesh_gate_announcements", NL80211_MESHCONF_GATE_ANNOUNCEMENTS, _my_nla_put_u8, _parse_u8, _print_u8}, {"mesh_fwding", NL80211_MESHCONF_FORWARDING, @@ -209,6 +209,14 @@ const static struct mesh_param_descr _mesh_param_descrs[] = _my_nla_put_u32, _parse_u32, _print_u32}, {"mesh_rssi_threshold", NL80211_MESHCONF_RSSI_THRESHOLD, _my_nla_put_u32, _parse_s32, _print_s32_in_dBm}, + {"mesh_hwmp_active_path_to_root_timeout", + NL80211_MESHCONF_HWMP_PATH_TO_ROOT_TIMEOUT, + _my_nla_put_u32, _parse_u32, _print_u32_in_TUs}, + {"mesh_hwmp_root_interval", NL80211_MESHCONF_HWMP_ROOT_INTERVAL, + _my_nla_put_u16, _parse_u16, _print_u16_in_TUs}, + {"mesh_hwmp_confirmation_interval", + NL80211_MESHCONF_HWMP_CONFIRMATION_INTERVAL, + _my_nla_put_u16, _parse_u16, _print_u16_in_TUs}, }; static void print_all_mesh_param_descr(void)