From patchwork Thu Dec 13 10:59:57 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: 1871821 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 0301FDF2EF for ; Thu, 13 Dec 2012 11:15:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753489Ab2LMLPJ (ORCPT ); Thu, 13 Dec 2012 06:15:09 -0500 Received: from mail-pa0-f46.google.com ([209.85.220.46]:44022 "EHLO mail-pa0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753411Ab2LMLPI (ORCPT ); Thu, 13 Dec 2012 06:15:08 -0500 Received: by mail-pa0-f46.google.com with SMTP id bh2so1483074pad.19 for ; Thu, 13 Dec 2012 03:15:07 -0800 (PST) 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=zuzqNOBmDlhhizO+tfYxYsBsDqcTQ37w76AtQ0/XbMM=; b=vQIN8avAOvr3uTw8DenvEXdVqfpqKsiDnOCebltzBWvFSojqteEmAZiGtAYyl4AsSe j9Ykp+Tgud7AVemlcaEL+wDJss1YtHWdQOBiDZ/7BWIqy50i+91KxXP9Bz+URg1iGfgq ZUlXoZ5ubURUYf0Vm0o9cp/whWoDYWVZCsc/odJypHhxLCV6IdQs+pHKLONMYyxGN89b XkA0ZmoiEkMD8Yhu12H84MVtJ+2aKhuKLtd5cMzWYDSLGoLj8nSCgBcDQvBACFWQA792 dhj4b4Yr81GjqaJ4/QkcG9mG+qaUBzeM2yWun6OLg+fMzIr6Yol32dklxC9hwmhoI4v9 nIJw== Received: by 10.68.234.98 with SMTP id ud2mr4260971pbc.136.1355397307716; Thu, 13 Dec 2012 03:15:07 -0800 (PST) Received: from localhost.localdomain ([58.26.233.146]) by mx.google.com with ESMTPS id s5sm1090907pay.31.2012.12.13.03.15.04 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 13 Dec 2012 03:15:07 -0800 (PST) From: Chun-Yeow Yeoh To: linux-wireless@vger.kernel.org Cc: johannes@sipsolutions.net, linville@tuxdriver.com, devel@lists.open80211s.org, Chun-Yeow Yeoh Subject: [PATCH] [mac80211] use short slot time in mesh for 5GHz Date: Thu, 13 Dec 2012 18:59:57 +0800 Message-Id: <1355396397-25298-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 Use short slot time in 5GHz for mesh. The performance is increased from 16.4Mbps to 23.4Mbps for two directly connected mesh STAs operating in legacy rate using iperf measurement. Almost similar to the results claimed in IBSS mode. Signed-off-by: Chun-Yeow Yeoh --- net/mac80211/mesh.c | 19 ++++++++++++++----- 1 files changed, 14 insertions(+), 5 deletions(-) diff --git a/net/mac80211/mesh.c b/net/mac80211/mesh.c index 1bf03f9..ee0d8a3 100644 --- a/net/mac80211/mesh.c +++ b/net/mac80211/mesh.c @@ -607,6 +607,13 @@ void ieee80211_start_mesh(struct ieee80211_sub_if_data *sdata) { struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; struct ieee80211_local *local = sdata->local; + u32 changed; + + changed = BSS_CHANGED_BEACON | + BSS_CHANGED_BEACON_ENABLED | + BSS_CHANGED_HT | + BSS_CHANGED_BASIC_RATES | + BSS_CHANGED_BEACON_INT; local->fif_other_bss++; /* mesh ifaces must set allmulti to forward mcast traffic */ @@ -628,11 +635,13 @@ void ieee80211_start_mesh(struct ieee80211_sub_if_data *sdata) sdata->vif.bss_conf.basic_rates = ieee80211_mandatory_rates(sdata->local, ieee80211_get_sdata_band(sdata)); - ieee80211_bss_info_change_notify(sdata, BSS_CHANGED_BEACON | - BSS_CHANGED_BEACON_ENABLED | - BSS_CHANGED_HT | - BSS_CHANGED_BASIC_RATES | - BSS_CHANGED_BEACON_INT); + + if (ieee80211_get_sdata_band(sdata) == IEEE80211_BAND_5GHZ) { + sdata->vif.bss_conf.use_short_slot = true; + changed |= BSS_CHANGED_ERP_SLOT; + } + + ieee80211_bss_info_change_notify(sdata, changed); netif_carrier_on(sdata->dev); }