From owner-freebsd-hackers@FreeBSD.ORG Wed Sep 3 18:50:38 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2DAD61065670; Wed, 3 Sep 2008 18:50:38 +0000 (UTC) (envelope-from gahr@FreeBSD.org) Received: from cpanel03.rubas-s03.net (cpanel03.rubas-s03.net [195.182.222.73]) by mx1.freebsd.org (Postfix) with ESMTP id B4CAE8FC12; Wed, 3 Sep 2008 18:50:37 +0000 (UTC) (envelope-from gahr@FreeBSD.org) Received: from [213.142.183.219] (helo=gahrtop.localhost) by cpanel03.rubas-s03.net with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.68) (envelope-from ) id 1KaxR6-0000p3-6l; Wed, 03 Sep 2008 20:50:36 +0200 Message-ID: <48BEDC46.7090502@FreeBSD.org> Date: Wed, 03 Sep 2008 20:49:42 +0200 From: Pietro Cerutti Organization: The FreeBSD Project User-Agent: Thunderbird 2.0.0.16 (X11/20080807) MIME-Version: 1.0 To: Sam Leffler References: <20080903113131.GA8697@rebelion.Sisis.de> <48BEA791.6030406@freebsd.org> <48BEB687.5050308@FreeBSD.org> <48BED635.5010100@freebsd.org> In-Reply-To: <48BED635.5010100@freebsd.org> X-Enigmail-Version: 0.95.6 OpenPGP: id=9571F78E; url=http://gahr.ch/pgp/ Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cpanel03.rubas-s03.net X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - FreeBSD.org X-Source: X-Source-Args: X-Source-Dir: Cc: freebsd-hackers@freebsd.org, Matthias Apitz Subject: Re: WPA && associating with unknown SSID X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Sep 2008 18:50:38 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Sam Leffler wrote: | Pietro Cerutti wrote: |> -----BEGIN PGP SIGNED MESSAGE----- |> Hash: SHA512 |> |> Sam Leffler wrote: |> | Matthias Apitz wrote: |> |> Hello, |> |> |> |> I'm using WPA to connect to my various Wifi AP's (office, home, |> partner |> |> locations) and have them well configured in the wpa_supplicant.conf(5) |> |> file; |> |> |> |> from time to time at home I encounter that it is associating with an |> |> unknown AP of my neighbourhood: |> |> |> |> |> |> # ifconfig iwi0 |> |> iwi0: flags=8843 metric 0 mtu |> |> 1500 |> |> ether 00:13:ce:a1:e6:81 |> |> inet 192.168.2.3 netmask 0xffffff00 broadcast 192.168.2.255 |> |> media: IEEE 802.11 Wireless Ethernet autoselect (DS/11Mbps) |> |> status: associated |> |> ssid o2DSL_kJaR channel 1 (2412 Mhz 11g) bssid |> 00:19:cb:86:b3:84 |> |> authmode OPEN privacy ON deftxkey 1 wepkey 1:40-bit bmiss 10 |> |> scanvalid 60 bgscan bgscanintvl 300 bgscanidle 250 |> roam:rssi11g 7 |> |> roam:rate11g 5 protmode CTS roaming MANUAL |> |> # ifconfig iwi0 list scan |> |> SSID BSSID CHAN RATE S:N INT CAPS |> |> o2DSL_kJaR 00:19:cb:86:b3:84 1 54M 19:0 100 EP |> |> xxxxxxxxxxxx 00:14:6c:44:aa:f6 11 54M 13:0 100 EP WPA |> |> |> |> the network with SSID 'o2DSL_kJaR' is not im my |> |> /etc/wpa_supplicant.conf; |> |> |> |> how this is possible and how can I prevent this? |> |> |> | You must have a wildcard entry in your wpa_supplicant.conf file (i.e. |> | one w/o an ssid specified). |> |> Not necessarily. If you bring up a wlan interface and don't specify |> anything, it will automatically associate with the first open AP it |> finds. |> |> I don't know if it's to be considered a feature or a bug. I've been |> worried by this sometimes, but honestly not enough to really care.. |> |> Anyway, it happens... |> | | He was talking about wpa_supplicant selecting an arbitrary AP. If you | have a device marked up then the system will handle ap selection+join | but if wpa_supplicant is running then it marks the interface in "manual | roaming mode" which stops that behaviour. What if you bring up a device with "WPA" in its rc.conf ifconfig line? | | Sam | - -- Pietro Cerutti gahr@FreeBSD.org PGP Public Key: http://gahr.ch/pgp -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEAREKAAYFAki+3EUACgkQwMJqmJVx944m6QCeK9yPcIjjHKx1b3sFDy0feHQd KCEAoJmUx9VEuKL/e+y69auTLhe8sei2 =TH4n -----END PGP SIGNATURE-----