From patchwork Sun Mar 4 07:00:29 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Vorona X-Patchwork-Id: 144477 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 8B390B6EF1 for ; Sun, 4 Mar 2012 18:00:52 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id CE4389C170; Sun, 4 Mar 2012 02:00:44 -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 TSckD2Z0tgMD; Sun, 4 Mar 2012 02:00:44 -0500 (EST) Received: from maxx.shmoo.com (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id 2779D9C168; Sun, 4 Mar 2012 02:00:39 -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 D44FA9C168 for ; Sun, 4 Mar 2012 02:00:37 -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 XdEsDt7g3Ar0 for ; Sun, 4 Mar 2012 02:00:32 -0500 (EST) Received: from su1.arilot.ua (unknown [91.197.129.229]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by maxx.maxx.shmoo.com (Postfix) with ESMTPS id 570C29C167 for ; Sun, 4 Mar 2012 02:00:32 -0500 (EST) Received: from [159.224.49.180] (helo=[192.168.78.16]) by su1.arilot.ua with esmtpsa (TLSv1:CAMELLIA256-SHA:256) (Exim 4.76) (envelope-from ) id 1S45Qk-00056L-1d for hostap@lists.shmoo.com; Sun, 04 Mar 2012 09:00:30 +0200 Message-ID: <4F53130D.1090007@vorona.com.ua> Date: Sun, 04 Mar 2012 09:00:29 +0200 From: Alex Vorona User-Agent: Mozilla/5.0 (X11; Linux i686; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 MIME-Version: 1.0 To: hostap@lists.shmoo.com Subject: [PROPOSAL] Add hostapd.conf parameter to skip check forneighboring BSS (prevent fallback in 150Mb mode) X-BeenThere: hostap@lists.shmoo.com X-Mailman-Version: 2.1.9 Precedence: list List-Id: HostAP Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: hostap-bounces@lists.shmoo.com Errors-To: hostap-bounces@lists.shmoo.com Hello, Sorry I cannot find how to reply to existing thread just after subscribe. So I had to use the same topic name. Here is hostapd -d start log Scan for neighboring BSSes prior to enabling 40 MHz channel Scan requested (ret=0) - scan timeout 10 seconds Interface initialization will be completed in a callback nl80211: Event message available nl80211: Scan trigger [...] nl80211: New scan results available Received scan results (4 BSSes) 40 MHz affected channel range: [2422,2472] MHz Neighboring BSS: cc:96:a0:f5:4a:00 freq=2422 pri=3 sec=7 40 MHz pri/sec mismatch with BSS cc:96:a0:f5:4a:00 <2422,2442> (chan=3+) vs. <2457,2437> 20/40 MHz operation not permitted on channel pri=10 sec=6 based on overlapping BSSes I can change channel to any between 1 and 10 in hostapd.conf and got the same result. using HT40- instead HT40+ did not help. If primary or secondary channel is 11+, I got something like that nl80211: Failed to set channel (freq=2462): -22 (Invalid argument) but that's unrelated to the problem, IMHO. Why I'm not able to force 40MHz operation in my apartment? OK, I can "hear" neighboring APs through the concrete walls with low signal quality, so what? This is my apartment, not neighbors. And even if we share walls or floor, I'm still want to use 40MHz like the neighbor did. So I had attached quick patch just to disable 20MHz fallback. I understand you guys trying to make things right, but I use Linux to make things as I need, and that's why I love it. Being smart is clever but I need an ability to disable this. Thanks, Alex --- hostapd-0.7.3/src/ap/hw_features.c.old 2012-03-04 08:06:27.425520296 +0200 +++ hostapd-0.7.3/src/ap/hw_features.c 2012-03-04 08:10:31.776913761 +0200 @@ -441,7 +441,7 @@ else oper40 = ieee80211n_check_40mhz_2g4(iface, scan_res); wpa_scan_results_free(scan_res); - + oper40=1; if (!oper40) { wpa_printf(MSG_INFO, "20/40 MHz operation not permitted on " "channel pri=%d sec=%d based on overlapping BSSes",