From patchwork Fri Dec 20 08:39:52 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: 3386461 Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id CFF57C0D4A for ; Fri, 20 Dec 2013 08:41:55 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id CF0A8204D5 for ; Fri, 20 Dec 2013 08:41:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0301E204D3 for ; Fri, 20 Dec 2013 08:41:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754506Ab3LTIlv (ORCPT ); Fri, 20 Dec 2013 03:41:51 -0500 Received: from mail-pb0-f42.google.com ([209.85.160.42]:48501 "EHLO mail-pb0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753071Ab3LTIlv (ORCPT ); Fri, 20 Dec 2013 03:41:51 -0500 Received: by mail-pb0-f42.google.com with SMTP id uo5so2349802pbc.1 for ; Fri, 20 Dec 2013 00:41:50 -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; bh=Kv6OjZRTbAoOzOWZptbb3EYhAziOffEHJuXVZHidn4U=; b=BFVXiYfkhZP8+WGYqIfNIgHJ4yZCVqBKApKhxgFCh+kIrrBQPvGTurebsrrHTR+Y8I PA03ahlGb0AjTpaW70E4+Bj4YppadQkkqNeKGhXmyLDn174DJ2L3zU4l0FQqX0GDidPb Sa2dT1nTJaNXN5Fc15uSHgQMqSMFMz39eypRGyl6RhC+iYPSETR4QHC4RjhWww91G1eM QLs1WoNpk4wzgESmJTl10oTcpo6LpOnaplyIwnGQ8SUmvd6yA3ophD4eSC6zyeO5Y/P7 L+lv0Muv7L8K08jLoolTKGV1h0b8Ll4EhA1c7Rhk1ThvHC0P14coPbnt3FkO3QhbTbLt TXXQ== X-Received: by 10.66.216.129 with SMTP id oq1mr6996293pac.75.1387528910624; Fri, 20 Dec 2013 00:41:50 -0800 (PST) Received: from localhost.localdomain ([58.26.233.145]) by mx.google.com with ESMTPSA id ju10sm12634533pbd.33.2013.12.20.00.41.47 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 20 Dec 2013 00:41:49 -0800 (PST) From: Chun-Yeow Yeoh To: linux-wireless@vger.kernel.org Cc: johannes@sipsolutions.net, linville@tuxdriver.com, devel@lists.open80211s.org, distro11s@cozybit.com, Chun-Yeow Yeoh Subject: [PATCH] mac80211: enable WME for peer mesh STA Date: Fri, 20 Dec 2013 16:39:52 +0800 Message-Id: <1387528792-27198-1-git-send-email-yeohchunyeow@gmail.com> X-Mailer: git-send-email 1.7.9.5 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham 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 Enable the WME for peer mesh STA so that the driver, such as wcn36xx, will pick this up and enabling it in HW. Signed-off-by: Chun-Yeow Yeoh --- net/mac80211/mesh_plink.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/mac80211/mesh_plink.c b/net/mac80211/mesh_plink.c index cf83217..e8f60aa 100644 --- a/net/mac80211/mesh_plink.c +++ b/net/mac80211/mesh_plink.c @@ -437,6 +437,7 @@ __mesh_sta_info_alloc(struct ieee80211_sub_if_data *sdata, u8 *hw_addr) sta_info_pre_move_state(sta, IEEE80211_STA_AUTHORIZED); set_sta_flag(sta, WLAN_STA_WME); + sta->sta.wme = true; return sta; }