OpenWrt Forum Archive

Topic: Wireless Client mode doesn't work with Tplink WR741ND

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.

Hello Everyone,

I am trying to configure TPLINK WR741ND to act as a wireless client(sta).
I have modified the config files to bridge wifi to WAN instead of LAN.
This config doesn't work for WR741ND but the same changes worked on Linksys WR160NL
Please help me to arrive at the right config or spot the error with the below config for Tplink WR741ND

cat /etc/config/network
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 eth1'
        option 'type' 'bridge'
        option 'proto' 'dhcp'

config 'switch_vlan'
        option 'device' 'eth0'
        option 'vlan' '1'
        option 'ports' '0 1 2 3 4'

config 'switch' 'eth0'
        option 'enable_vlan' '1'

config 'interface' 'wifi'
        option 'proto' 'dhcp'


-------------------------------------------
cat /etc/config/wireless

config wifi-device  radio0
        option type     mac80211
        #option channel  11
        option channel  1-14
        option country  DE
        option macaddr  74:EA:3A:CB:5D:4A
        option hwmode   11ng
        option htmode   HT20
        list ht_capab   SHORT-GI-40
        list ht_capab   DSSS_CCK-40
        #option disabled 1

config wifi-iface
        option device   radio0
        option network  wifi
        option mode     sta
        option ssid     SKsd
        option encryption psk2
        option key  xxxxx

what does iwconfig say ?

Hi philchetcuti,

I see the wlan0 not assoicated with the Access Point. I have double checked the authentication details to AP.
I am just wondering why this config is not working on Tplink WR741ND but works perfectly on Linksys WR160NL
Any help highly appreciated.

Thanks in Advance.

root@OpenWrt:~# iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

eth1      no wireless extensions.

br-lan    no wireless extensions.

wlan0     IEEE 802.11bgn  ESSID:off/any
          Mode:Managed  Access Point: Not-Associated   Tx-Power=20 dBm
          RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off

"1-14" is no valid channel, besides that is your AP really 11n? If not, change the hwmode to 11g. Finally is it indeed psk2? Maybe its psk1 with aes instead or some other unusual combination.

Hi Jow,

I have checked the AP configuration details and found it to be 802.11b/g interface with WPA-PSK encryption with version WPA+WPA2.
I did modify the wireless config file to reflect the correct channel number and hwmode to 11g with both encryption modes psk & psk2, but still doesn't work.
AP is the same even when I used the Linksys WR160NL which works very well out there.
Below are the scan results seen by wr741nd using iwlist scan command.
Also executing the command wifi manually reveals errors during bind() which is unable to recognize the device.

-------------------------------------------------------
wifi
Read error: Network is down, reopening socket
udhcpc: bind: No such device
udhcpc (v1.18.4) started
root@OpenWrt:~# Sending discover...
Sending discover...
Sending discover...

--------------------------------------------------------
iwlist scan

Cell 04 - Address: 00:24:17:84:58:0B
                    Channel:1
                    Frequency:2.412 GHz (Channel 1)
                    Quality=65/70  Signal level=-45 dBm
                    Encryption key:on
                    ESSID:"SKsd"
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s
                              24 Mb/s; 36 Mb/s; 54 Mb/s
                    Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 48 Mb/s
                    Mode:Master
                    Extra:tsf=00000000b3620226
                    Extra: Last beacon: 700ms ago
                    IE: Unknown: 0003534B31
                    IE: Unknown: 010882848B962430486C
                    IE: Unknown: 030101
                    IE: Unknown: 2A0106
                    IE: Unknown: 2F0106
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (2) : CCMP TKIP
                        Authentication Suites (1) : PSK
                    IE: Unknown: 32040C121860
                    IE: Unknown: 32040C121860
                    IE: Unknown: DD060010180205F0
                    IE: WPA Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (2) : CCMP TKIP

/etc/config/network

config 'interface' 'wan'
        option 'proto' 'dhcp'

/etc/config/wireless

config wifi-iface
        option device   radio0
        option network  wan
        option mode     sta
        option ssid     SKsd
        option encryption psk2
        option key  xxxxx

Routed Client - OpenWrt Wiki - Using MASQUERADE

Hi fyi, 

Thanks for the reply. As recommended, i have tried changing the configuration with MASQUERADE option as mentioned in the wiki
But the client device WR741ND is still unable to connect to AP
I believe there should be something additional configuration required for WR741ND.
Have you or anyone had tried previously configured MASQUERADE  on WR741ND?
Any help is highly appreciated.

Code:

cat /etc/config/network
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 eth1'
        option 'type' 'bridge'
        option 'proto' 'dhcp'

config 'switch_vlan'
        option 'device' 'eth0'
        option 'vlan' '1'
        option 'ports' '0 1 2 3 4'

config 'switch' 'eth0'
        option 'enable_vlan' '1'

config 'interface' 'wan'
        option 'proto' 'dhcp'

Code:

cat /etc/config/wireless

config wifi-device  radio0
        option type     mac80211
        option channel  1
        option country  DE
        option macaddr  74:EA:3A:CB:5D:4A
        option hwmode   11bg
        #option htmode   HT20
        #list ht_capab   SHORT-GI-40
        #list ht_capab   DSSS_CCK-40
        #option disabled 1

config wifi-iface
        option device   radio0
        option network  wan
        option mode     sta
        option ssid     SKsd
        option encryption psk2
        option key  xxxxxxx


Code:

ifup wan
Received SIGTERM
Entering released state
root@OpenWrt:~#
root@OpenWrt:~# wifi
udhcpc (v1.18.4) started
root@OpenWrt:~# Sending discover...
Sending discover...
Sending discover...

root@OpenWrt:~#
root@OpenWrt:~# iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

eth1      no wireless extensions.

br-lan    no wireless extensions.

wlan0     IEEE 802.11bgn  ESSID:off/any
          Mode:Managed  Access Point: Not-Associated   Tx-Power=20 dBm
          RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off

raghupv30 wrote:

wlan0     IEEE 802.11bgn  ESSID:off/any
          Mode:Managed  Access Point: Not-Associated   Tx-Power=20 dBm

Double check if you had installed "wpad-mini".

Install Backfire 10.03.1-rc4 or rc5 and try again.

Hi fyi,

wpad-mini wasn't installed on Tplink wr741-nd. After installing wpad-mini, the wireless client mode works!!!
Many Thanks for helping me out to get this work.

Thanks,
Raghu

hello

The discussion might have continued from here.