OpenWrt Forum Archive

Topic: ar71xx with actual trunk: No wifi at all

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

Hi,

I have a TP-Link TL-WR1043ND and a D-Link DIR825 and tried in the past few days both Backfire 10.3 RC and the precompiled Kamikaze trunk snapshot. No matter what I do, I can't get the wifi up and running.

After installation, there is no wifi at all. IIRC from my Linksys WRT54GL earlier, the default after installation is an unencrypted network named "OpenWrt".

With the ar71xx images, /etc/config/wireless is existent, but empty. So I inserted:

config wifi-device      "wifi0"
      option type         "atheros"
      option channel    "5"

config wifi-iface
      option device       "wifi0"
      option mode        "ap"
      option ssid           "OpenWrt"
      option hidden       "0"
      option encryption  "none"

After a reboot still no wifi network.

root@OpenWrt:~# wifi up
wifi0(atheros): Interface type not supported
wifi0(atheros): Interface type not supported

Is there anything else I can do?

TIA,
Calin

Wrong!

Install kmod-ath9k and:

rm /etc/config/wireless
wifi detect >  /etc/config/wireless

opkg update; opkg install kmod-ath9k
rm /etc/config/wireless
wifi detect >  /etc/config/wireless

smile

Dogge wrote:
opkg update; opkg install kmod-ath9k
rm /etc/config/wireless
wifi detect >  /etc/config/wireless

smile

Thank you. I installed kmod-ath9k, but no difference:

root@OpenWrt:~# opkg update
...
root@OpenWrt:~# opkg install kmod-ath9k
...
Configuring iw.
Configuring kmod-ath9k.
Configuring kmod-crypto-aes.
Configuring kmod-crypto-core.
Configuring kmod-mac80211.
Configuring kmod-ath.
Configuring wireless-tools.
Configuring kmod-crypto-arc4.
Configuring kmod-cfg80211.
root@OpenWrt:~# rm /etc/config/wireless
root@OpenWrt:~# wifi detect >  /etc/config/wireless
root@OpenWrt:~# wifi up
root@OpenWrt:~# vi /etc/config/wireless
config wifi-device     "wifi0"
      option type        "atheros"
      option channel   "5"

config wifi-iface
      option device     "wifi0"
      option mode      "ap"
      option ssid         "OpenWrt"
      option hidden     "0"
      option encryption "none"

root@OpenWrt:~# wifi up
wifi0(atheros): Interface type not supported
wifi0(atheros): Interface type not supported
root@OpenWrt:~# reboot
...
root@OpenWrt:~# wifi up
wifi0(atheros): Interface type not supported
wifi0(atheros): Interface type not supported
root@OpenWrt:~#

first, you probably need to reboot after installing ath9k
then, you will probably also want to install wpad-mini
your /etc/config/wireless should contain :
         option 'type' 'mac80211'

Yeah, does not look a correct standard /etc/config/wireless configuration file for ath9k...

zorxd wrote:

first, you probably need to reboot after installing ath9k
then, you will probably also want to install wpad-mini
your /etc/config/wireless should contain :
         option 'type' 'mac80211'

Sorry, it still does not come up, but the error message has changed, though:

root@OpenWrt:~# opkg update
root@OpenWrt:~# opkg install wpad-mini
...
Configuring wpad-mini.
Configuring crda.
root@OpenWrt:~# reboot
...
root@OpenWrt:~# vi /etc/config/wireless
config wifi-device  radio0
        option type         "mac80211"
        option channel    "5"
        option hwmode   "11ng"

config wifi-iface
        option device      "radio0"
        option network    "lan"
        option mode        "ap"
        option ssid           "OpenWrt"
        option encryption "none"

root@OpenWrt:~# reboot
...
root@OpenWrt:~# wifi up
PHY for wifi device radio0 not found
PHY for wifi device radio0 not found

The same is true if I replace "radio0" with "wifi0":

root@OpenWrt:~# wifi up
PHY for wifi device wifi0 not found
PHY for wifi device wifi0 not found

Regards,
Calin

make sure you add regulatory domain to wifi config.

@7Xqb0cV86ZGMCGVv: it is not configuration generated from ath9k. should be something like

    config wifi-device  radio0
        option type mac80211
        option channel 5
        option macaddr 00:27:19:xx:xx:xx
        option hwmode 11ng
        option htmode HT20
        list ht_capab SHORT-GI-40
        list ht_capab DSSS_CCK-40
        # REMOVE THIS LINE TO ENABLE WIFI:
        option disabled 1

    config wifi-iface
        option device radio0
        option network lan
        option mode ap
        option ssid OpenWrt
        option encryption none
obsy wrote:

@7Xqb0cV86ZGMCGVv: it is not configuration generated from ath9k. should be something like
...

Yes, you are right. Thank you very much! Now it works. I'll try Backfire 10.3 RC next. :-)

In fact, it WAS the generated output of "wifi detect", I just took out the options "hwmode", "htmode" and "ht_capab" (I don't even know the effect of the last 2) in order to get a minimalistic configuration. Now I put in the complete output and it works, so thanks again.

Regards,
Calin

I think your problem was that you ran wifi detect before ath9k was loaded.

zorxd wrote:

I think your problem was that you ran wifi detect before ath9k was loaded.

Ah, ok, I understand.

Now I installed Backfire RC. Wifi works so far, but with option type "mac80211" instead of "atheros" it is not possible to configure multiple wifis, is it? radio0 works, but the radio1 section of /etc/config/wireless is ignored. But I understand that the wifi chip is Atheros? Confusing...

Regards,
Calin

7Xqb0cV86ZGMCGVv wrote:

Now I installed Backfire RC. Wifi works so far, but with option type "mac80211" instead of "atheros" it is not possible to configure multiple wifis, is it? radio0 works, but the radio1 section of /etc/config/wireless is ignored. But I understand that the wifi chip is Atheros? Confusing...

Now it works with multiple networks. It was my mistake, after all testing, trial and error I confused the TP-Link with D-Link and tried to define radio0 and radio1 with the TP-Link, which has only one hardware radio inside.

Thanks to everybody for your help!

Hi,

Thanks for information, my wr941nd feel complete now.

Just for information.

If you using LUcI, just install ath9k and minipad, then go to wifi tab in web config, the config will be there.


Good Luck.


Jr

Junior.robert wrote:

Hi,

Thanks for information, my wr941nd feel complete now.

Just for information.

If you using LUcI, just install ath9k and minipad, then go to wifi tab in web config, the config will be there.


Good Luck.


Jr

hi , I have the same question, mine is OpenWrt Backfire 10.03,Linux OpenWrt 2.6.32.2 and the platform is mini2440 with wireless card d-link dwa140.
The wireless card is working well, but if I use command# wifi detect > /etc/config/wireless
                                                                           there is noting reflect and the wireless is empty.

what should I do?

(Last edited by LeeRH on 15 Mar 2011, 02:57)

obsy wrote:

@7Xqb0cV86ZGMCGVv: it is not configuration generated from ath9k. should be something like

    config wifi-device  radio0
        option type mac80211
        option channel 5
        option macaddr 00:27:19:xx:xx:xx
        option hwmode 11ng
        option htmode HT20
        list ht_capab SHORT-GI-40
        list ht_capab DSSS_CCK-40
        # REMOVE THIS LINE TO ENABLE WIFI:
        option disabled 1

    config wifi-iface
        option device radio0
        option network lan
        option mode ap
        option ssid OpenWrt
        option encryption none

hi , I have the same question, mine is OpenWrt Backfire 10.03,Linux OpenWrt 2.6.32.2 and the platform is mini2440 with wireless card d-link dwa140.
The wireless card is working well, but if I use command# wifi detect > /etc/config/wireless
                                                                           there is noting reflect and the wireless is empty.

what should I do?

And there is another question, in luci-->network-->wifi, it is nothing here, like this:
http://s7.sinaimg.cn/middle/6c87920649e6b0f16ef96&690

The discussion might have continued from here.