From owner-freebsd-mobile@FreeBSD.ORG Mon Sep 22 13:25:05 2008 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 348D41065671 for ; Mon, 22 Sep 2008 13:25:05 +0000 (UTC) (envelope-from jhay@meraka.csir.co.za) Received: from zibbi.meraka.csir.co.za (zibbi.meraka.csir.co.za [IPv6:2001:4200:7000:2::1]) by mx1.freebsd.org (Postfix) with ESMTP id 5EC9E8FC18 for ; Mon, 22 Sep 2008 13:25:04 +0000 (UTC) (envelope-from jhay@meraka.csir.co.za) Received: by zibbi.meraka.csir.co.za (Postfix, from userid 3973) id D810933CD3; Mon, 22 Sep 2008 15:25:00 +0200 (SAST) Date: Mon, 22 Sep 2008 15:25:00 +0200 From: John Hay To: freebsd-mobile@freebsd.org Message-ID: <20080922132500.GA25677@zibbi.meraka.csir.co.za> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Subject: setting bssid in adhoc mode X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Sep 2008 13:25:05 -0000 Hi I'm trying out the new ath/wlan stuff in current. Should one still be able to set the bssid in adhoc mode? We normally lock the bssid in an adhoc network because of problems that the network split and does not merge, if you do not do it. What I have done is this: # ifconfig wlan0 create wlandev ath0 wlanmode adhoc # ifconfig wlan0 ssid ptamesh up Up to here works well. It will scan and if it finds another node with the same ssid, it will "lock" on that channel and use the correct bssid. If it does not find another node with the same ssid, it will start it own thing on channel 10. But it looks like one cannot set the bssid. # ifconfig wlan0 bssid 02:07:ca:fe:ba:be ifconfig: 02:07:ca:fe:ba:be: bad value So should it work or should I do it in a different way? I saw a wlanbssid command in the ifconfig man page, but it does not seem to do anything. I tried it like this: # ifconfig wlan0 create wlandev ath0 wlanmode adhoc wlanbssid 02:07:ca:fe:ba:be It did not give an error, but also did not lock the bssid. John -- John Hay -- John.Hay@meraka.csir.co.za / jhay@FreeBSD.org