From owner-freebsd-questions@FreeBSD.ORG Mon Sep 7 00:27:09 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8BB6F1065670 for ; Mon, 7 Sep 2009 00:27:09 +0000 (UTC) (envelope-from nlandys@gmail.com) Received: from mail-qy0-f183.google.com (mail-qy0-f183.google.com [209.85.221.183]) by mx1.freebsd.org (Postfix) with ESMTP id 4C1AF8FC15 for ; Mon, 7 Sep 2009 00:27:09 +0000 (UTC) Received: by qyk13 with SMTP id 13so1671534qyk.3 for ; Sun, 06 Sep 2009 17:27:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=cni6vz5IeJGQ0P2H3k53gGY2k6u44R+LBKEKuRVlL8Y=; b=eNZiVPyaJZ42a5G4qyTG5sbTLgPLEI3rNjyjO9x7T58h6f5n71tbDs9IrirZkqXpAu XiGNUV4BkT+EfcYVzd7a9XlZG0wRBWRWi0AhNktwDUMlrC3YQXEpfBYri8Vj5wl5O75e 2NPmMWC+SSefAGKj1IAY8JUT79g6dG/5gWL8c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=NOOvSVaPJKhK4OWxyg6CDep865p8jpvZ2fwtSFFO3pTj07SG6IYISYOg9eDYWhnlTG w38i6S9i/5EE3jnsgvQWTnr3syJ2VOoQ1RUgawcg+5VKHqJrCuXEL2SsvZDjz8Q4h4fz aTMVU6gblM7YdOrxskYrb32pJn61fq9mBJiuo= MIME-Version: 1.0 Received: by 10.229.12.212 with SMTP id y20mr3678801qcy.16.1252283228561; Sun, 06 Sep 2009 17:27:08 -0700 (PDT) Date: Sun, 6 Sep 2009 17:27:04 -0700 Message-ID: <560f92640909061727o5e8ce3b2k9248e28fe878f58a@mail.gmail.com> From: Nerius Landys To: FreeBSD Mailing List Content-Type: text/plain; charset=ISO-8859-1 Subject: wireless: host access point w/ WAP help! 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: Mon, 07 Sep 2009 00:27:09 -0000 I am following the Handbook instructions for setting up a FreeBSD wireless host access point: http://www.freebsd.org/doc/en/books/handbook/network-wireless.html root@speedy# dmesg | grep ath ath_hal: 0.9.20.3 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413) ath0: mem 0xff8f0000-0xff8fffff irq 21 at device 0.0 on pci1 ath0: [ITHREAD] ath0: WARNING: using obsoleted if_watchdog interface ath0: Ethernet address: 00:02:6f:61:e6:7d ath0: mac 7.9 phy 4.5 radio 5.6 ath0: ath_chan_set: unable to reset channel 6 (2437 Mhz, flags 0x490 hal flags 0x150), hal status 12 root@speedy# ifconfig ath0 list caps ath0=6783edcf I am able to set up an access point with no authentication or encryption. I verified this by connecting to my FreeBSD router from a Windows [wireless] laptop computer over SSH. It seems that the minute I try to turn WAP on (based on the instructions in the Handbook), things stop working. The steps I follow to enable WAP (after verifying that the host access point is working without encryption) are based on the instructions in the Handbook, and are as follows: 1. Create /etc/hostapd.conf: interface=ath0 debug=1 ctrl_interface=/var/run/hostapd ctrl_interface_group=wheel ssid=speedy.i wpa=1 wpa_passphrase=xxx3xxx3 wpa_key_mgmt=WPA-PSK wpa_pairwise=CCMP TKIP 2. Add this line to /etc/rc.conf: hostapd_enable="YES" 3. Execute "/etc/rc.d/hostapd forcestart". I realize this is only needed for changes to take effect before rebooting the system. I also tried rebooting (with the line in rc.conf) but the results are the same. With WAP "enabled" (following the three steps above), my Windows laptop does not scan to find the "speedy.i" access point. Also, here are some things output by "ifconfig ath0" before and after I follow these steps to enable WAP: BEFORE ENABLING WAP (without hostapd): nlandys@speedy# ifconfig ath0 ath0: flags=8843 metric 0 mtu 1500 ether 00:02:6f:61:e6:7d inet 192.168.1.254 netmask 0xffffff00 broadcast 192.168.1.255 media: IEEE 802.11 Wireless Ethernet autoselect mode 11g status: associated ssid speedy.i channel 1 (2412 Mhz 11g) bssid 00:02:6f:61:e6:7d authmode OPEN privacy OFF txpower 31.5 scanvalid 60 bgscan bgscanintvl 300 bgscanidle 250 roam:rssi11g 7 roam:rate11g 5 protmode CTS burst dtimperiod 1 AFTER ENABLING WAP (with hostapd): root@speedy# ifconfig ath0 ath0: flags=8802 metric 0 mtu 1500 ether 00:02:6f:61:e6:7d inet 192.168.1.254 netmask 0xffffff00 broadcast 192.168.1.255 media: IEEE 802.11 Wireless Ethernet autoselect mode 11g status: no carrier ssid speedy.i channel 1 (2412 Mhz 11g) authmode AUTO privacy OFF txpower 31.5 scanvalid 60 bgscan bgscanintvl 300 bgscanidle 250 roam:rssi11g 7 roam:rate11g 5 protmode CTS burst dtimperiod 1 The output from "ifconfig ath0" above after WAP has been enabled differs significantly from the sample output in the Handbook. One more important thing. I look at processes from top and I see nothing running that corresponds to hostapd. Is this a daemon? I also did the following: root@speedy# find /var | grep -i hostapd And it returns nothing. Does /var/run/hostapd need to exist as a directory for things to work?