OpenWrt Forum Archive

Topic: 11a mode

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

Good morning,

I use a router station PRO with OpenWRT Backfire 10.03.1 and LuCI 0.10.0
In LuCI - > Network -> Wifi -> Wireless Overview if I edit an interface I always have channels from 1 to 11, so I don't have channels of 11a hwmode.
Why?

RS Pro is just a board - up to my knowledge without any own radio capabilities. What Mini-Pci-Wlan-Cards did you install?
What output would "lspci" produce, if you are connected via shell?

If the installed card you are referring to is indeed capable of 802.11a, you should check, if the wireless mode is set to either "auto", "a", or "a+n", if available.
If the settings are correct, you will see the corresponding channels. If not, check your country/regdomain settings. OpenWRT builds tend to be rather restrictive in concerns of that matter.
Look for similar threads related to self-signed regulatory files in this forum.

Hi,
I use mini pci card ubiquiti which run very well with Kamikaze in another board.
In a board with Backfire in device configuration I haven't 5GHZ channels, also if I set in /etc/config/wireless : hwmode = a
I suppose that there is a problem because if I type "ifconfig" in console I don' t see wifi0 like others interfaces, why?
Maybe I must enable something from console?
Thanks

I am still missing the output of the lspci command run from your actual openwrt device. You can also try to do "cat /proc/bus/devices" and post the output. The 8 byte code is the manufacturer-id and pci-id. It would really help to know what we are up to.

First make sure, that you have the correct modules for your card installed. Is it ath5k, ath9k or madwifi?
What does "lsmod" say?
What does  your /etc/config/wireless look like?

If your device is not listed by ifconfig, try ifconfig -a

You may try:
"iw reg get"
"iwlist wlan0 chan"

You may also create your wireless configuration (make a backup before that then "wifi detect >/etc/config/wireless"), check values again, make sure there is no remaining "disabled" option, if everything seems to be correct and run wifi from the console.

Check, if everything is well by executing "logread".

If your regulatory settings are wrong or misconfigured, you won't be able to tune to those "illegal" channels. If you are absolutely sure that those channels are wrongfully disabled, you may try to create a self signed regdb. There are other options to accomplish that too, but let's first stick to the least invasive methods.

BTW: a lot of helpful debugging info is to be found in http://wiki.openwrt.org/doc/uci/wireles … figuration and the following sections.

After solving that problem, we are expected to make a howto out of this conversation.

(Last edited by epek on 16 Jan 2012, 19:45)

Thank you epek for your help.
I hope I can try tomorrow all that.
Bye

Hi,
I've done some tests o my board and these are the results:

1)There is not lspci command

2)In /proc/bus/pci/devices there aren't athx pci devices

3)There is not athx interfaces in ifconfig output

4)There is not wlanconfig command !!!

5)Here is lsmod output:

Module                  Size  Used by    Not tainted
ohci_hcd               16912  0
nf_nat_tftp              432  0
nf_conntrack_tftp       2400  1 nf_nat_tftp
nf_nat_irc               816  0
nf_conntrack_irc        2512  1 nf_nat_irc
nf_nat_ftp              1328  0
nf_conntrack_ftp        4640  1 nf_nat_ftp
ipt_MASQUERADE           992  1
iptable_nat             2768  1
nf_nat                 10912  5 nf_nat_tftp,nf_nat_irc,nf_nat_ftp,ipt_MASQUERADE,iptable_nat
xt_NOTRACK               544  0
iptable_raw              656  1
xt_state                 768  3
nf_conntrack_ipv4       7920  6 iptable_nat,nf_nat
nf_defrag_ipv4           624  1 nf_conntrack_ipv4
nf_conntrack           38848 12 nf_nat_tftp,nf_conntrack_tftp,nf_nat_irc,nf_conntrack_irc,nf_nat_ftp,nf_conntrack_ftp,ipt_MASQUERADE,iptable_nat,nf_nat,xt_NOTRACK,xt_state,nf_conntrack_ipv4
ehci_hcd               31456  0
pppoe                   8304  0
pppox                   1216  1 pppoe
ipt_REJECT              1680  2
xt_TCPMSS               2560  0
ipt_LOG                 4176  0
xt_comment               464  0
xt_multiport            1792  0
xt_mac                   576  0
xt_limit                1008  1
iptable_mangle           992  1
iptable_filter           768  1
ip_tables               8544  4 iptable_nat,iptable_raw,iptable_mangle,iptable_filter
xt_tcpudp               1760  3
x_tables                9296 13 ipt_MASQUERADE,iptable_nat,xt_NOTRACK,xt_state,ipt_REJECT,xt_TCPMSS,ipt_LOG,xt_comment,xt_multiport,xt_mac,xt_limit,ip_tables,xt_tcpudp
ppp_async               6400  0
ppp_generic            18864  3 pppoe,pppox,ppp_async
slhc                    4160  1 ppp_generic
ath9k                  86656  0
ath9k_common            1200  1 ath9k
ath9k_hw              338384  2 ath9k,ath9k_common
ath                    14160  3 ath9k,ath9k_common,ath9k_hw
mac80211              229696  1 ath9k
usbcore                97616  3 ohci_hcd,ehci_hcd
nls_base                4800  1 usbcore
crc_ccitt                976  1 ppp_async
cfg80211              139760  3 ath9k,ath,mac80211
compat                 16496  3 ath9k,mac80211,cfg80211
arc4                     816  0
aes_generic            30256  0
deflate                 1360  0
ecb                     1328  0
cbc                     2016  0
leds_gpio               1456  0
button_hotplug          2576  0
gpio_buttons            2128  0
input_polldev           1360  1 gpio_buttons
input_core             17056  4 button_hotplug,gpio_buttons,input_polldev

6)Here is logread output:

Jan 16 16:55:00 OpenWrt syslog.info syslogd started: BusyBox v1.15.3
Jan 16 16:55:00 OpenWrt user.info kernel: NET: Registered protocol family 17
Jan 16 16:55:00 OpenWrt user.info kernel: 802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
Jan 16 16:55:00 OpenWrt user.info kernel: All bugs added by David S. Miller <davem@redhat.com>
Jan 16 16:55:00 OpenWrt user.warn kernel: VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
Jan 16 16:55:00 OpenWrt user.info kernel: Freeing unused kernel memory: 152k freed
Jan 16 16:55:00 OpenWrt user.warn kernel: Please be patient, while OpenWrt loads ...
Jan 16 16:55:00 OpenWrt user.info kernel: input: gpio-buttons as /devices/platform/gpio-buttons/input/input0
Jan 16 16:55:00 OpenWrt user.info kernel: Button Hotplug driver version 0.3.1
Jan 16 16:55:00 OpenWrt user.info kernel: Registered led device: ubnt:green:rf
Jan 16 16:55:00 OpenWrt user.info kernel: mini_fo: using base directory: /
Jan 16 16:55:00 OpenWrt user.info kernel: mini_fo: using storage directory: /overlay
Jan 16 16:55:00 OpenWrt user.notice ifup: Enabling Router Solicitations on loopback (lo)
Jan 16 16:55:00 OpenWrt user.info sysinit: udhcpc (v1.15.3) started
Jan 16 16:55:00 OpenWrt user.info kernel: device eth1 entered promiscuous mode
Jan 16 16:55:01 OpenWrt user.info kernel: Compat-wireless backport release: compat-wireless-2011-11-08-1-g4ab9b62
Jan 16 16:55:01 OpenWrt user.info kernel: Backport based on wireless-testing.git master-2011-11-15
Jan 16 16:55:01 OpenWrt user.info sysinit: Sending discover...
Jan 16 16:55:01 OpenWrt user.info kernel: cfg80211: Calling CRDA to update world regulatory domain
Jan 16 16:55:01 OpenWrt user.info kernel: usbcore: registered new interface driver usbfs
Jan 16 16:55:01 OpenWrt user.info kernel: usbcore: registered new interface driver hub
Jan 16 16:55:01 OpenWrt user.debug kernel: ar71xx: pll_reg 0xb8050014: 0x110000
Jan 16 16:55:01 OpenWrt user.info kernel: eth1: link up (1000Mbps/Full duplex)
Jan 16 16:55:01 OpenWrt user.info kernel: br-lan: port 1(eth1) entering forwarding state
Jan 16 16:55:01 OpenWrt user.info kernel: usbcore: registered new device driver usb
Jan 16 16:55:02 OpenWrt user.notice ifup: Enabling Router Solicitations on lan (br-lan)
Jan 16 16:55:02 OpenWrt user.info kernel: cfg80211: World regulatory domain updated:
Jan 16 16:55:02 OpenWrt user.info kernel: cfg80211:     (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
Jan 16 16:55:02 OpenWrt user.info kernel: cfg80211:     (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
Jan 16 16:55:02 OpenWrt user.info kernel: cfg80211:     (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
Jan 16 16:55:02 OpenWrt user.info kernel: cfg80211:     (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
Jan 16 16:55:02 OpenWrt user.info kernel: cfg80211:     (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
Jan 16 16:55:02 OpenWrt user.info kernel: cfg80211:     (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
Jan 16 16:55:03 OpenWrt user.info kernel: PPP generic driver version 2.4.2
Jan 16 16:55:03 OpenWrt user.info kernel: ip_tables: (C) 2000-2006 Netfilter Core Team
Jan 16 16:55:03 OpenWrt user.info kernel: NET: Registered protocol family 24
Jan 16 16:55:03 OpenWrt user.info kernel: ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
Jan 16 16:55:03 OpenWrt user.info kernel: ar71xx-ehci ar71xx-ehci: Atheros AR71xx built-in EHCI controller
Jan 16 16:55:03 OpenWrt user.info kernel: ar71xx-ehci ar71xx-ehci: new USB bus registered, assigned bus number 1
Jan 16 16:55:03 OpenWrt user.info kernel: ar71xx-ehci ar71xx-ehci: irq 3, io mem 0x1b000000
Jan 16 16:55:03 OpenWrt user.info kernel: ar71xx-ehci ar71xx-ehci: USB 2.0 started, EHCI 1.00
Jan 16 16:55:03 OpenWrt user.info kernel: usb usb1: configuration #1 chosen from 1 choice
Jan 16 16:55:03 OpenWrt user.info kernel: hub 1-0:1.0: USB hub found
Jan 16 16:55:03 OpenWrt user.info kernel: hub 1-0:1.0: 2 ports detected
Jan 16 16:55:04 OpenWrt user.warn kernel: nf_conntrack version 0.5.0 (1982 buckets, 7928 max)
Jan 16 16:55:04 OpenWrt user.warn kernel: CONFIG_NF_CT_ACCT is deprecated and will be removed soon. Please use
Jan 16 16:55:04 OpenWrt user.warn kernel: nf_conntrack.acct=1 kernel parameter, acct=1 nf_conntrack module option or
Jan 16 16:55:04 OpenWrt user.warn kernel: sysctl net.netfilter.nf_conntrack_acct=1 to enable it.
Jan 16 16:55:04 OpenWrt user.info kernel: usb 1-2: new high speed USB device using ar71xx-ehci and address 2
Jan 16 16:55:04 OpenWrt user.info kernel: ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
Jan 16 16:55:04 OpenWrt user.info kernel: ar71xx-ohci ar71xx-ohci: Atheros AR71xx built-in OHCI controller
Jan 16 16:55:04 OpenWrt user.info kernel: ar71xx-ohci ar71xx-ohci: new USB bus registered, assigned bus number 2
Jan 16 16:55:04 OpenWrt user.info kernel: ar71xx-ohci ar71xx-ohci: irq 14, io mem 0x1c000000
Jan 16 16:55:04 OpenWrt user.info kernel: usb 1-2: configuration #1 chosen from 1 choice
Jan 16 16:55:04 OpenWrt user.info kernel: usb usb2: configuration #1 chosen from 1 choice
Jan 16 16:55:04 OpenWrt user.info kernel: hub 2-0:1.0: USB hub found
Jan 16 16:55:04 OpenWrt user.info kernel: hub 2-0:1.0: 2 ports detected
Jan 16 16:55:04 OpenWrt user.info sysinit: Sending discover...
Jan 16 16:55:06 OpenWrt user.info sysinit: wifi0(atheros): Interface type not supported
Jan 16 16:55:06 OpenWrt user.info sysinit: wifi0(atheros): Interface type not supported
Jan 16 16:55:06 OpenWrt user.info sysinit: Loading defaults
Jan 16 16:55:06 OpenWrt user.info sysinit: Loading synflood protection
Jan 16 16:55:07 OpenWrt user.info sysinit: Adding custom chains
Jan 16 16:55:07 OpenWrt user.info sysinit: Loading zones
Jan 16 16:55:07 OpenWrt user.info sysinit: Sending discover...
Jan 16 16:55:07 OpenWrt user.info sysinit: Loading forwardings
Jan 16 16:55:07 OpenWrt user.info sysinit: Loading redirects
Jan 16 16:55:07 OpenWrt user.info sysinit: Loading rules
Jan 16 16:55:07 OpenWrt user.info sysinit: Loading includes
Jan 16 16:55:07 OpenWrt user.info sysinit: Optimizing conntrack
Jan 16 16:55:07 OpenWrt user.info sysinit: Loading interfaces
Jan 16 16:55:07 OpenWrt user.info firewall: adding lan (br-lan) to zone lan
Jan 16 16:55:08 OpenWrt authpriv.info dropbear[867]: Running in background
Jan 16 16:55:08 OpenWrt user.notice dnsmasq: DNS rebinding protection is active, will discard upstream RFC1918 responses!
Jan 16 16:55:08 OpenWrt user.notice dnsmasq: Allowing 127.0.0.0/8 responses
Jan 16 16:55:08 OpenWrt user.notice dnsmasq: found already running DHCP-server on interface 'br-lan' refusing to start, use 'option force 1' to override
Jan 16 16:55:08 OpenWrt daemon.info dnsmasq[898]: started, version 2.55 cachesize 150
Jan 16 16:55:08 OpenWrt daemon.info dnsmasq[898]: compile time options: IPv6 GNU-getopt no-DBus no-I18N DHCP TFTP
Jan 16 16:55:08 OpenWrt daemon.info dnsmasq[898]: using local addresses only for domain lan
Jan 16 16:55:08 OpenWrt daemon.info dnsmasq[898]: reading /tmp/resolv.conf.auto
Jan 16 16:55:08 OpenWrt daemon.info dnsmasq[898]: using nameserver 212.216.112.112#53
Jan 16 16:55:08 OpenWrt daemon.info dnsmasq[898]: using local addresses only for domain lan
Jan 16 16:55:08 OpenWrt daemon.info dnsmasq[898]: read /etc/hosts - 1 addresses
Jan 16 16:55:08 OpenWrt user.debug kernel: ar71xx-wdt: enabling watchdog timer
Jan 16 16:55:12 OpenWrt daemon.info init: starting pid 301, tty '/dev/ttyS0': '/bin/ash --login'

7)Here is iw reg get output:

country 00:
    (2402 - 2472 @ 40), (3, 20)
    (2457 - 2482 @ 20), (3, 20), PASSIVE-SCAN, NO-IBSS
    (2474 - 2494 @ 20), (3, 20), NO-OFDM, PASSIVE-SCAN, NO-IBSS
    (5170 - 5250 @ 40), (3, 20), PASSIVE-SCAN, NO-IBSS
    (5735 - 5835 @ 40), (3, 20), PASSIVE-SCAN, NO-IBSS

I suppose that Backfire default configuration don't set any wlan configuration and needs to upload some utlities (such as wlanconfig) for work.

Probably it must be done an upgrade?

Thank you!

Backfire final just does not ship with madwifi for ar71xx anymore.
The fix is easy:

opkg update
opkg install kmod-madwifi
reboot

Ok, I've done it.

But now if I try : wlanconfig ath0 create wlandev wifi0 wlanmode ap

the answer is : ath0 no shuch device

errata corrige:

wlanconfig: ioctl: no such device

Use /etc/config/wireless to setup the wifi.

As suggested before, after installing the relevant drivers you can always try to recreate the wlan config by autodetection. wifi detect >/etc/config/wireless. This will not always work, but may help in many cases. Make a backup of your /etc/config/wireless before that.

Jan 16 16:55:06 OpenWrt user.info sysinit: wifi0(atheros): Interface type not supported
Jan 16 16:55:06 OpenWrt user.info sysinit: wifi0(atheros): Interface type not supported

As jow indicated: look for wifi0...  your config seems to look for this madwifi driver. This may or may not be correct.
The ar71xx is platform code. He probably refered to ath5k, ath9k and madwifi drivers, which indeed are missing on newer builds.

regarding your card: it would help to know what exact model it is.
cat /proc/bus/devices" and post the output. It will contain the pci-id and tell us, what configuration is appropriate.

For a ath9k or ath5k your would use

config 'wifi-device' 'radio0'
    option 'type' 'mac80211'
...
The corresponding device would probably be wlan0, rather then ath0 or wifi0 on 10.03.1+

Godd morning,

this is cat /prco/bus/pci/devices output:

0000    07001107    0                   8                   1                   0                   0                   0                   0                   0            10000000                 100                   0                   0                   0                   0                   0   
0088    168c001b    30            10000000                   0                   0                   0                   0                   0                   0               10000                   0                   0                   0                   0                   0                   0   

I also try wifi detect >/etc/config/wireless but wireless file became empty.

Good evening,

I finally resolved my problem also thank your help.

I've followed again this procedure:

-Installed openwrt-ar71xx-ubnt-rspro-squashfs-factory.bin firmware by TFTP server

-Installed penwrt-ar71xx-ubnt-rspro-squashfs-sysupgrade.bin by LUCI web server

-Installed kmod-madwifi package

-Reboot the router

So wifi interface appared in GUI and I could enable wifi0

Thank very much everybody

The discussion might have continued from here.