Projecte

General

Perfil

Actions

Error #292

tancat

Wireless card is configured with SHORT-GI-20 despite not supporting it

Afegit per Roger Pueyo Centelles fa més de 10 anys. Actualitzat fa més de 10 anys.

Estat:
Tancat
Prioritat:
Alta
Categoria:
Init scripts
Versió prevista:
-
Inici:
12-06-2014
Data de venciment:
% realitzat:

100%

Temps previst:
1:00 h
Temps invertit:

Descripció

Scenario: Alix2 with one mini-PCI DNMA-92 wireless card (802.11abgn AR9220).

iw list gives the following information:

root@qMp-ac50:/# iw list
Wiphy phy0
    Band 1:
        Capabilities: 0x11ce
            HT20/HT40
            SM Power Save disabled
            RX HT40 SGI
            TX STBC
            RX STBC 1-stream
            Max AMSDU length: 3839 bytes
            DSSS/CCK HT40
        Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
        Minimum RX AMPDU time spacing: 8 usec (0x06)
        HT TX/RX MCS rate indexes supported: 0-15
        Frequencies:
            * 2412 MHz [1] (20.0 dBm)
[...]
    Band 2:
        Capabilities: 0x11ce
            HT20/HT40
            SM Power Save disabled
            RX HT40 SGI
            TX STBC
            RX STBC 1-stream
            Max AMSDU length: 3839 bytes
            DSSS/CCK HT40
        Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
        Minimum RX AMPDU time spacing: 8 usec (0x06)
        HT TX/RX MCS rate indexes supported: 0-15
        Frequencies:
            * 5180 MHz [36] (16.0 dBm)
[...]

wifi detect gives the following conifguration:

root@qMp-ac50:/# wifi detect
config wifi-device  radio0
    option type     mac80211
    option channel  11
    option hwmode    11ng
    option path    'pci0000:00/0000:00:0c.0'
    option htmode    HT20
    list ht_capab    SHORT-GI-40
    list ht_capab    TX-STBC
    list ht_capab    RX-STBC1
    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

However, the auto-configuration process adds the SHORT-GI-20 capability to the wireless card in /etc/config/wireless:

config wifi-device 'radio0'
        option type 'mac80211'
        option macaddr '90:a4:de:c0:bb:c1'
        option channel '1'
        option country 'SP'
        option hwmode '11ng'
        option htmode 'HT20'
        option txpower '17'
        option noscan '1'
        option distance '5000'
        list ht_capab 'SHORT-GI-20'
        list ht_capab 'SHORT-GI-40'
        list ht_capab 'RX-STBC1'
        list ht_capab 'DSSS_CCK-40'

config wifi-iface 'wlan0'
        option device 'radio0'
        option mode 'adhoc'
        option ssid 'qMp'
        option bssid '02:CA:FF:EE:BA:BE'
        option ifname 'wlan0'
        option network 'mesh_w0'

config wifi-iface 'wlan0ap'
        option device 'radio0'
        option mode 'ap'
        option ssid 'qMp-AP'
        option network 'lan'
        option encryption 'none'
        option ifname 'wlan0ap'

Then, when the wireless is reset with the wifi command, the following error appears:

root@qMp-ac50:/# wifi 
command failed: Device or resource busy (-16)
Configuration file: /var/run/hostapd-phy0.conf
wlan0ap: interface state UNINITIALIZED->COUNTRY_UPDATE
Driver does not support configured HT capability [SHORT-GI-20]
wlan0ap: Unable to setup interface.
hostapd_free_hapd_data: Interface wlan0ap wasn't started
Failed to start hostapd for phy0

and the interface is not brought up.

The configuration script should be reviewed to ensure that only the supported features are enabled.

Actions

També disponible a: Atom PDF