OpenWrt Forum Archive

Topic: Selecting a AP to client mode onto based on BSSID

The content of this topic has been archived on 15 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I have multiple AP's around me with the same SSID.  But I only want to connect to one that has a particular BSSID.  Everytime I add the option bssid 'XXXXXXXXXX' it just ignores it and connects to the SSID of the most powerful AP.

My kernal is 2.6.22.1 (running legends pre4.5)

My /etc/config/wireless :

config wifi-iface
        option device   wifi0
        option network  wan
        option mode     sta



        option ssid     SSIDHERE
        option bssid    'FF:FF:FF:FF:FF:FF'
        option nosbeacon 1
        option hidden   0
        option txpower  18
#       option bgscan   0
        option encryption       none
        #ENCRYKEY
        #WEPKEYONE
        #WEPKEYTWO
        #WEPKEYTHREE
        #WEPKEYFOUR
        #RADIUSADDR
  #RADIUSPORT

This was in the docs for wireless (http://downloads.openwrt.org/kamikaze/d … 110001.2.2)

Options for the wifi-iface:

    * network
      Selects the interface section from /etc/config/network to be used with this interface
    * device
      Set the wifi device name.
    * mode
      Operating mode:
          o ap
            Access point mode
          o sta
            Client mode
          o adhoc
            Ad-Hoc mode
          o wds
            WDS point-to-point link 
    * ssid Set the SSID to be used on the wifi device.
    * bssid Set the BSSID address to be used for wds to set the mac address of the other wds unit.

Does that mean you can't use option bssid with client mode?  I don't want to create a WDS link.

Anyone have any info on this?  I still have no idea what to do. :\

thanks to some help in the dd-wrt forums i figured out a solution.

iwconfig ath0 ap {mac here}

The discussion might have continued from here.