I'm having an issue with my OpenWRT router maintaining a wireless connection to an access point (a TimeCapsule) in client mode.
The hardware is RaspberryPi B and the wireless adapter is a RTL8192CU chipset, using the package kmod-rtl8192cu. I have this issue after a fresh install of the latest stable image.
After setting up via ethernet and installing the wireless device all works as expected with both interfaces having IPs and able to be pinged. A few minutes after unplugging the ethernet cable (and hoping to then rely on wireless access) the wireless connection seems to drop and the router is unreachable.
Any ideas why this is happening?
The wireless adapter is a RTL8192CU chipset, using the OpenWRT package.
My network config:
config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config interface 'lan'
option ifname 'eth0'
option proto 'static'
option gateway '192.168.2.1'
option dns '192.168.2.1'
option netmask '255.255.255.0'
option ipaddr '192.168.3.99'
config globals 'globals'
option ula_prefix 'fdf9:0cb5:747c::/48'
config interface 'wlan'
option proto 'static'
option ipaddr '192.168.2.100'
option gateway '192.168.2.1'
option dns '192.168.2.1'Notice the eht0 IP is switched to a differing subnet (following advice here: https://forum.openwrt.org/viewtopic.php?id=40928) following set up to prevent the wireless dropping instantly on unplugging the ethernet.
My wireless config:
config wifi-device 'radio0'
option type 'mac80211'
option hwmode '11g'
option path 'platform/bcm2708_usb/usb1/1-1/1-1.2/1-1.2.1/1-1.2.1:1.0'
option disabled '0'
option channel 'auto'
option txpower '20'
option country 'GB'
option htmode 'HT40'
option distance '10'
config wifi-iface
option network 'wlan'
option ssid 'BASESTATION'
option device 'radio0'
option mode 'sta'
option bssid 'XX:XX:XX:XX:XX:XX'
option key 'PASSWORD'
option encryption 'psk2'The idea is to have my Pi act as DHCP server and gateway using a USB 4G dongle, and connected to an existing TimeCapsule via wifi to provide external access to connected devices.
(Last edited by tristanc on 17 Jan 2015, 21:48)
