I'm not sure if I phrased the question correctly, so sorry for any confusion there.
I have two routers. Routers are too far apart to connect them to each other using a cable.
First is connected to Interent and has a single wlan interface. All devices on the LAN connect to it via WiFi.
Second one has two wlan interfaces and no Internet connection.
Here is a diagram made by Cont7e that describes what I want to achieve (thanks!):
Windows 7 PC connects to the first one via WiFi, and to the second via Ethernet port. Another device connects to second router using Ethernet for now because I cannot get its WiFi working.
I want to connect the second device to Internet somehow.
I have installed a minimal OpenWRT install on the second router (not that I have any experience using it), and tried configuring the router to put one of the wlan interfaces into managed mode by editing its wireless configuration like so:
config wifi-device 'radio0'
option type 'mac80211'
option channel '11'
option hwmode '11g'
option path 'platform/ar934x_wmac'
option htmode 'HT20'
option disabled '0'
config wifi-iface
option device 'radio0'
option network 'wan' <--- tried both 'wan' and 'lan'
option mode 'sta' <--- changed to 'sta'
option encryption 'psk2' <--- encryption mode on other router
option ssid 'SSID' <--- other router's SSID
option key 'KEY' <--- other router's key
This did not produce the result I expected.
Is what I'm trying generally a good approach? How do I make this work?
EDIT: Added diagram kindly provided by Cont7e