From patchwork Tue Nov 19 10:27:49 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Kwaczynski X-Patchwork-Id: 292343 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from maxx.maxx.shmoo.com (maxx.shmoo.com [205.134.188.171]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "maxx.shmoo.com", Issuer "CA Cert Signing Authority" (not verified)) by ozlabs.org (Postfix) with ESMTPS id C01802C00A4 for ; Tue, 19 Nov 2013 21:28:19 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id 6D7F89C0DC; Tue, 19 Nov 2013 05:28:14 -0500 (EST) X-Virus-Scanned: amavisd-new at maxx.shmoo.com Received: from maxx.maxx.shmoo.com ([127.0.0.1]) by localhost (maxx.shmoo.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wdSVgh+l4bTd; Tue, 19 Nov 2013 05:28:14 -0500 (EST) Received: from maxx.shmoo.com (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id 7EF059C0D1; Tue, 19 Nov 2013 05:28:09 -0500 (EST) X-Original-To: mailman-post+hostap@maxx.shmoo.com Delivered-To: mailman-post+hostap@maxx.shmoo.com Received: from localhost (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id E7B009C0D1 for ; Tue, 19 Nov 2013 05:28:07 -0500 (EST) X-Virus-Scanned: amavisd-new at maxx.shmoo.com Received: from maxx.maxx.shmoo.com ([127.0.0.1]) by localhost (maxx.shmoo.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Qz8x1+KFHC0d for ; Tue, 19 Nov 2013 05:28:03 -0500 (EST) Received: from mail-ea0-f179.google.com (mail-ea0-f179.google.com [209.85.215.179]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (not verified)) by maxx.maxx.shmoo.com (Postfix) with ESMTPS id CB9BF9C0D0 for ; Tue, 19 Nov 2013 05:28:02 -0500 (EST) Received: by mail-ea0-f179.google.com with SMTP id r15so3026104ead.10 for ; Tue, 19 Nov 2013 02:28:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tieto.com; s=google; h=from:to:cc:subject:date:message-id; bh=mUS1ZCIztjqQQmsMxjOI5F00qIemMADXmWbCjQ3Fx/4=; b=Bmc1YVb7yaiuozmGKyx0SlpO94g69wljX4jhy/iO8Mu6knXXtv5DsIyZowW33GUfLV fzmz2a7z/ScVAI2wfYE1FnOT4zjQmC8tvD6cxiBa7IHcUUh54RasALby+uGSt+rk0Avp J/b9JOZmP4aorSWUDchYns+D0HVew7MFeTEIs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=mUS1ZCIztjqQQmsMxjOI5F00qIemMADXmWbCjQ3Fx/4=; b=UYXyQs4eBi+9n1RAewFb9rTSckKs17vBQQzglCzccbwhP7jMRGFq+Cn0SIQ91B61Cr xJBKPep7mIOYLyN3qYlAro+fXE6FM54V/nhqBQv0JR2KLilAlut4HFXKtOc8A7JoV9AF FwVRL66EAUodW9UREK/ZGf962BtJpOCqZZcb6qqsv5YdiodG3ldo00NGP2LG4wrTZoEV W4pmSKF9HNyTM8D6cPgaMjqYiWgazJoAaUt/sPEwksIdgOG61cmtbJMjGlbhtlwDzFqx amS4fQbKDSY77Q8nG9lxDSMedCbvZfGrDo/HNO36r+kx/xbZVLOzfSOQpqug08Sh4hUq L/RA== X-Gm-Message-State: ALoCoQl7lNiblbVit9bV8sCwekfPVY0j2ElZwYwe4O0cmA7r0Q/T87pvHYG3zfJ9kN8HVh0OyjqkYLGRCV8UrTff60/MpDY3LHcFyrkmJ/SVENK5ZS9m9NQ= X-Received: by 10.14.6.73 with SMTP id 49mr91447eem.117.1384856881384; Tue, 19 Nov 2013 02:28:01 -0800 (PST) Received: from localhost.localdomain ([91.198.246.8]) by mx.google.com with ESMTPSA id x4sm47262738eef.1.2013.11.19.02.28.00 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 19 Nov 2013 02:28:00 -0800 (PST) From: Marek Kwaczynski To: hostap@lists.shmoo.com Subject: [PATCH] hostapd: Set VHT capabilities defined in config file Date: Tue, 19 Nov 2013 11:27:49 +0100 Message-Id: <1384856869-7745-1-git-send-email-marek.kwaczynski@tieto.com> X-Mailer: git-send-email 1.7.9.5 X-DomainID: tieto.com Cc: j@w1.fi X-BeenThere: hostap@lists.shmoo.com X-Mailman-Version: 2.1.11 Precedence: list List-Id: HostAP Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: hostap-bounces@lists.shmoo.com Errors-To: hostap-bounces@lists.shmoo.com Set VHT capabilities defined in config file instead only supported by the driver. --- src/ap/ieee802_11_vht.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ap/ieee802_11_vht.c b/src/ap/ieee802_11_vht.c index 38590a3..60e6b57 100644 --- a/src/ap/ieee802_11_vht.c +++ b/src/ap/ieee802_11_vht.c @@ -35,7 +35,7 @@ u8 * hostapd_eid_vht_capabilities(struct hostapd_data *hapd, u8 *eid) cap = (struct ieee80211_vht_capabilities *) pos; os_memset(cap, 0, sizeof(*cap)); cap->vht_capabilities_info = host_to_le32( - hapd->iface->current_mode->vht_capab); + hapd->iface->conf->vht_capab); /* Supported MCS set comes from hw */ os_memcpy(&cap->vht_supported_mcs_set,