From owner-freebsd-wireless@FreeBSD.ORG Thu Aug 9 02:20:37 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BB901106564A; Thu, 9 Aug 2012 02:20:37 +0000 (UTC) (envelope-from honestqiao@gmail.com) Received: from mail-qa0-f54.google.com (mail-qa0-f54.google.com [209.85.216.54]) by mx1.freebsd.org (Postfix) with ESMTP id 405B68FC15; Thu, 9 Aug 2012 02:20:37 +0000 (UTC) Received: by qaat11 with SMTP id t11so23866qaa.13 for ; Wed, 08 Aug 2012 19:20:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=WR3gu6ub/Wwyo80dZuHUJf47zK13QZQTNzMEsQBpeug=; b=Ohiaav9HYaOe/oe6N/z/DGdQA18O7bxdhbHYObHCpXuZXyE9PTW3Qb/7yXg4+YPEXo 6qryc3yD6yfFbCRiciyCkw2+xTCaoivqT3+746sfpsn4UnitknvZ4axNytvTK9clBZry D+qWza1kBeEWN7xjAgHUYgcx4Zc5wVn6E9dGocjai/6PUW60X69Ehb71aY/xWEvlmlHg DmcdmNbKlOCRoWJrnyq9+LLVfVAecOcCAHGZkn2rUQjzmZLpbSKaVLbts+pauK+BATnA ssGQgq/8WBzANARcYeSNlHDc2c9h7LBZLpjPLoaGIMg/we6J2xN1W7AwmPLEHSxyiFyf o6IA== Received: by 10.229.135.134 with SMTP id n6mr10190373qct.140.1344478836390; Wed, 08 Aug 2012 19:20:36 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.68.224 with HTTP; Wed, 8 Aug 2012 19:19:55 -0700 (PDT) In-Reply-To: References: <201207300139326668335@gmail.com> <2012080200541916697916@gmail.com> <201208011929.23039.bschmidt@freebsd.org> <201208021454506984721@gmail.com> <201208081131539552520@gmail.com> From: =?UTF-8?B?5LmU5qWa?= Date: Thu, 9 Aug 2012 10:19:55 +0800 Message-ID: To: Adrian Chadd Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless , bschmidt Subject: Re: Re: iwn0/wlan0 scan WPA2-PSK/AES as WEP on freebsd9 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Aug 2012 02:20:37 -0000 2012/8/9 Adrian Chadd : > Hm, so can you disable mesh? > > Or, so you don't have to recompile everything, just edit > ieee80211_input.c, find this code: > > > > #ifdef IEEE80211_SUPPORT_MESH > case IEEE80211_ELEMID_MESHID: > scan->meshid = frm; > break; > case IEEE80211_ELEMID_MESHCONF: > scan->meshconf = frm; > break; > #endif > > .. and just change that ifdef to > > #ifdef UNUSED > > I'd like to see if somehow your code is mis-parsing the beacon and > populating those meshid/meshconf fields. They should be NULL at the > start of that function. > > > > Adrian >And this is an example of it working? What's ifconfig wlan0 list sta show? Yes , It's working. #ifconfig wlan0 list sta ADDR AID CHAN RATE RSSI IDLE TXSEQ RXSEQ CAPS FLAG 8c:21:0a:43:ef:d4 4 11 54M 27.5 0 16 11296 EPS AEHTR RSN HTCAP ATH WPS #ifconfig wlan0 wlan0: flags=8843 metric 0 mtu 1500 ether 8c:a9:82:5a:41:58 inet 192.168.1.7 netmask 0xffffff00 broadcast 192.168.1.255 nd6 options=29 media: IEEE 802.11 Wireless Ethernet OFDM/54Mbps mode 11ng status: associated ssid OpenBSD channel 11 (2462 MHz 11g ht/20) bssid 8c:21:0a:43:ef:d4 country US authmode WPA2/802.11i privacy ON deftxkey UNDEF AES-CCM 2:128-bit txpower 14 bmiss 10 scanvalid 450 bgscan bgscanintvl 300 bgscanidle 250 roam:rssi 7 roam:rate 64 protmode CTS ampdulimit 64k -amsdutx amsdurx shortgi wme roaming MANUAL > Hm, so can you disable mesh? Are you mean remove IEEE80211_SUPPORT_MESH from kernel config?