From owner-freebsd-wireless@FreeBSD.ORG Sat Dec 27 03:10:04 2014 Return-Path: Delivered-To: freebsd-wireless@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 902D2686 for ; Sat, 27 Dec 2014 03:10:04 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 5D5166607E for ; Sat, 27 Dec 2014 03:10:04 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id sBR3A4gl037287 for ; Sat, 27 Dec 2014 03:10:04 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-wireless@FreeBSD.org Subject: [Bug 196290] New: [net80211] [iwn] STA is in 11b mode, announces 11n HTINFO to AP, traffic fails Date: Sat, 27 Dec 2014 03:10:04 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: wireless X-Bugzilla-Version: 11.0-CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: adrian@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-wireless@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 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, 27 Dec 2014 03:10:04 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=196290 Bug ID: 196290 Summary: [net80211] [iwn] STA is in 11b mode, announces 11n HTINFO to AP, traffic fails Product: Base System Version: 11.0-CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: wireless Assignee: freebsd-wireless@FreeBSD.org Reporter: adrian@freebsd.org Here's a fun one. -HEAD as of december 23rd. NIC is iwn(4), Intel 5100. The STA associates to an 11n AP (FreeBSD) fine, in 2GHz mode. Everything's okay. At some point it reassociates or something - i'm not yet sure. But it ends up in 11b mode. I think this is one of those "VAP loses connection during an active scan, so it gets stuck in the mode of the last active scan." So it reassociates at 11b, to the same AP. The AP sees this (typed in): CAPS: EPS FLAG: AQPHTRs RATES RSN HTCAP WME Now, it's announcing 11b rates, no extended 11g rates, and MCS rates. The iwn(4) NIC is in 11b mode, so it doesn't ever hear MCS rates. It fails to ACK them. But the FreeBSD AP still sends them, as it thinks it's an MCS capable device. So - I think somewhere in net80211 in STA mode we're getting confused and announcing 11n rates for a vap that's configured as 11b. iwn(4) configures the hardware as non-11n and everything fails to work. Restart wpa_supplicant won't work - the glue currently doesn't reset the media back to auto, so it stays at 11b. I have to kill wpa_supplicant, do 'ifconfig wlan0 media auto', then restart it. I think the bugs here to fix are: * the vap shouldn't stay as the last scan mode set it if the VAP goes down during a scan - we should restore the original chanmode; * wpa_supplicant should likely be explicitly setting the mode to be auto when restarting its handshaking (unless configured to NOT be auto, then it should explicitly set it to that); * net80211 shouldn't be announcing MCS info sets if the vap is configured as 11b. That's plain stupid. -- You are receiving this mail because: You are the assignee for the bug.