From owner-freebsd-mobile@FreeBSD.ORG Mon Sep 22 15:48:23 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 1B827106566B for ; Mon, 22 Sep 2008 15:48:23 +0000 (UTC) (envelope-from sam@freebsd.org) Received: from ebb.errno.com (ebb.errno.com [69.12.149.25]) by mx1.freebsd.org (Postfix) with ESMTP id EB4228FC08 for ; Mon, 22 Sep 2008 15:48:22 +0000 (UTC) (envelope-from sam@freebsd.org) Received: from trouble.errno.com (trouble.errno.com [10.0.0.248]) (authenticated bits=0) by ebb.errno.com (8.13.6/8.12.6) with ESMTP id m8MFmMWN059167 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 22 Sep 2008 08:48:22 -0700 (PDT) (envelope-from sam@freebsd.org) Message-ID: <48D7BE46.10306@freebsd.org> Date: Mon, 22 Sep 2008 08:48:22 -0700 From: Sam Leffler Organization: FreeBSD Project User-Agent: Thunderbird 2.0.0.9 (X11/20071125) MIME-Version: 1.0 To: John Hay References: <20080922132500.GA25677@zibbi.meraka.csir.co.za> In-Reply-To: <20080922132500.GA25677@zibbi.meraka.csir.co.za> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-DCC--Metrics: ebb.errno.com; whitelist Cc: freebsd-mobile@freebsd.org Subject: Re: 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 15:48:23 -0000 John Hay wrote: > 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. > > It should be possible to alter the bssid. wlanbssid is used to fix the bssid/mac address of the vap at create. Sam