OpenWrt Forum Archive

Topic: RTL8189 - Interface type not supported.

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

Hi,

I try to enable the wifi module on Openwrt. My module id RTL8189fs.

On /etc/config/network

config interface 'wifi'
      option proto 'dhcp'
      option ifname 'wlan0'

On /etc/config/wireless

config wifi-device radio0
      option channel 'auto'
#    option type 'mac80211'

config wifi-iface
      option device 'radio0'
      option network 'wifi;
      option ssid 'TEST'
      option encryption 'none'
      option mode 'sta'
      option disabled '0'

After # wifi up  i have the error:
   radio0(): Interface type not supported


On web Luci the message for wifi is :

0%     SSID: Test | Mode: Client     Wireless is disabled or not associated

My problem is : what value need to write in "type" for wifi-device if module is rtl8189 ? With type mac80211 not work.

Thanks for all information!

(Last edited by giovani on 20 Jan 2017, 13:42)

Use wifi detect to set up the wifi radio block.  You need to have the USB path to it, which is best auto-detected.  Delete the stuff you put in /etc/config/wireless (if this is your only radio, delete the entire file) then

wifi detect >> /etc/config/wireless
iw list

will show your driver and hardware capabilities.  Realtek chips have limited capabilities, but STA (managed) mode should be available.

The network that you place a STA interface into must NOT be a bridge.  If you're doing a simple routed client (where someone else's wifi is your ISP), it is best to simply modify the existing wan network.  Take the ethernet port out of wan in /etc/config/network, and specify wan as your STA network in /etc/config/wireless.

(Last edited by mk24 on 20 Jan 2017, 14:55)

Hi mk24.


root@OpenWrt:~# iw list
Wiphy phy4
        Band 1:
                Capabilities: 0x1962
                        HT20/HT40
                        Static SM Power Save
                        RX HT20 SGI
                        RX HT40 SGI
                        RX STBC 1-stream
                        Max AMSDU length: 7935 bytes
                        DSSS/CCK HT40
                Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
                Minimum RX AMPDU time spacing: 16 usec (0x07)
                HT TX/RX MCS rate indexes supported: 0-7
                Frequencies:
                        * 2412 MHz [1] (20.0 dBm)
                        * 2417 MHz [2] (20.0 dBm)
                        * 2422 MHz [3] (20.0 dBm)
                        * 2427 MHz [4] (20.0 dBm)
                        * 2432 MHz [5] (20.0 dBm)
                        * 2437 MHz [6] (20.0 dBm)
                        * 2442 MHz [7] (20.0 dBm)
                        * 2447 MHz [8] (20.0 dBm)
                        * 2452 MHz [9] (20.0 dBm)
                        * 2457 MHz [10] (20.0 dBm)
                        * 2462 MHz [11] (20.0 dBm)
                        * 2467 MHz [12] (20.0 dBm) (no IR)
                        * 2472 MHz [13] (20.0 dBm) (no IR)
                        * 2484 MHz [14] (disabled)
        max # scan SSIDs: 9
        max scan IEs length: 2304 bytes
        Retry short limit: 7
        Retry long limit: 4
        Coverage class: 0 (up to 0m)
        Available Antennas: TX 0 RX 0
        Supported interface modes:
                 * IBSS
                 * managed
                 * AP
                 * monitor
                 * P2P-client
                 * P2P-GO
        interface combinations are not supported


The wifi detect  >> return a empty file.

Thanks for your time.

wifi detect ignores devices that are already configured (or attempted to configure) in /etc/config/wireless.  Thus you need to start with an empty /etc/config/wireless.

Thanks mk24 for your suggestion but don't have good news!

I deleted the file /etc/config/wireless.
I try to scan with "iw wlan0 scan" and I have same ssid's listed.
So, wifi module is active. But after "wifi detect >> /etc/config/wireless" the wireless file is empty.

The openwrt is Chaos Calmer 15.05.1 for sunxi.


My target is to have internet on my box via wifi. So, I want to connect (via Luci interface) to another wifi router with internet access.


root@OpenWrt:~# iwconfig wlan0
wlan0     unassociated  Mode:Managed  Frequency=2.412 GHz
          Access Point: Not-Associated
          RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality:0  Signal level:0  Noise level:0
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0



Another suggestion?

(Last edited by giovani on 20 Jan 2017, 21:01)

This looks like it is almost working.

Use 'iw dev wlan0 scan' to see if you see your AP.

With an open AP you can use 'iw dev wlan0 connect <yourSSID>' to connect manually.  This will not work with WPA secured APs, iw by itself cannot handle that, it needs a combination with wpa_supplicant.

I would remove the 'channel auto' setting and set no channel.  STA mode will scan all the channels.

Again the network you set in /etc/config/wireless must exist and it must not be a bridge.  Note that 'config iface 'wifi'' does not create an interface named wifi, that is done with ifname later.

(Last edited by mk24 on 20 Jan 2017, 23:08)

root@OpenWrt:~# iw dev wlan0 scan
command failed: Network is down (-100)

If you have same time and if you want is possible to send you my ip to "hack" my box !

I noob !!!!

Thanks.

(Last edited by giovani on 21 Jan 2017, 09:45)

First test :
without /etc/config/wireless file and
config interface 'wifi'
        option proto 'dhcp'
        option ifname 'wlan0'
on /etc/config/wireless "iw dev wlan0 scan" return the ssid's from my location.

After create the /etc/config/wireless file with

config wifi-device 'radio0'
        option type 'mac80211'
        option disabled '0'

config wifi-iface
        option device 'radio0'
        option network 'wifi'
        option ssid 'Test'
        option encryption 'none'
        option mode 'sta'

"iw dev wlan0 scan" return "
command failed: Network is down (-100)

I don't know if it will work without a hwmode and a path in your radio config.  It is really strange that wifi detect is not working for you.  hwmode is simply '11g' for any 2.4 GHz hardware, but I can't say what the path should be on a USB device.

Take the option ifname line out of /etc/config/network.  That is redundant.  You just need an interface created, then connect to it though specifying the name in /etc/config/wireless.

What does dmesg say after you do '/etc/init.d/network restart'

(Last edited by mk24 on 21 Jan 2017, 16:39)

The wifi module is not connect via usb is mounted on board and "talk" via SDIO = Orange_pi-lite-v1_1.pdf (pag.14)

'/etc/init.d/network restart'

[ 1407.519205] gmac0: probed
[ 1407.519535] gmac0 gmac0: eth0: eth0: PHY ID 00441400 at 0 IRQ poll (gmac0-0:00)
[ 1407.533747] ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 1409.510287] PHY: gmac0-0:00 - Link is Up - 100/Full
[ 1409.511485] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready

The discussion might have continued from here.