From patchwork Thu Jan 10 15:31:54 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chun-Yeow Yeoh X-Patchwork-Id: 1961001 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 4C1EFDF264 for ; Thu, 10 Jan 2013 15:53:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754118Ab3AJPxm (ORCPT ); Thu, 10 Jan 2013 10:53:42 -0500 Received: from mail-pb0-f44.google.com ([209.85.160.44]:38116 "EHLO mail-pb0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751640Ab3AJPxl (ORCPT ); Thu, 10 Jan 2013 10:53:41 -0500 Received: by mail-pb0-f44.google.com with SMTP id uo1so374181pbc.3 for ; Thu, 10 Jan 2013 07:53:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer; bh=q5Tia1PJtEakttYiEJzI+GC0JDw8bwWFblMIh3hO/c0=; b=nKYfEWmdZugvGPgVjBVVm7oN2izOuu58Ue3B8tM27crsa5VFKBEImtfLPPjCQP/J+E v5R0oAaFeCGUMUF6uCTknHeC0KEXX7LYpfVuWWozDskygZi+Is/pnqbKduhfzvNlDfV3 XIwDdPiOocGevZoKv5gP9UwKPVDGgpK9VRBdPu35XYAba4CZAObC5K1CyzID0VImfJH7 X0N/RjX59uNlUqRmrdJDqV5ksR07fMSEyGsXuqkr/rj9Td7F67D359C9OvXR8tpwVeh7 AT8+j9m/Q9I8dn+vqRYj7HO+AvyQpum7H+v6J25ef5pkA5gwDbMpU+bHWmCubiwtwst8 dIkw== X-Received: by 10.68.213.202 with SMTP id nu10mr223318180pbc.91.1357833220859; Thu, 10 Jan 2013 07:53:40 -0800 (PST) Received: from localhost.localdomain ([58.26.233.146]) by mx.google.com with ESMTPS id jv1sm1005223pbc.36.2013.01.10.07.53.37 (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 10 Jan 2013 07:53:39 -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: allow disable power save in mesh Date: Thu, 10 Jan 2013 23:31:54 +0800 Message-Id: <1357831914-27209-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 Allow mesh interface to disable the power save which is by default turn on in certain chipset. Testing with 2 units of ZCN-1523H-5-16 featuring AR9280 chipset which have power save enabled by default. Constant reset if the average signal of the peer mesh STA is below -80 dBm and power save is enabled. Signed-off-by: Chun-Yeow Yeoh --- net/mac80211/cfg.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c index 7d290bc..817992b 100644 --- a/net/mac80211/cfg.c +++ b/net/mac80211/cfg.c @@ -2232,7 +2232,8 @@ static int ieee80211_set_power_mgmt(struct wiphy *wiphy, struct net_device *dev, struct ieee80211_sub_if_data *sdata = IEEE80211_DEV_TO_SUB_IF(dev); struct ieee80211_local *local = wdev_priv(dev->ieee80211_ptr); - if (sdata->vif.type != NL80211_IFTYPE_STATION) + if (sdata->vif.type != NL80211_IFTYPE_STATION && + sdata->vif.type != NL80211_IFTYPE_MESH_POINT) return -EOPNOTSUPP; if (!(local->hw.flags & IEEE80211_HW_SUPPORTS_PS))