From owner-freebsd-current@FreeBSD.ORG Wed Jul 4 19:25:49 2007 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1F1D616A400 for ; Wed, 4 Jul 2007 19:25:49 +0000 (UTC) (envelope-from sfpoof@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.239]) by mx1.freebsd.org (Postfix) with ESMTP id C244413C4BC for ; Wed, 4 Jul 2007 19:25:48 +0000 (UTC) (envelope-from sfpoof@gmail.com) Received: by wx-out-0506.google.com with SMTP id i29so1336003wxd for ; Wed, 04 Jul 2007 12:25:48 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=JuJ8JgeeufPaGmAyOgXVfOkvJTE4lRxm5LftriXlhVniffb/Rhrm5GYQ890/c0EtFSjxEotaZCcPxWezdBxjjHIrAZyjBU7F1NwTLMGfqWVOztOEZBvMyi32L5hoiZMcXn1AgXp41JAsHUYe1CG/IIfwo2ViAXSfvmz27dyMW2c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=HuneU+Pj2HR+WMqV9VT1eDQ25+Q87+cyoCD5jNb8jowlC1O9cn9M0L8sQcnS0cP6RQTlFreBB9n4SUa8jgvr4X2wz0+5Ewr7zzvQLbI0CYWQ0wO5spgQ3PGD7wdHPh1HdmaVm16/AQ0qeuzu+ILmfsRIeau5BPjpZJ2STtS+aww= Received: by 10.90.50.1 with SMTP id x1mr7320910agx.1183577148098; Wed, 04 Jul 2007 12:25:48 -0700 (PDT) Received: by 10.90.70.9 with HTTP; Wed, 4 Jul 2007 12:25:48 -0700 (PDT) Message-ID: Date: Wed, 4 Jul 2007 12:25:48 -0700 From: "Kevin Gerry" To: "Sam Leffler" In-Reply-To: MIME-Version: 1.0 References: <468488B3.7010607@errno.com> <46848C1E.2080404@errno.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-current@freebsd.org Subject: Re: Wireless NICs not obeying 'SSID' setting. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Jul 2007 19:25:49 -0000 Weird, one of the issues it appears I'm having is that when it's set to -bgscan and roaming device, the device will just get stuck on "no carrier" and not even attempt to reconnect to the AP it's assigned to. ral0: flags=8843 metric 0 mtu 1500 ether 00:16:b6:XX:XX:XX inet 192.168.3.99 netmask 0xffffff00 broadcast 192.168.3.255 media: IEEE 802.11 Wireless Ethernet autoselect (OFDM/54Mbps) status: no carrier ssid router channel 1 (2412 Mhz 11g) authmode OPEN privacy OFF txpowmax 100 bmiss 7 scanvalid 60 protmode CTS roaming DEVICE bintval 100 ath0: flags=8843 metric 0 mtu 1500 ether 00:13:46:XX:XX:XX media: IEEE 802.11 Wireless Ethernet autoselect (OFDM/36Mbps) status: no carrier ssid linksys channel 1 (2412 Mhz 11g) authmode OPEN privacy OFF txpowmax 36 bmiss 7 scanvalid 60 protmode CTS burst roaming DEVICE bintval 100 Now, if I ifconfig XXX0 down / up then, I'm associated with the APs instantly... Until another 2ish hour period then they're back to no carrier. Any ideas here? I'd point at the AP usually or the NIC... However, these are two different WLAN cards/chipset/brands and two different APs. On 6/30/07, Kevin Gerry wrote: > > Well, I attempted ifconfig ral0 -bgscan and that didn't help as it just > switched SSIDs on me... Attempting ifconfig ral0 roaming device now in hopes > that will work! =) > > Thanks for the assistance. > > On 6/28/07, Sam Leffler wrote: > > > > Sam Leffler wrote: > > > Kevin Gerry wrote: > > >> I've noticed that in a recent patch that when you set a NIC with > > ifconfig > > >> ath0 ssid "This One" that it won't always honor that and jump on the > > >> strongest one. > > >> > > >> Example: > > >> > > >> 3 WAPs: SSIDs WAP1, WAP2, WAP3 > > >> > > >> I have set ath0's ssid to "WAP2" and ral0's ssid to "WAP3". They both > > will > > >> honor the ssid setting for the first connection. However, after a few > > >> hours/etc the drivers both associate with WAP1. > > >> > > >> The settings to require the specific SSID are in > > >> /etc/start_if.ral0/start_if.ath0. There aren't any conflicting > > >> directives to > > >> force it to go blank and select a random AP. > > > > > > You're probably roaming. wlandebug roam will verify what's going on. > > > You can disable roaming several ways: > > > > > > ifconfig ral0 roaming device > > > > > > should do the trick (if you set it to manual then you won't do what > > you > > > want if your beacon is turned off). Alternatively you can do > > > > > > ifconfig ral0 -bgscan > > > > > > as roaming won't take place w/o bg scanning. > > > > If you are roaming you can also just fiddle with the roaming thresholds; > > e.g. roam:rssi11g and roam:rate11g. I haven't updated the man page > > for ifconfig for these yet; they are threshold settings that when > > crossed cause the system to consider roaming to a different ap. > > > > The handling of ssid changed when roaming went in; it's now a "desired > > ssid". That is, if the scan doesn't see an ap with the desired ssid > > then it'll associate to another ap if possible. Should the ap w/ the > > desired ssid re-appear and roaming is enabled then you'll switch over to > > > > it. There is also hysteresis to this algorithm so you don't just bounce > > around from one ap to another. > > > > Sam > > > >