# Rtl8812au antenna - 5GHz hostapd

**URL:** <https://forums.balena.io/t/rtl8812au-antenna-5ghz-hostapd/2157>\
**Category:** Product support\
**Tags:** raspberrypi3, wifi, kernel-module\
**Created:** [November 9, 2017, 12:30am UTC](https://forums.balena.io/t/rtl8812au-antenna-5ghz-hostapd/2157 "2017-11-09T00:30:37Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![prash](https://avatars.discourse-cdn.com/v4/letter/p/d07c76/32.png) [@prash](https://forums.balena.io/u/prash)\
**Post date:** [November 9, 2017, 12:30am UTC](https://forums.balena.io/t/rtl8812au-antenna-5ghz-hostapd/2157/1 "2017-11-09T00:30:37Z")

</div>

Hi all,

I have some wifi antennae with different chipsets. I am trying to broadcast a 5GHz networking using hostapd. I have a couple of antennae that should be capable of this both with the RTL8812au chipset but I’m finding it difficult to get them working (ResinOS 2.3.0).

Using this: [https://github.com/bjorn-sminq/rtl8812-resin-module](https://github.com/bjorn-sminq/rtl8812-resin-module), running `bash build.sh raspberrypi3 '2.3.0+rev1.dev' rtl8812au_rtl8821au` I get `Could not find headers for 'raspberrypi3' at version '2.3.0+rev1.dev', run build.sh --list` which is stange because `build.sh --list` shows the device and version.

Secondly, I saw this antenna pop up in a few threads: [https://www.amazon.co.uk/gp/product/B01C2N2O8S/ref=oh\_aui\_detailpage\_o00\_s00?ie=UTF8&psc=1](https://www.amazon.co.uk/gp/product/B01C2N2O8S/ref=oh_aui_detailpage_o00_s00?ie=UTF8&psc=1) Can anyone confirm it’s working with hostapd for a 5GHz network?

Thanks!

---

<div class="post-metadata">

**Author:** ![zvin](https://avatars.discourse-cdn.com/v4/letter/z/a5b964/32.png) [@zvin](https://forums.balena.io/u/zvin)\
**Post date:** [November 10, 2017, 7:36pm UTC](https://forums.balena.io/t/rtl8812au-antenna-5ghz-hostapd/2157/4 "2017-11-10T19:36:48Z")

</div>

I am not familiar with this project but looking at `build.sh`s code, it looks like the device type and version you pass to it are regular expressions. This means that you need to escape the dots and plus in the version:

```auto
./build.sh raspberrypi3 "2\.3\.0\+rev1\.dev" rtl8812au_rtl8821au

```

This makes the `Could not find headers for 'raspberrypi3' at version '2.3.0+rev1.dev', run build.sh --list` error disappear but then I get a new one:

```auto
ERROR: images/raspberrypi3/2.3.0+rev1.dev/kernel_modules_headers.tar.gz: Could not retrieve https://files.resinstaging.io/images/raspberrypi3/2.3.0+rev1.dev/kernel_modules_headers.tar.gz, skipping.

```

I’ll ask the team why these files are not accessible.

---

<div class="post-metadata">

**Author:** ![zvin](https://avatars.discourse-cdn.com/v4/letter/z/a5b964/32.png) [@zvin](https://forums.balena.io/u/zvin)\
**Post date:** [November 10, 2017, 8:01pm UTC](https://forums.balena.io/t/rtl8812au-antenna-5ghz-hostapd/2157/6 "2017-11-10T20:01:54Z")

</div>

As a workaround you should be able to get these headers using `minio`'s mc command:

```auto
mc cp s3/resin-staging-img/images/raspberrypi3/2.3.0+rev1.dev/kernel_modules_headers.tar.gz .

```

You can get `mc` from there [https://www.minio.io/downloads.html#download-client](https://www.minio.io/downloads.html#download-client) .

---

<div class="post-metadata">

**Author:** ![prash](https://avatars.discourse-cdn.com/v4/letter/p/d07c76/32.png) [@prash](https://forums.balena.io/u/prash)\
**Post date:** [November 10, 2017, 9:34pm UTC](https://forums.balena.io/t/rtl8812au-antenna-5ghz-hostapd/2157/7 "2017-11-10T21:34:11Z")

</div>

Thank you @zvin, I will give that a shot!

---

<div class="post-metadata">

**Author:** ![imrehg](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/imrehg/32/36_2.png) [@imrehg](https://forums.balena.io/u/imrehg)\
**Post date:** [November 11, 2017, 10:03am UTC](https://forums.balena.io/t/rtl8812au-antenna-5ghz-hostapd/2157/8 "2017-11-11T10:03:13Z")

</div>

@prash I see that the `build.sh` script in your project is from 8 months ago, but the original example on github has a newer version that added support for versions with `+` in the name (i.e. pretty much all the 2.x devices). Maybe you’d like to take that new `build.sh` version, and git that one a try?

> **[balena-os/kernel-module-build](https://github.com/balena-os/kernel-module-build)**
>
> Example project for building an OOT kernel module in resin - balena-os/kernel-module-build

---

<div class="post-metadata">

**Author:** ![prash](https://avatars.discourse-cdn.com/v4/letter/p/d07c76/32.png) [@prash](https://forums.balena.io/u/prash)\
**Post date:** [November 11, 2017, 10:30pm UTC](https://forums.balena.io/t/rtl8812au-antenna-5ghz-hostapd/2157/10 "2017-11-11T22:30:55Z")

</div>

> [@prash](#):
>
> rtl8812au\_rtl8821au

Hi @imrehg

With your suggestion build.sh runs and exits with no error. kernel\_module\_headers.tar.gz downloads successfully, but then make stops:

```auto
  make: Entering directory '/tmp/tmp.asIhjMBhge'
  Building modules, stage 2.
  MODPOST 0 modules 
  make: Leaving directory '/tmp/tmp.asIhjMBhge'

```

---

<div class="post-metadata">

**Author:** ![sqweelygig](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/sqweelygig/32/150_2.png) [@sqweelygig](https://forums.balena.io/u/sqweelygig)\
**Post date:** [February 1, 2018, 7:23pm UTC](https://forums.balena.io/t/rtl8812au-antenna-5ghz-hostapd/2157/11 "2018-02-01T19:23:23Z")

</div>

With apologies that this thread has gone quiet for a little while, where is this one up to? Is it still as last stated?

---

<div class="post-metadata">

**Author:** ![prash](https://avatars.discourse-cdn.com/v4/letter/p/d07c76/32.png) [@prash](https://forums.balena.io/u/prash)\
**Post date:** [February 1, 2018, 7:34pm UTC](https://forums.balena.io/t/rtl8812au-antenna-5ghz-hostapd/2157/12 "2018-02-01T19:34:49Z")

</div>

Yes, I couldn’t find a solution. Ended up using different hardware with a different chipset that worked.

---

<div class="post-metadata">

**Author:** ![daghemo](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/daghemo/32/531_2.png) [@daghemo](https://forums.balena.io/u/daghemo)\
**Post date:** [June 22, 2018, 3:49pm UTC](https://forums.balena.io/t/rtl8812au-antenna-5ghz-hostapd/2157/14 "2018-06-22T15:49:04Z")

</div>

Me too I’m interested in having the rtl8812au working.  
I’m stuck on the same error, right now.  
Still investigating.  
Maybe some solved this case in the meantime?
