From owner-freebsd-questions@FreeBSD.ORG Tue Jan 9 16:26:28 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 407ED16A40F for ; Tue, 9 Jan 2007 16:26:28 +0000 (UTC) (envelope-from me@janh.de) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.188]) by mx1.freebsd.org (Postfix) with ESMTP id D179413C457 for ; Tue, 9 Jan 2007 16:26:27 +0000 (UTC) (envelope-from me@janh.de) Received: from [80.171.54.55] (helo=[192.168.178.27]) by mrelayeu.kundenserver.de (node=mrelayeu1) with ESMTP (Nemesis), id 0MKwpI-1H4Jbc1gBG-0000QI; Tue, 09 Jan 2007 17:13:44 +0100 Message-ID: <45A3BF37.2010504@janh.de> Date: Tue, 09 Jan 2007 17:13:43 +0100 From: Jan Henrik Sylvester User-Agent: Thunderbird 1.5.0.9 (X11/20070103) MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: kundenserver.de abuse@kundenserver.de login:d7781a442c21a226569d6437949909a2 Subject: 6.1 to 6.2-RC2: iwi-firmware-kmod and monitor/ibbs X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Jan 2007 16:26:28 -0000 I could not find documentation about iwi-firmware-kmod and things do not work the way I expect them. If this is not the right place to ask this question, please, point me to an appropriate mailing list or forum. How do I use the ibbs and monitor mode with iwi-firmware-kmod (6.2-RC2)? If I try to go to "mediaopt ibbs", I always get "Device not configured". I would like to use kismet. My configuration file, which seemed to work with iwi-firmware (6.1), contains "source=radiotap_bsd_b,iwi0,iwikismet". I only ever got a few packages with iwi-firmware (6.1), before it stopped working and sometimes crashed. With iwi-firmware-kmod (6.2-RC2), Kismet always immediately stops with a FATAL error, seemingly because promiscuous mode is not available. If I manually load iwi_monitor, dmesg gives me firmware_get: failed to load firmware image iwi_monitor iwi0: could not load firmware iwi0: promiscuous mode disabled -- I guess I should not do that. Without manually loading iwi_monitor, I get iwi0: could not allocate firmware DMA memory iwi0: promiscuous mode disabled -- something seems to be wrong here, too. How are ibbs and monitor supposed to work? Should I manually load the firmware or not? How do I invoke ibbs at all? Trying to switch between bbs, ibbs, and monitor, I noticed a few oddities: janh# ifconfig iwi0 down janh# ifconfig iwi0 mediaopt ibbs ifconfig: SIOCSIFMEDIA (media): Device not configured janh# ifconfig iwi0 mediaopt monitor janh# ifconfig iwi0 mediaopt bbs ifconfig: SIOCSIFMEDIA (media): Device not configured janh# ifconfig iwi0 -mediaopt monitor janh# kldstat | grep iwi 30 1 0xc383a000 d000 if_iwi.ko janh# kldload iwi_monitor janh# kldstat | grep iwi 30 1 0xc383a000 d000 if_iwi.ko 32 1 0xc4843000 2f000 iwi_monitor.ko janh# kldunload iwi_monitor janh# kldstat | grep iwi 30 1 0xc383a000 d000 if_iwi.ko janh# kldload iwi_bbs kldload: can't load iwi_bbs: No such file or directory janh# kldload iwi_ibbs kldload: can't load iwi_ibbs: No such file or directory janh# ls /boot/modules iwi_bss.ko iwi_ibss.ko iwi_monitor.ko kqemu.ko linker.hints Something is wrong here, I guess. With iwi-firmware (6.1), I used to load the required firmware with iwicontrol and set the mediaopt with ifconfig. Many reboots were required to get back to a defined state. I had many crashes using "ifconfig iwi0 [...]" even without ibbs or monitor mode involved. With iwi-firmware-kmod (6.2-RC2), I had not a single crash, but sometimes lost the bbs connection for a few seconds and I could not get ibbs and monitor to work at all. I guess it is an improvement (stability over functionality). Oh, btw, is there any way to check the status of the radio button as with "iwicontrol iwi0 -r" on 6.1? A change usually shows up at dmesg, but I would like to get the current state. Thanks Jan Henrik