From owner-freebsd-questions@FreeBSD.ORG Thu Jul 17 10:29:12 2008 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 863D5106566B for ; Thu, 17 Jul 2008 10:29:12 +0000 (UTC) (envelope-from FreeBSD@insightbb.com) Received: from mxsf04.insightbb.com (mxsf04.insightbb.com [74.128.0.74]) by mx1.freebsd.org (Postfix) with ESMTP id 404258FC12 for ; Thu, 17 Jul 2008 10:29:12 +0000 (UTC) (envelope-from FreeBSD@insightbb.com) X-IronPort-AV: E=Sophos;i="4.31,202,1215403200"; d="scan'208";a="451239579" Received: from unknown (HELO asav01.insightbb.com) ([172.31.249.124]) by mxsf04.insightbb.com with ESMTP; 17 Jul 2008 06:29:10 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApIAAAe8fkhKgz26/2dsb2JhbAAIsBc X-IronPort-AV: E=Sophos;i="4.31,202,1215403200"; d="scan'208";a="172200467" Received: from 74-131-61-186.dhcp.insightbb.com (HELO [192.168.2.5]) ([74.131.61.186]) by asavout01.insightbb.com with ESMTP; 17 Jul 2008 06:29:10 -0400 From: Steven Friedrich To: Giorgos Keramidas Date: Thu, 17 Jul 2008 06:28:42 -0400 User-Agent: KMail/1.9.7 References: <200807162021.00044.FreeBSD@insightbb.com> <87vdz5nwir.fsf@kobe.laptop> In-Reply-To: <87vdz5nwir.fsf@kobe.laptop> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200807170628.43279.FreeBSD@insightbb.com> Cc: freebsd-questions@freebsd.org Subject: Re: Wireless client won't associate to router with SSID not broadcast 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: Thu, 17 Jul 2008 10:29:12 -0000 On Wednesday 16 July 2008 09:13:00 pm Giorgos Keramidas wrote: > On Wed, 16 Jul 2008 20:20:59 -0400, Steven Friedrich wrote: > > My laptop connects just fine, until I config the router to turn off > > broadcasting SSID. Then, ifconfig reports "no carrier". > > > > Is there a config setting I need? > > Hi Steven, > > How are you bringing up the wireless interface? > > My home AP doesn't broadcast its SSID either. The script I use to bring > up ath0+wlan0 and connect my laptop at home includes stuff like the > > following (and it does work without SSID broadcasting): > : # network interface options (partial; see below for more wlan0 stuff) > : export wlans_ath0="wlan0" > : export ifconfig_wlan0="inet 192.168.1.3/24" > : export defaultrouter='192.168.1.1' > : > : echo '## Stopping network interfaces.' > : > : /etc/rc.d/netif stop fxp0 && ifconfig fxp0 delete > : /etc/rc.d/netif stop ath0 && ifconfig ath0 delete > : > : echo '## Bringing up wireless interface.' > : > : /etc/rc.d/netif start ath0 > : > : ifconfig wlan0 \ > : ssid '********' channel 11 \ > : wepmode on weptxkey 1 \ > : wepkey '0xXXXXXXXXXXXXXXXXXXXXXXXXXX' In /etc/rc.conf, I have: ifconfig_ndis0="wpa DHCP" In /etc/wpa_supplicant.conf, I have: network={ ssid="FriedrichAir" psk="somekey" } LATE BREAKING NEWS I GOT IT I added ap_scan=2 to wpa_supplicant.conf and a few more In /etc/wpa_supplicant.conf, I now have: ap_scan=2 network={ ssid="FriedrichAir" scan_ssid=1 key_mgmt=WPA-PSK pairwise=TKIP group=TKIP proto=WPA psk="somekey" } Note: The man page for wpa_supplicant.conf incorrectly states ap_scan values other than 1 are for other operating systems. Read /usr/share/examples/wpa_supplicant/wpa_supplicant.conf regarding ap_scan.