Selecting a specific AP MAC address in rc.inet1.conf
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
You can specify any additional iwconfig parameter not covered by the exposed keywords in rc.inet1.conf using the WLAN_IWCONFIG keyword:
For instance your "iwconfig ap y:xx:yy:xx:yy:xx" command would translate to the following line (assuming your wireless card uses index [4]):
Code:
WLAN_IWCONFIG[4]="ap y:xx:yy:xx:yy:xx"
Note: if you want to add more iwconfig settings, add all of them to the single WLAN_IWCONFIG line. Multiple WLAN_IWCONFIG lines in rc.inet1.conf are useless, because only the last one will be used.
In the default Slackware distribution, /etc/rc.d/rc.wireless.conf has examples of selecting an interface or range of interfaces by MAC address.
That is for selecting which internal wireless interface you would like to use I believe. I was looking to select a specific AP not interface.
Quote:
You can specify any additional iwconfig parameter not covered by the exposed keywords in rc.inet1.conf using the WLAN_IWCONFIG keyword:
For instance your "iwconfig ap y:xx:yy:xx:yy:xx" command would translate to the following line (assuming your wireless card uses index [4]):
Code:
WLAN_IWCONFIG[4]="ap y:xx:yy:xx:yy:xx"
Note: if you want to add more iwconfig settings, add all of them to the single WLAN_IWCONFIG line. Multiple WLAN_IWCONFIG lines in rc.inet1.conf are useless, because only the last one will be used.
Eric
Thanks that was exactly what I was looking for!
I was trying "WLAN_AP[4]=" assuming the iwconfig was implied automatically. This clears up my issues. Also the information about only 1 IWCONFIG line is extremely helpful.
I wish to to extend a wireless network with existing hardware. The available inventory includes various pci cards: rt2500's rt61's, a realtek and a broadcom; as well as several wireless routers. None of these pci cards (so far as I am aware) are capable of AP mode.
The anchor is an atheros pci card in master mode [stn1]. The primary client connection [stn2] is an rt61 with directional antenna.
Stn3 is a laptop and cannot be fitted with an external antenna, although antenna location is critical. Stn3 cannot see stn1, and can (almost) see but not connect with stn2.
My intention was to connect stn3 through one of the routers (to allow a sane user location), and configure stn2 with a second wireless card. Experience proves placing a wireless router too close to stn2 is a really bad idea.
To diverge slightly, I hoped a solution for this would hint at how I might provide discrete gateways for each network device via rc.inet1.conf
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.