Wi-Fi adapter for Raspberry pi 4 B

It's just great how well you claim know me, again…

Please tell that to my tl-wr821n v1 (ar9170) and tl-wr721n v1 (ar9271), I have used them as third radio and AP interface on a tl-wdr3600 (tl-wdr4300 respectively) for about 2 years each. Results were basically functional, but unreliable, with sometimes huge latencies and a tendency to overheat - the cheapest AHB/ PCI(e) based ath9k card however works fine in those conditions (even back to the dreaded/ buggy AR5008 or AR9102).

funny how you suggest the newest ipq soc to others but are stuck on some obsolete soc...
this is what works for me, self built image on an average soc:

Thank you , after installing the drivers, everything works

I think @slh might refrain from getting into this, but I must address the obvious flaw in your argument.

When someone asks for an advice to buy a new device, it makes perfect sense to recommend a device that comfortably meet their requirements and have some degree of future proofing.

Giving this recommendation, however, doesn't mean that we throw away the existing devices we already have of they do the job.

I have a C7 here and it's working alright, but I don't recommend buying it now because there are more capable devices in the same, or similar, price range. (And by the way this is just an example--just saying before you make a thing of it).

2 Likes

yeah, and their next post is about complains that it cannot reach half of the gigabit speed and are buying another one.
that are really perfect sense recommendations...

Does it show up in Luci?
The built in Broadcom doesn't and it doesn't keep an AP for more than a few seconds (no error, just slow loss of signal).
I tried Realtek 8812bu ones but I couldn't get it to work.
I tried a Realtek 8812au but I can only scan (I got the AP to work on my x86_64 machine with wpa_supplicant but not hostapd).
There seems to be a newer driver for it but I haven't figure out oh the get it over to openwrt yet.

I don't think Luci will ever support it.
I am willing to try an N adapter as long as it supports an external antenna and is 5GHz.

Running openwrt and what kernel?
Have you tried making an AP?

@bjlockie to use the MediaTek MT7612U kmod-mt76x2u need to be installed after that it will show up on Luci and can be configured as AP or STA.
The built in Broadcom on the Pi 4, it should work with this setting :Raspberry pi 4 access point
Realtek 8812au seems to be broken on the latest snapshots ,it used to work before, like in this old snapshot :https://drive.google.com/file/d/1HXlbTqis-QoOi8QrJBUg0ZAvtovOz26B/view?usp=sharing

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.