From owner-freebsd-wireless@FreeBSD.ORG Wed Jul 24 22:45:49 2013 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 ESMTP id 680E7D25 for ; Wed, 24 Jul 2013 22:45:49 +0000 (UTC) (envelope-from pedro.flynn@gmail.com) Received: from mail-lb0-x234.google.com (mail-lb0-x234.google.com [IPv6:2a00:1450:4010:c04::234]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id C5FA62023 for ; Wed, 24 Jul 2013 22:45:48 +0000 (UTC) Received: by mail-lb0-f180.google.com with SMTP id t13so969387lbd.11 for ; Wed, 24 Jul 2013 15:45:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=ilSYzpAOC4+CPLpPjJSME1mcoTKQUWY+YNr6Bp/cztA=; b=bXBKTy1d1A2Em1CXat2/t2mU/glUl1zlln1Hoq6eelX6XGNc0FV2/0Fn6szc6oPkHS BnkC9/M/pLCbEP3n8PwMr1tOK8bUHirpyNKVIZIlNBt9uYPDRcOyEKUQ8wQabmzh6gxe 33kCbJn3/wVmVDATgPJSlQw/dZPhKrxVNctJUlW21JXgRf0L9L7vgrIy2uGk5lAeUdeL OsRVfXw3C0jrP4V7/rvM2kXsp2lB7KI+COy9ivuwrGUkN7P3qoXZ/Fuj9TWTclP7wjzt Zby/TbygJkKaBmEANvIUc68uIVZPOM8+l2aMkOT8U3R2Bozks8HtEVTuV7+T5sI7o7vp yZXw== MIME-Version: 1.0 X-Received: by 10.152.5.4 with SMTP id o4mr2573247lao.5.1374705946700; Wed, 24 Jul 2013 15:45:46 -0700 (PDT) Received: by 10.114.63.74 with HTTP; Wed, 24 Jul 2013 15:45:46 -0700 (PDT) Date: Wed, 24 Jul 2013 19:45:46 -0300 Message-ID: Subject: hostapd awkward problem: WiFi network "vanishes". From: Pedro Flynn To: freebsd-wireless@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 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: Wed, 24 Jul 2013 22:45:49 -0000 Hi, I originally posted this at the forums.freebsd.org network forum, but I had no luck until now finding an answer to this problem that is annoying me. I hope someone could give me some light: (original post: http://forums.freebsd.org/showthread.php?t=38370) *** I have a simple WiFi access point running 9.1-RELEASE (amd64). The WiFi interface is an USB dongle based on the RT3070 chipset. Everything works fine, except for one detail: the WiFi network seems to "vanish" when I boot the access point. But this only happens on the first boot (after I turn on the machine). I posted a video on youtube showing what I can see: *FreeBSD hostapd awkward problem: WiFi network "vanishes".* http://www.youtube.com/watch?v=FezGL-M7AUM&feature=youtu.be The video shows my Android mobile running the WiFi Analizer app while I'm turning on my access point. First, there are only some networks from the neighborhood that are not important but are shown by the app. At 00:25, we can see my network showing up (pink curve), named "wormhole". There is an asterisk to the right of the network name meaning that it is an open (not encrypted) network. This is, I think, just after the rc system scripts finish running the basic setup for my wifi interface: /etc/rc.conf Code: wlans_run0="wlan0" create_args_wlan0="wlanmode hostap" ifconfig_wlan0="inet 192.168.1.1 netmask 255.255.255.0 ssid wormhole" Until now, I think that everything is OK. But at 00:45, the problem shows up: the network simply "vanishes". We can see that the signal curve shrinks until it completely vanishes. I think that it happens exactly when hostapd(8) starts: /etc/rc.conf Code: hostapd_enable="YES" /etc/hostapd.conf Code: interface=wlan0 ctrl_interface=/var/run/hostapd ctrl_interface_group=wheel logger_syslog=-1 logger_syslog_level=4 debug=4 ssid=wormhole wpa=2 wpa_passphrase=test wpa_key_mgmt=WPA-PSK wpa_pairwise=CCMP TKIP Awkward is that, after boot, I can bring the wifi network up just stopping and restarting hostapd(8) : Code: # /etc/rc.d/hostapd stop # /etc/rc.d/hostapd start Sometimes I need to stop/start hostapd(8) just one time, sometimes twice. It is also awkward that after the first boot (when I can't see my network), ifconfig(8) output for wlan0 and run0 are exactly the same as the output when everything is working fine (when I can see the network). Same for hostapd(8) logs. I don't think it is a firmware loading problem, because the system can configure the wifi network, the problem starts only after hostapd(8) starts. Would like to know if anyone has seem something like this. *** End of the original post In the same post, another user reported he was observing a similar behavior in his Debian GNU/Linux box, but it's not clear if the problem has to do with hostapd itself, with the Ralink chipset or both. Thanks in advance. Pedro