From patchwork Tue Jun 7 12:34:14 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Koen Vandeputte X-Patchwork-Id: 631550 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3rP9xk6bwfz9sCp for ; Tue, 7 Jun 2016 22:34:50 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=ncentric.com header.i=@ncentric.com header.b=ACmluZTJ; dkim-atps=neutral Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1bAGDP-0005Fq-Ul; Tue, 07 Jun 2016 12:34:39 +0000 Received: from mail-wm0-x236.google.com ([2a00:1450:400c:c09::236]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1bAGDN-000591-Pr for hostap@lists.infradead.org; Tue, 07 Jun 2016 12:34:38 +0000 Received: by mail-wm0-x236.google.com with SMTP id n184so135006762wmn.1 for ; Tue, 07 Jun 2016 05:34:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ncentric.com; s=google; h=to:from:subject:message-id:date:user-agent:mime-version :content-transfer-encoding; bh=jRkvHSOwZy7xoyHnxiFVAL0Mj8GYgsOXa2Q69NzQH1A=; b=ACmluZTJIhGchzSNgoT4G+pnKJc6dJZGkNg+GwZltUWX0rUnBS7WzKPDioscllH3Tf /cm9O42vShP2q7JerUySdw/tSuePCOdUH0SpqFNyVaj9+0ALiqXFytChL9uTHgICEIKA NTmoJm2NB2kNel48DXW/p0a8T8blEqjgvpuAM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-transfer-encoding; bh=jRkvHSOwZy7xoyHnxiFVAL0Mj8GYgsOXa2Q69NzQH1A=; b=YIbINTE8JV0GltcYZiN0MD45h5zdMw9jLO5frRarIC7Lx9Vlj2jJHCvYjuptY4T3vW d37/3aMBofgGkMfe8Kl4LptGKx+sMgEAgD2ELvGygbOigQKKEtLIp8n01VLh3PRqQVnI v/KvGIawiU+9FekMjf7AFXT1qOJ5nB3VYCkL7p9S04r2v/nBjy8NTl91XBuuk8J27eCU DcXDh+b3dkLnKAZS6DYhRGkU+wuUoHxj9Ts0S4dRMLKdAiwYWHQdnSDgpjpFdOwLYkII xQ3T57GBK+bjpAp/r3PetJsNWXoNbHWJG4K/e+G28kNNvVJpEM6QzvXIMQajEzhbUyxX xqkg== X-Gm-Message-State: ALyK8tICzGl2I1EyoND5Ce6dhFBFTrz2yjNat3QWHmKS99P88GAq5NiKC3xEkT5xeWzzAQ== X-Received: by 10.194.141.16 with SMTP id rk16mr19826441wjb.63.1465302855317; Tue, 07 Jun 2016 05:34:15 -0700 (PDT) Received: from [192.168.3.149] (d515300d8.static.telenet.be. [81.83.0.216]) by smtp.gmail.com with ESMTPSA id 75sm19287628wml.15.2016.06.07.05.34.14 for (version=TLSv1/SSLv3 cipher=OTHER); Tue, 07 Jun 2016 05:34:14 -0700 (PDT) To: hostap@lists.infradead.org From: Koen Vandeputte Subject: Bug in wpa_supplicant IBSS mode using disable_HT40 option Message-ID: <5756BF46.3000000@ncentric.com> Date: Tue, 7 Jun 2016 14:34:14 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.8.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160607_053438_142907_5EF70EC7 X-CRM114-Status: UNSURE ( 9.64 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-2.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [2a00:1450:400c:c09:0:0:0:236 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: hostap@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Hostap" Errors-To: hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Hi All, When using wpa_supplicant in IBSS mode on 5GHz channels, the "disable_ht" & "disable_ht40" parameters are ignored. Created IBSS links are always fixed to HT40, independent of this parameters value. Currently I use the patch below to force it to HT20. It seems the wrong case is being selected due to a bug. The "disable_sgi" parameter does work correctly. Hardware used for testing: 2x Gateworks Laguna CNS3xxx + AR9280 (UBNT SR71-15) 2x Gateworks Ventana IMX-6 + AR9300 (Compex WLE350NX) Branch tested: Master @ June 1st 2016 Following setup: * 2 identical devices * IBSS mode using wpa_supplicant WPA2 (Config file below) * 2 meter apart * Tested on all possible 5GHz channels Patch created to force HT20: wpa_supplicant config file: ctrl_interface=DIR=/tmp/run/wpa_supplicant GROUP=root update_config=1 ap_scan=2 country=XA beacon_int=100 network={ ssid="ROBOT100" frequency=5500 bssid=CC:A5:4B:83:7E:A9 mode=1 disable_ht=0 disable_ht40=1 disable_sgi=1 proto=WPA2 key_mgmt=WPA-PSK-SHA256 pairwise=CCMP group=CCMP psk="MyPasswordIsHere" } Country XA definition: country XA: DFS-UNSET (2402 - 2494 @ 40), (N/A, 30), (N/A) (5180 - 5835 @ 160), (N/A, 30), (N/A) (57240 - 63720 @ 2160), (N/A, 40), (N/A) If more information is required, please let me know. Thanks, Koen Vandeputte nCentric Europe --- a/wpa_supplicant/wpa_supplicant.c +++ b/wpa_supplicant/wpa_supplicant.c @@ -1981,6 +1981,9 @@ void ibss_mesh_setup_freq(struct wpa_sup break; } + //Force HT20 + freq->sec_channel_offset = 0; + wpa_scan_results_free(scan_res); }