From patchwork Tue Nov 19 14:13:33 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: 3202371 Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 41C469F243 for ; Tue, 19 Nov 2013 14:14:01 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2BDED20353 for ; Tue, 19 Nov 2013 14:14:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 02D9C2034E for ; Tue, 19 Nov 2013 14:13:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752342Ab3KSON4 (ORCPT ); Tue, 19 Nov 2013 09:13:56 -0500 Received: from mail-pd0-f174.google.com ([209.85.192.174]:39835 "EHLO mail-pd0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751914Ab3KSONz (ORCPT ); Tue, 19 Nov 2013 09:13:55 -0500 Received: by mail-pd0-f174.google.com with SMTP id y13so1991433pdi.33 for ; Tue, 19 Nov 2013 06:13:55 -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=IStLr9yFlrh3xs7R2OX1BS1Q+pi2zzlA5Qv04a5etbg=; b=I2L3de+RHK6BVXbK1dBUfjYOc6fHuBB3oGHfz5WZpRwr+zW6lWSBjT9t41CXAn99iF t6B43o9X0R/miJNZl1Lc1wyiPOTk5HamcQedfsTPrhtUfivM4SPCC/36Vq2TW1ZqRavi eZ6fz/Y+hc8OtfK9CkkMncBJ7yZJ8Va2xftH/2mshGay9YJa7Mq6mVcwbUGUgCNKNaYJ l3vDSo2tUGf5/Ul3jZJmdsGyVSuOmUrIJgkpFtXcLkd7ZsB2CeBFZE8+KtJWylbueJdv 1Y9KRv8O6Cl6fKgNCmW9CyLaastek7/zhnIZHa7ECBPB+QQsgp+9P9DICiePZWLw8mi5 iqnQ== X-Received: by 10.68.13.104 with SMTP id g8mr26624267pbc.33.1384870435275; Tue, 19 Nov 2013 06:13:55 -0800 (PST) Received: from nga.lan ([210.195.124.56]) by mx.google.com with ESMTPSA id pl1sm30833320pbb.20.2013.11.19.06.13.52 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 19 Nov 2013 06:13:54 -0800 (PST) From: Chun-Yeow Yeoh To: linux-wireless@vger.kernel.org Cc: k.eugene.e@gmail.com, linville@tuxdriver.com, wcn36xx@lists.infradead.org, Chun-Yeow Yeoh Subject: [PATCH] wcn36xx: set self sta entry as HT capable Date: Tue, 19 Nov 2013 22:13:33 +0800 Message-Id: <1384870413-5569-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 Set the HT capable for self STA entry for bss configuration. Otherwise, only legacy rate will be used for transmitting, especially for mesh mode. Signed-off-by: Chun-Yeow Yeoh --- drivers/net/wireless/ath/wcn36xx/smd.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/wcn36xx/smd.c b/drivers/net/wireless/ath/wcn36xx/smd.c index 19f43de..5160b04 100644 --- a/drivers/net/wireless/ath/wcn36xx/smd.c +++ b/drivers/net/wireless/ath/wcn36xx/smd.c @@ -115,6 +115,13 @@ static void wcn36xx_smd_set_sta_ht_params(struct ieee80211_sta *sta, } } +static void wcn36xx_smd_set_sta_default_ht_params( + struct wcn36xx_hal_config_sta_params *sta_params) +{ + wcn36xx_set_default_rates(&sta_params->supported_rates); + sta_params->ht_capable = 1; +} + static void wcn36xx_smd_set_sta_params(struct wcn36xx *wcn, struct ieee80211_vif *vif, struct ieee80211_sta *sta, @@ -171,7 +178,7 @@ static void wcn36xx_smd_set_sta_params(struct wcn36xx *wcn, memcpy(&sta_params->supported_rates, &priv_sta->supported_rates, sizeof(priv_sta->supported_rates)); } else { - wcn36xx_set_default_rates(&sta_params->supported_rates); + wcn36xx_smd_set_sta_default_ht_params(sta_params); } }