Wi-Fi adapter for Raspberry pi 4 B

I ended up ordering an alfa awus036acm.
I might not get it until the end of the month.
Realtek seems to have most of the market in Canada. :frowning:

I got it way faster than expected. :slight_smile:
I can't get it to work though.
I rebooted my Raspberry Pi 4.

# lsusb
Bus 002 Device 002: ID 0e8d:7612 MediaTek Inc.

There is no error in dmesg and no device in ifconfig -a.

I'm going to try a later snapshot. :slight_smile:

I got it working. :slightly_smiling_face:
The Pi is a DHCP client though, I have to put it back in router mode.
It was a pain to get network access this time. :frowning:

Is that in OpenWrt or another Linux distribution? Another thing, what adapter do you have to have to use rtl8812au? I have an Archer T4UHP and I cannot even scan Wi-Fi networks.

I got rid of my Realtek stuff and switched to a Mediatek 7612u.
I was using lubuntu.
It was a Netis WF2190 that is rtl8812au (the bu adapters I had were all generic).

Under OpenWrt?
Do you get an error?
Are you trying from the command line?

iwlist wlan1 scan

If the interface is down try

ip list wlan1 up

I use this driver as you mentioned and it works perfectly on Linux distros like Ubuntu and derivatives. But when I connect it to a router (in my case an x86 test laptop) with OpenWrt, it doesn't work. It appears in LuCI but I cannot scan networks or create an AP. Of course I installed kmod-rtl8812au-ct.

The first command does not work. It says -ash: iwlist: not found
What do I have to wait for in the second command?

I was told the Realtek drivers can't be managed from Luci which is why I got a Mediatek device.

Lots of people create config files from the command line.
I just wanted a GUI. :slight_smile:

# iwconfig
eth1      no wireless extensions.

wlan1     IEEE 802.11  ESSID:off/any  
          Mode:Managed  Access Point: Not-Associated   Tx-Power=31 dBm   
          RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:on
          
wlan0     IEEE 802.11  ESSID:off/any  
          Mode:Managed  Access Point: Not-Associated   Tx-Power=3 dBm   
          RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off

To get iwlist:

# opkg install wireless-tools

On OpenWrt rtl8812au only work on some devices building a custom image with this changes:rtl8812AU and/or rtl8814AU drivers
Working on OpenWrt x86 19.07.2 with this modification:

openwrt$ git status
HEAD detached at v19.07.2
Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git checkout -- <file>..." to discard changes in working directory)

        modified:   package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh
        modified:   package/kernel/rtl8812au-ct/Makefile

no changes added to commit (use "git add" and/or "git commit -a")
openwrt$ git diff
diff --git a/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh b/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh
index 634aadcee9..57808f614c 100644
--- a/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh
+++ b/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh
@@ -705,7 +705,7 @@ mac80211_interface_cleanup() {
 
        for wdev in $(list_phy_interfaces "$phy"); do
                ip link set dev "$wdev" down 2>/dev/null
-               iw dev "$wdev" del
+               #iw dev "$wdev" del
        done
 }
 
diff --git a/package/kernel/rtl8812au-ct/Makefile b/package/kernel/rtl8812au-ct/Makefile
index 5c70dbd1e7..db3016dd19 100644
--- a/package/kernel/rtl8812au-ct/Makefile
+++ b/package/kernel/rtl8812au-ct/Makefile
@@ -7,10 +7,10 @@ PKG_LICENSE:=GPLv2
 PKG_LICENSE_FILES:=
 
 PKG_SOURCE_URL:=https://github.com/greearb/rtl8812AU_8821AU_linux.git
-PKG_MIRROR_HASH:=42b32c56cf31bdf3c9cd4e304c9aac761b623c8737d8c57518117acdc5a84cfe
+PKG_MIRROR_HASH:=fa689e034cad9e4683ea784b8f3cb590492ab5c68e8babd492a4e8bf2de3b114
 PKG_SOURCE_PROTO:=git
-PKG_SOURCE_DATE:=2018-11-16
-PKG_SOURCE_VERSION:=661268fd174d4a74834c82d7d3987b0a560e6c57
+PKG_SOURCE_DATE:=2020-01-12
+PKG_SOURCE_VERSION:=e0d586aa93cb8687dd7dc0e593b6a820df2d6e1d
 
 PKG_MAINTAINER:=Ben Greear <greearb@candelatech.com>
 PKG_BUILD_PARALLEL:=1
1 Like

Oops, I wrote the wrong command:

# ip link set dev wlan1 up

I'd better give up and wait for them to fix it. The same is not so necessary in my network.

I was already able to get a list of Wi-Fi networks. First ip link set dev wlan0 up and then iwlist wlan0 scan.
This is my configuration file:

config wifi-device 'radio0'
    option type 'mac80211'
    option channel '36'
    option hwmode '11a'
    option path 'pci0000:00/0000:00:1d.7/usb1/1-1/1-1:1.0'
    option disabled '1'

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

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.