From owner-freebsd-wireless@FreeBSD.ORG Sat Aug 23 22:08:03 2014 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id ADDC3D5E for ; Sat, 23 Aug 2014 22:08:03 +0000 (UTC) Received: from winston.telenet-ops.be (winston.telenet-ops.be [195.130.137.75]) by mx1.freebsd.org (Postfix) with ESMTP id 303E532C8 for ; Sat, 23 Aug 2014 22:08:02 +0000 (UTC) Received: from michel.telenet-ops.be (michel.telenet-ops.be [195.130.137.88]) by winston.telenet-ops.be (Postfix) with ESMTP id 070371BC418 for ; Sat, 23 Aug 2014 23:56:21 +0200 (CEST) Received: from [192.168.0.95] ([141.134.88.3]) by michel.telenet-ops.be with bizsmtp id iMwD1o00C04KsaM06MwDHy; Sat, 23 Aug 2014 23:56:13 +0200 Message-ID: <53F90E0A.3060800@telenet.be> Date: Sat, 23 Aug 2014 23:56:26 +0200 From: Chris Van Steenlandt User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.0 MIME-Version: 1.0 To: Adrian Chadd Subject: Re: WPI (Intel wireless 3945ABG) strange behaviour References: <201408231238.s7NCc8ME057766@fire.js.berklix.net> <53F8F086.1070207@telenet.be> <53F8F605.80006@telenet.be> <53F9009F.2020603@telenet.be> In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: "Julian H. Stacey" , "freebsd-wireless@freebsd.org" X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.18-1 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: Sat, 23 Aug 2014 22:08:03 -0000 Adrian, I'll file a bug but I do not know if this is only related to the 5ghz band. I reconfigured my NIC and added the parameter "mode 11g" to the ifconfig command. If I'm correct only the 2.4 Ghz band is used then. Even in this scenario my NIC looses connection and then reconnects. Ifconfig shows me my NIC is associated to my ssid and that everything should be ok. However, a ping to another computer on my local network says 'No route to host' ... Regards, Chris On 23-08-14 23:18, Adrian Chadd wrote: > (and please file a separate bug for the 5ghz problem with wpi, so I > can dump this into the bug.0 > > thanks! > > -a > > > On 23 August 2014 14:02, Adrian Chadd wrote: >> Yeah, that's the same problem at iwn - the firmware rejects any frames >> being transmitted to 5ghz passive channels until a beacon is received. >> >> It's likely some buffering in net80211 and/or the driver(s) is required. >> >> It's not breaking regulatory - the NIC already scanned the channel and >> heard a beacon. But then the firmware is reset to associate to the >> channel (rather than scan) and it "loses" knowledge that the channel >> is fine to transmit on. So net80211 associating with one frame which >> is instantly rejected by the firmware. Something needs to buffer that >> and other frames until the firmware sees a beacon - then if it retries >> the frame(s), it'll successfully be transmitted. >> >> I've known about the problem for a while. I've just been too busy / >> distracted to sit down and fix it. It's not a conceptually difficult >> thing to fix - someone just has to do it. :P >> >> >> -a >> >> >> >> On 23 August 2014 13:59, Chris Van Steenlandt >> wrote: >>> Adrian, >>> >>> - ifconfig step (creation of pseudo device) completed successfully >>> - wpa_supplicant gives the following type of output (I can't paste it here, >>> but I'll describe the structure of the output) : >>> >>> 1st message : Initialization successfull >>> >>> Then the following blocks of messages (they alternate or repeat) >>> Block 1 : >>> >>> Trying to associate with (SSID='myssid' freq=5180 Mhz) >>> wlan0 : Authentication with timed out. >>> wlan0 : CTRL_EVENT_DISCONNECTED bssid = reason=3 >>> locally_generated=1 >>> ioctl[SIOCS80211, op=20, val=0, arg_len=7] : Can't assign requested adress >>> >>> Block 2 : >>> Trying to associate with (SSID='myssid' freq=2412 Mhz) >>> wlan0 : Associated with >>> wlan0 : WPA: Key negotiation completed with [PTK=CMP >>> GTK=TKIP] >>> wlan0 : CTRL_EVENT_CONNECTED - Connection to completed [id=0 >>> id_str=] >>> >>> >>> Block 2 is sometines followed by : >>> wlan0 : CTRL_EVENT_DISCONNECTED bssid = reason=0 >>> and then followed by block 1 >>> >>> For as far as I understand, the driver switches between the 2.4 GHz and 5 >>> Ghz band of my wireless network. Indeed my wifi router is configured to >>> support both bands but apparently my wifi driver can only handle the 2.4Ghz >>> one. >>> >>> >>> On 23-08-14 22:19, Adrian Chadd wrote: >>> >>> Ok. >>> >>> Just try it manually - >>> >>> * comment out stuff from /etc/rc.conf and reboot >>> * ifconfig wlan0 create wlandev wpi0 -bgscan >>> * wpa_supplicant -i wlan0 -c /etc/wpa_supplicant.conf & >>> * ifconfig wlan0 list scan - you haven't pasted that here, so we have >>> no idea what APs it is seeing >>> >>> then see. >>> >>> If you compiled in IEEE80211_DEBUG in your kernel config, then >>> 'wlandebug +scan' and see what is spat out to the kernel config. >>> >>>