Real-Flashman
Posts: 6
Joined: Fri May 31, 2013 10:06 am

Raspberry Pi connect's to more distantly WiFi-AP

Wed Nov 06, 2013 1:48 pm

How do I get the Raspberry to only connect to one access point with a specific "BSSID" (MAC address) [?] , as there are multiple access points with the same SSID, but I want to prevent that it simply connects to a weaker signal than the one to which he really should only ever connect.


Thx in advance.
Jens

SirLagz
Posts: 1705
Joined: Mon Feb 20, 2012 8:53 am
Location: Perth, Australia
Contact: Website

Re: Raspberry Pi connect's to more distantly WiFi-AP

Thu Nov 07, 2013 8:29 am

Knowing what distribution you're using would help, but I'm going to guess you're using Raspbian.

How are you currently configuring your WiFi ?
My Blog - http://www.sirlagz.net
Visit my blog for Tips, Tricks, Guides and More !
WiFi Issues ? Have a look at this post ! http://www.raspberrypi.org/phpBB3/viewtopic.php?f=28&t=44044

Real-Flashman
Posts: 6
Joined: Fri May 31, 2013 10:06 am

Re: Raspberry Pi connect's to more distantly WiFi-AP

Thu Nov 07, 2013 4:20 pm

Hi, yes im using Raspbian, version 3.6.11+

Wifi is configured via /etc/network/interfaces-File:

Code: Select all

auto lo

iface lo inet loopback
iface eth0 inet dhcp

allow-hotplug wlan0
auto wlan0
iface wlan0 inet dhcp
wpa-conf /etc/wpa.config
iface default inet dhcp

/etc/wpa.config-File has this content:

Code: Select all

network={
ssid="SSIDofServeralAccessPoints"
proto=RSN WPA
key_mgmt=WPA-PSK
pairwise=CCMP
group=CCMP
psk="GlobalPasswordOfTheSSIDNetwork"
}

More isn't configured up to the present.

SirLagz
Posts: 1705
Joined: Mon Feb 20, 2012 8:53 am
Location: Perth, Australia
Contact: Website

Re: Raspberry Pi connect's to more distantly WiFi-AP

Fri Nov 08, 2013 1:46 am

just add this line into wpa.conf after ssid

bssid=00:11:22:33:44:55

So end result should look like this

Code: Select all

network={
ssid="SSIDofServeralAccessPoints"
bssid=00:11:22:33:44:55
proto=RSN WPA
key_mgmt=WPA-PSK
pairwise=CCMP
group=CCMP
psk="GlobalPasswordOfTheSSIDNetwork"
}
My Blog - http://www.sirlagz.net
Visit my blog for Tips, Tricks, Guides and More !
WiFi Issues ? Have a look at this post ! http://www.raspberrypi.org/phpBB3/viewtopic.php?f=28&t=44044

Real-Flashman
Posts: 6
Joined: Fri May 31, 2013 10:06 am

Re: Raspberry Pi connect's to more distantly WiFi-AP

Fri Nov 08, 2013 8:10 am

Superb!! ..it works :-D

plentiful thanks

Return to “Networking and servers”