From owner-freebsd-net@FreeBSD.ORG Wed Apr 2 14:50:02 2008 Return-Path: Delivered-To: freebsd-net@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A50201065672 for ; Wed, 2 Apr 2008 14:50:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 9135B8FC13 for ; Wed, 2 Apr 2008 14:50:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m32Eo2WJ059790 for ; Wed, 2 Apr 2008 14:50:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m32Eo20O059789; Wed, 2 Apr 2008 14:50:02 GMT (envelope-from gnats) Date: Wed, 2 Apr 2008 14:50:02 GMT Message-Id: <200804021450.m32Eo20O059789@freefall.freebsd.org> To: freebsd-net@FreeBSD.org From: "Simas Kvilius" Cc: Subject: Re: kern/122319: [wi] imposible to enable ad-hoc demo mode with Orinoco Gold PC card X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Simas Kvilius List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Apr 2008 14:50:02 -0000 The following reply was made to PR kern/122319; it has been noted by GNATS. From: "Simas Kvilius" To: bug-followup@FreeBSD.org, kvilius.simas@gmail.com Cc: Subject: Re: kern/122319: [wi] imposible to enable ad-hoc demo mode with Orinoco Gold PC card Date: Wed, 2 Apr 2008 17:16:32 +0300 Addition info: Today I tested FreeBSD6.3 wi driver and inspected underlying wi code. I found out that FreeBSD6.3 has the same adhoc demo bug as 7.0 (inability to turn on ad-hoc demo mode), I added following code to /dev/wi/if_wi.c line 385: ic->ic_caps |= IEEE80211_C_AHDEMO; This code line completely fixed issues with my Lucent Orinoco wireless card in FreeBSD6.3, now I'm able to do both tasks: enable ad-hoc mode and change radio channels. ifconfig wi0 media DS/11Mbps mode 11b mediaopt adhoc,flag0 <-- this command enables ad-hoc demo mode as it should ifconfig wi0 channel 13 <-- this command changes radio channel as it should This discovery implies two things: 1. Inability to enable ad-hoc demo mode in FreeBSD6.3 and FreeBSD7.0 and inability to change channels if FreeBSD are two separate (and probably unrelated) bugs. 2. Because in FreeBSD6.3 I can change channels, but in FreeBSD I can not, the bug lies somewhere in code, which was updated between FreeBSD6.3 and 7.0, moreover I discovered that I cannot change channel in standard adhoc mode as well as in adhoc demo mode, so this bug is general to adhoc mode.