Omega 2S+: No WiFi Support with OpenWRT 21.02



  • @crispyoz Thank you for you comment , Which wifi driver did you enabled for making this configuration working?



  • @IBH

    Target System: MediaTek Ralink MIPS
    Subtarget: MT76x8 based boards
    Target Profile: Onion Omega2+



  • @crispyoz said in Omega 2S+: No WiFi Support with OpenWRT 21.02:

    @IBH
    Target System: MediaTek Ralink MIPS
    Subtarget: MT76x8 based boards
    Target Profile: Onion Omega2+

    Thank you so much for your reply and help. Does this module work with OpenWRT21.02 or only for 22 please?


  • administrators

    @IBH I believe @crispyoz is saying if you select the Omega2+ target profile, it will automatically select the open-source mt76 wifi driver



  • @Lazar-Demin the Omega2+ target profile is selected , it doesn't select the open-source mt76 wifi driver. I cannot see any wifi driver which has been selected. Do you know the exact name of the wifi driver please?
    CONFIG_TARGET_ramips_mt76x8_DEVICE_onion_omega2p=y
    CONFIG_TARGET_PROFILE="DEVICE_onion_omega2p"


  • administrators

    @IBH it should be called mt76 or kmod-mt76
    You can find the package makefile here: https://github.com/openwrt/openwrt/blob/openwrt-21.02/package/kernel/mt76/Makefile



  • @IBH By following my initial instructions the build will include kmod-mt76-core as you can see from the extract of the .config file here:

    CONFIG_TARGET_ramips_mt76x8=y
    CONFIG_TARGET_ramips_mt76x8_DEVICE_onion_omega2p=y
    CONFIG_TARGET_SUBTARGET="mt76x8"
    CONFIG_DEFAULT_kmod-mt7603=y
    CONFIG_DEFAULT_kmod-sdhci-mt7620=y
    CONFIG_PACKAGE_kmod-sdhci-mt7620=y
    CONFIG_PACKAGE_kmod-mt76-core=y
    CONFIG_PACKAGE_kmod-mt7603=y
    
    


  • @crispyoz Thank you so much , I did the same you have done for enabling the module and i have applied the settings as they are posted on the forum but it doesn't work.
    root@OpenWrt:/# /etc/init.d/network restart

    radio0(mac80211): Interface type not supported

    [407913.630263] br-lan: port 1(eth0) entered disabled state

    [407913.645038] device eth0 left promiscuous mode

    [407913.649736] br-lan: port 1(eth0) entered disabled state

    root@OpenWrt:/# [407916.196957] br-lan: port 1(eth0) entered blocking state

    [407916.202418] br-lan: port 1(eth0) entered disabled state

    [407916.208209] device eth0 entered promiscuous mode

    [407916.238873] br-lan: port 1(eth0) entered blocking state

    [407916.244341] br-lan: port 1(eth0) entered forwarding state

    [407917.200558] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready

    Do you have any idea please?


  • administrators

    @IBH Vanilla OpenWRT isn't configured for easy networking right out of the box, you'll have to make network, firewall, and wireless configuration changes.

    Take a look at our UCI-defaults network configuration script for an idea of what we do:
    For an idea of how we configure the beta OpenWRT 22.03 firmware, take a look at UCI-defaults network configuration script:https://github.com/OnionIoT/OpenWRT-Packages/blob/openwrt-22.03/omega2-base/files/etc/uci-defaults/15_network

    Alternatively, you can use our beta OpenWRT 22.03 firmware. It supports wifi networking right out of the box. More info in this thread: https://community.onion.io/topic/4963/beta-openwrt-22-03-firmware-available-your-feedback-is-needed

    EDIT: specified UCI defaults are for OpenWRT 22.03



  • @Lazar-Demin Hi Lazar, I'm using the OpenWRT 21.02 release and not the onion openwrt. I did the configuration shared by @crispyoz in the forum :

    https://community.onion.io/topic/4940/original-image-openwrt-22-03-3-ramips/2?_=1680610145788

    And I got an issue related to the interface radio0 doesn't exist. Maybe I missed something and for this reason I would like to check with you both.


  • administrators

    @IBH Ah my mistake, I didn't specify the uci defaults configuration is for our new beta firmware that's based on OpenWRT 22.03. This should apply to your situation since this firmware also uses the mt76 wifi driver.



  • @IBH Here is my OpenWrt 21 config:

    root@OpenWrt:/etc/config# cat network
    config interface 'loopback'
            option device 'lo'
            option proto 'static'
            option ipaddr '127.0.0.1'
            option netmask '255.0.0.0'
    
    config globals 'globals'
            option ula_prefix 'fd25:0766:cc06::/48'
    
    config switch
            option name 'switch0'
            option reset '1'
            option enable_vlan '0'
    
    config interface 'wwan'
            option proto 'dhcp'
            option device 'apcli0'
    
    config interface 'wlan'
            option proto 'static'
            option ipaddr '192.168.3.1'
            option netmask '255.255.255.0'
            option ip6assign '60'
            option type 'bridge'
    
    
    cat wireless
    
    config wifi-device 'radio0'
            option type 'mac80211'
            option path 'platform/10300000.wmac'
            option channel '11'
            option band '2g'
            option htmode 'HT20'
            option disabled '0'
    
    config wifi-iface 'default_radio0'
            option device 'radio0'
            option network 'wlan'
            option mode 'ap'
            option ssid 'OpenWrt'
            option encryption 'none'
    
    config wifi-iface 'sta'
            option device 'radio0'
            option mode 'sta'
            option network 'wwan'
            option ifname 'apcli0'
            option ssid 'MYSSID'
            option encryption 'psk2'
            option key '*********************************'
    
    


  • @crispyoz Thank you , I did a ' wifi up' but the status says it is not up. Any help please ? How do you run those configs ?

    root@OpenWrt:/# wifi status
    {
            "radio0": {
                    "up": false,
                    "pending": true,
                    "autostart": true,
                    "disabled": false,
                    "retry_setup_failed": false,
                    "config": {
                            "path": "platform/10300000.wmac",
                            "channel": "11",
                            "band": "2g",
                            "htmode": "HT20",
                            "disabled": false
                    },
                    "interfaces": [
                            {
                                    "section": "default_radio0",
                                    "config": {
                                            "mode": "ap",
                                            "ssid": "OpenWrt",
                                            "encryption": "none",
                                            "network": [
                                                    "wlan"
                                            ],
                                            "mode": "ap"
                                    },
                                    "vlans": [

    ],
                                    "stations": [

    ]
                            },
                            {
                                    "section": "sta",
                                    "config": {
                                            "mode": "sta",
                                            "ifname": "apcli0",
                                            "ssid": "MYSSID",
                                            "encryption": "psk2",
                                            "key": "*********************************",
                                            "mode": "sta",
                                            "network": [
                                                    "wwan"
                                            ]
                                    },
                                    "vlans": [

    ],
                                    "stations": [

    ]
                            }
                    ]
            }
    }



  • @IBH Your configuration is using my dummy wifi ssid and key so that isn't going to work on your wifi. You need to update the configuration to utilise your wifi.

                "ssid": "MYSSID",
                                            "encryption": "psk2",
                                            "key": "*********************************",
    

    To search for available wifi, use this command iw dev apcli0 scan | grep -i ssid

    To update the ssid and key you can either edit the file /etc/config/wireless or use these commands:

    uci set wireless.sta.ssid='<ENTER YOUR SSID HERE>'
    uci set wireless.sta.key='<ENTER YOUR WIFI PASSWORD HERE>'
    uci commit wireless
    service network restart



  • @crispyoz
    I got this:
    root@OpenWrt:/# iw dev apcli0 scan | grep -i ssid
    command failed: No such device (-19)
    Do I miss something?
    I do not need it to connect to a network. I need it to provide one.
    When I did wifi up the radio0 doesn't be up and I cannot see the ssid on my phone.



  • @crispyoz this is the output of lsmod:
    root@OpenWrt:/# lsmod
    cfg80211              286959  3 mt7603e,mt76,mac80211
    compat                  1346  2 mac80211,cfg80211
    crc_ccitt               1774  0
    gpio_button_hotplug     7058  0
    ip_tables              10275  2 iptable_mangle,iptable_filter
    ip6_tables             10087  2 ip6table_mangle,ip6table_filter
    ip6t_REJECT             1298  0
    ip6table_filter          754  0
    ip6table_mangle         1234  0
    ipt_REJECT              1234  0
    iptable_filter           722  0
    iptable_mangle           978  0
    leds_gpio               3058  0
    mac80211              534529  2 mt7603e,mt76
    mmc_block              27130  0
    mmc_core               91816  2 mmc_block,mtk_sd
    mt76                   40830  1 mt7603e
    mt7603e                39804  0
    mtk_sd                 15170  0
    nf_log_common           3000  2 nf_log_ipv4,nf_log_ipv6
    nf_log_ipv4             3602  0
    nf_log_ipv6             4274  0
    nf_reject_ipv4          2313  1 ipt_REJECT
    nf_reject_ipv6          2670  1 ip6t_REJECT
    nls_base                5354  1 usbcore
    ohci_hcd               24424  1 ohci_platform
    ohci_platform           3442  0
    usb_common              3134  2 ohci_hcd,usbcore
    usbcore               144625  2 ohci_platform,ohci_hcd
    x_tables               16295 17 ipt_REJECT,xt_time,xt_tcpudp,xt_multiport,xt_mark,xt_mac,xt_limit,xt_comment,xt_TCPMSS,xt_LOG,iptable_mangle,iptable_filter,ip_tables,ip6table_mangle,ip6table_filter,ip6_tables,ip6t_REJECT
    xt_LOG                   818  0
    xt_TCPMSS               3218  0
    xt_comment               562  0
    xt_limit                1394  0
    xt_mac                   690  0
    xt_mark                  722  0
    xt_multiport            1362  0
    xt_tcpudp               1874  0
    xt_time                 1970  0



  • @crispyoz
    root@OpenWrt:/# iw list
    Wiphy phy0
            wiphy index: 0
            max # scan SSIDs: 4
            max scan IEs length: 2257 bytes
            max # sched scan SSIDs: 0
            max # match sets: 0
            Retry short limit: 7
            Retry long limit: 4
            Coverage class: 0 (up to 0m)
            Device supports AP-side u-APSD.
            Device supports T-DLS.
            Available Antennas: TX 0x1 RX 0x1
            Configured Antennas: TX 0x1 RX 0x1
            Supported interface modes:
                     * IBSS
                     * managed
                     * AP
                     * AP/VLAN
                     * monitor
                     * mesh point
                     * P2P-client
                     * P2P-GO
            Band 1:
                    Capabilities: 0x17e
                            HT20/HT40
                            SM Power Save disabled
                            RX Greenfield
                            RX HT20 SGI
                            RX HT40 SGI
                            RX STBC 1-stream
                            Max AMSDU length: 3839 bytes
                            No DSSS/CCK HT40
                    Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
                    Minimum RX AMPDU time spacing: No restriction (0x00)
                    HT TX/RX MCS rate indexes supported: 0-7
                    Frequencies:
                            * 2412 MHz [1] (14.0 dBm)
                            * 2417 MHz [2] (14.0 dBm)
                            * 2422 MHz [3] (14.0 dBm)
                            * 2427 MHz [4] (14.0 dBm)
                            * 2432 MHz [5] (14.0 dBm)
                            * 2437 MHz [6] (14.0 dBm)
                            * 2442 MHz [7] (14.0 dBm)
                            * 2447 MHz [8] (14.0 dBm)
                            * 2452 MHz [9] (14.0 dBm)
                            * 2457 MHz [10] (14.0 dBm)
                            * 2462 MHz [11] (14.0 dBm)
                            * 2467 MHz [12] (14.0 dBm) (no IR)
                            * 2472 MHz [13] (14.0 dBm) (no IR)
                            * 2484 MHz [14] (14.0 dBm) (no IR)
            valid interface combinations:
                     * #{ IBSS } <= 1, #{ managed, AP, mesh point, P2P-client, P2P-GO } <= 4,
                       total <= 4, #channels <= 1, STA/AP BI must match
            HT Capability overrides:
                     * MCS: ff ff ff ff ff ff ff ff ff ff
                     * maximum A-MSDU length
                     * supported channel width
                     * short GI for 40 MHz
                     * max A-MPDU length exponent
                     * min MPDU start spacing
            max # scan plans: 1
            max scan plan interval: -1
            max scan plan iterations: 0
            Supported extended features:
                    * [ RRM ]: RRM
                    * [ CQM_RSSI_LIST ]: multiple CQM_RSSI_THOLD records
                    * [ CONTROL_PORT_OVER_NL80211 ]: control port over nl80211
                    * [ TXQS ]: FQ-CoDel-enabled intermediate TXQs
                    * [ AIRTIME_FAIRNESS ]: airtime fairness scheduling
                    * [ AQL ]: Airtime Queue Limits (AQL)
                    * [ SCAN_RANDOM_SN ]: use random sequence numbers in scans
                    * [ SCAN_MIN_PREQ_CONTENT ]: use probe request with only rate IEs in scans
                    * [ CONTROL_PORT_NO_PREAUTH ]: disable pre-auth over nl80211 control port support
                    * [ DEL_IBSS_STA ]: deletion of IBSS station support
                    * [ SCAN_FREQ_KHZ ]: scan on kHz frequency support
                    * [ CONTROL_PORT_OVER_NL80211_TX_STATUS ]: tx status for nl80211 control port support



  • @crispyoz root@OpenWrt:/# iw dev
    phy#0
            Interface wlan0
                    ifindex 5
                    wdev 0x2
                    addr 40:a3:6b:c3:17:1f
                    type AP
                    txpower 14.00 dBm
                    multicast TXQ:
                            qsz-byt qsz-pkt flows   drops   marks   overlmt hashcol tx-bytes        tx-packets
                            0       0       0       0       0       0       0       0               0



  • @IBH Strange, everything looks correct to me, but iw status does not show the SSID. After you made changes to the wireless file, try rebootig and wait for a minute before running wifi status. Also try making these changes:

    uci set wireless.radio0.channel='auto'
    uci set wireless.sta.disabled='1'
    uci commit wireless

    Then reboot.



  • @crispyoz I've tried that too but still no luck 😞



Looks like your connection to Community was lost, please wait while we try to reconnect.