Hopefully this is not a basic question. I come from a fairly technical background, but I'm weak in Linux specifics.
I just recently got my Pi, and I'm hoping to do several different projects. One of the first I wanted to get up was a Wireless-Wireless router. As a bit of (probably non-essential) background, I'm currently in Kuwait where our internet provider sets up a pay for internet system using web-based authentication. This is also MAC filtered. Both those qualities make it hard to connect certain devices (e.g. the XBox). So I thought routing that connection makes sense.
So far so good... I have two wireless cards. My desired set up is WLAN0 is the LAN interface, WLAN1 is the WAN interface. Following a variety of guides, I have this working consistently.
The problem is, if both of my wireless devices are plugged into the RPi at the time of boot, there is little consistency on which gets picked up for WLAN0 and WLAN1. I've tried plugging one wireless into the RPi, and the other in the hub, both in the hub, different plugs on the hub. USB is a black box to me, but the only thing I can think of, is perhaps one comes up a few milliseconds quicker or something. Ideally, it'd be nice to not be tied to something physically that affects the logical interface names anyway.
The problem of this of course is that my wireless cards require slightly different set ups for hostapd, etc. So when usb #2 comes up as WLAN0, it breaks hostapd which then breaks DHCP, UPNP, etc.
So here's the question... What's the best way to influence this? I tried changing the sym links for the devices - that didn't work. I thought about creating a script that creates a new /etc/network/interfaces, hostapd.conf, etc. but that seems kludgy.
Realize that this is probably a relatively unusual situation, appreciate any help you guys can give me