OpenWrt Forum Archive

Topic: TL-WR703N No Wifi

The content of this topic has been archived on 21 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hello all,

I'm having trouble getting wifi to work on my TL-WR703N v1.6 with both the latest trunk (r34303) and with the Attitude Adjustment images from the wiki page, version 12.09beta.

iw dev prints nothing. wifi detect prints nothing. ifconfig -a only lists eth0, br-lan, and lo.

In the dmesg, you can see

[    8.230000] ath: EEPROM regdomain: 0x0
[    8.230000] ath: EEPROM indicates default country code should be used
[    8.230000] ath: doing EEPROM country->regdmn map search
[    8.230000] ath: country maps to regdmn code: 0x3a
[    8.230000] ath: Country alpha2 being used: US
[    8.230000] ath: Regpair used: 0x3a
[    8.240000] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[    8.240000] Registered led device: ath9k-phy0
[    8.240000] ieee80211 phy0: Atheros AR9330 Rev:1 mem=0xb8100000, irq=2
[    8.250000] cfg80211: Calling CRDA for country: US
[    8.250000] cfg80211: Regulatory domain changed to country: US
[    8.260000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[    8.260000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2700 mBm)
[    8.270000] cfg80211:   (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 1700 mBm)
[    8.280000] cfg80211:   (5250000 KHz - 5330000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[    8.290000] cfg80211:   (5490000 KHz - 5600000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[    8.300000] cfg80211:   (5650000 KHz - 5710000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[    8.300000] cfg80211:   (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 3000 mBm)

which would seem to indicate that the hardware is working. But I still get no wifi.

dmesg: https://p.6core.net/p/ry1o16kn1169ski
.config: https://p.6core.net/p/8h2p1c4etoh32su
lsmod: https://p.6core.net/p/owqq7g79v3ga14nj

What am I doing wrong?

/etc/config/wireless ?

What is your wifi config ?

Be reminded that, wifi is "disabled" after fresh flashed.
Do you know that ?

Wifi is disabled by default, in the "/etc/config/wireless" file, you have to remove the "option disabled '1'" to get the wlan0 device to appear.

Can someone tell us why this is enforced like this by default?

For a wireless router, this is a weird choice roll

Alright, so enabling wifi there makes it work with OpenWRT's wireless. I suppose there's more going on behind the scenes here that I don't understand. I'm quite familiar with linux (Arch, Ubuntu, Fedora, Debian, Android, etc) so I was hoping to use the standard linux tools (iw, wpa_supplicant, ifconfig, etc) to configure my wifi. I can probably make it all work with OpenWRT's specific scripts though. Thanks for the help.

Yes it has standard linux tools,
but no matter how familiar you are, take a look into the config files take a look inside /etc

Perhaps you don't like text editing,
so you have to read the online documentations.
There is a tool named UCI can config everything inside openwrt.
Every linux distribution also has their own standard tools.

Squonk wrote:

Wifi is disabled by default, in the "/etc/config/wireless" file, you have to remove the "option disabled '1'" to get the wlan0 device to appear.

Can someone tell us why this is enforced like this by default?

For a wireless router, this is a weird choice roll

You can call it, security reason.
Why it is weird ?

My neighbor use dd-wrt, no any setup is needed !
default, ssid - dd-wrt, open, no password, webui no password, no security all at.
I can connect it, use their internet, and also login into the webui.
Is it weird ?  or you think that is good !?
Good ! Of Coz !XDD

johan666 wrote:
Squonk wrote:

Wifi is disabled by default, in the "/etc/config/wireless" file, you have to remove the "option disabled '1'" to get the wlan0 device to appear.

Can someone tell us why this is enforced like this by default?

For a wireless router, this is a weird choice roll

You can call it, security reason.
Why it is weird ?

My neighbor use dd-wrt, no any setup is needed !
default, ssid - dd-wrt, open, no password, webui no password, no security all at.
I can connect it, use their internet, and also login into the webui.
Is it weird ?  or you think that is good !?
Good ! Of Coz !XDD

Most wireless routers provide a default wireless AP without protection as a default setup, with wizards to help you define your network, so this is only used for initial setup.

Of course, as people tend to be lazy, it is not a good thing to promote a wide open wireless network, so there should be a strong emphasis to set up a secure wireless network, maybe enforcing it, just like the telnet/ssh switch for Shell access tongue

Maybe refusing to mount the rootfs r/w until you have configured it to a secured wireless setup?

There could be too a default AP in OpenWrt, set up once at firstboot, with SSID based on MAC address, without any protection, that you are required to configure (not necessarily using a wizard, this can be a command line tool, too)...

You just connect to the "OpenWrt_xxyyzz" SSID wireless network, get a DHCP address assigned to you, connect to 192.168.1.1 and setup wireless as you wish... Once done, this setup is no longer used, unless you do a "firstboot".

This would make OpenWrt look much easier to install for a novice, as it doesn't require an Ethernet cable any longer and doesn't look so weird compared to commercial products,as people tend to expect a wireless router to provide a wireless network by default...

(Last edited by Squonk on 23 Nov 2012, 22:53)

i disagree because writing wifi wizard into firmware would take space and default SSID would reveal firmware kind so no good either.
The way is now is perfect and newbies should be rather trained  to read wikis.

etan wrote:

i disagree because writing wifi wizard into firmware would take space and default SSID would reveal firmware kind so no good either.
The way is now is perfect and newbies should be rather trained  to read wikis.

No, it doesn't take a lot of space: only a few hundred bytes total.

As for the SSID, it will show up only during initial install, but is removed afterwards, unless you do a  "firstboot" to reset config.

I implemented this in an OpenWrt-based firmware specialized for working with an Arduino board attached to a TL-WR703N or TL-MR3020 wireless router USB port.

See this video demonstrating a wireless install from the stock TP-Link Chinese firmare here:
http://www.youtube.com/watch?v=CciDQYxL-oU

Anyway, somebody think wireless disabled by default is weird.
That's really weird XDD

johan666 wrote:

Anyway, somebody think wireless disabled by default is weird.
That's really weird XDD

For a coffee machine, no, for a wireless router: yes tongue

Although you shouldn't leave a wireless network wide open, having a default one during install, then removing it during normal operation like telnet could be nice: no Ethernet cable required!

Actually I really like people using Plugn'Play
big_smile

The discussion might have continued from here.