2
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

ESXi上のArchLinuxにUSBでRTL8812AUのドングルを接続してhostapdで5GHzなAP

Posted at

ESXiでminiPCIe接続のAtherosチップのWiFiモジュールをパススルーしてAPを立てようとしていたのだが、どうも電波を出してくれなくてお手上げなのでUSBに変更。

USBで5GHzなAPの稼働実績をネットで探して、RTL8812AUチップのUSBドングルを購入。下記の手順でセットアップを行った。

環境


$ uname -a
Linux ap 4.18.6-arch1-1-ARCH #1 SMP PREEMPT Wed Sep 5 11:54:09 UTC 2018 x86_64 GNU/Linux

RTL8812AUドライバのインストール

いろいろフォークとかあってどれがいいのかわからない...

とりあえずうまくいったのは下記
GitHub - aircrack-ng/rtl8812au: RTL8812AU/21AU and RTL8814AU driver with monitor mode and frame injection


# git clone https://github.com/aircrack-ng/rtl8812au.git
# cd rtl8812au
# make
# make install
# reboot

NICをUPして動作確認


# ip link set wls33u1 up
# iw list
  (ここでチップのスペックが列挙されればOK)

hostapd のインストール


# pacman -S hostapd

hostapd の設定


# nano /etc/hostapd/hostapd.conf

interface=wls33u1
bridge=br0
driver=nl80211
ssid=AP
auth_algs=1
wpa=2
wpa_passphrase=******
wpa_key_mgmt=WPA-PSK
rsn_pairwise=TKIP CCMP
hw_mode=a
channel=36

logger_syslog=-1
logger_syslog_level=3

# DFS
country_code=JP
ieee80211d=1
ieee80211h=1

# 802.11n
ieee80211n=1
ht_capab=[HT20][HT40+][SHORT-GI-20][SHORT-GI-40][GF][DSSS_CCK-40]

# 802.11ac
ieee80211ac=1
vht_oper_chwidth=1
vht_capab=[MAX-MPDU-11454][SHORT-GI-80][TX-STBC-2BY1][RX-STBC-1][SU-BEAMFORMEE][MU-BEAMFORMEE][HTC-VHT][MAX-A-MPDU-LEN-EXP7]
vht_oper_centr_freq_seg0_idx=42

# WMM
wmm_enabled=1
uapsd_advertisement_enabled=1
wmm_ac_bk_cwmin=4
wmm_ac_bk_cwmax=10
wmm_ac_bk_aifs=7
wmm_ac_bk_txop_limit=0
wmm_ac_bk_acm=0
wmm_ac_be_aifs=3
wmm_ac_be_cwmin=4
wmm_ac_be_cwmax=10
wmm_ac_be_txop_limit=0
wmm_ac_be_acm=0
wmm_ac_vi_aifs=2
wmm_ac_vi_cwmin=3
wmm_ac_vi_cwmax=4
wmm_ac_vi_txop_limit=94
wmm_ac_vi_acm=0
wmm_ac_vi_aifs=2
wmm_ac_vi_cwmin=3
wmm_ac_vi_cwmax=4
wmm_ac_vi_txop_limit=94
wmm_ac_vi_acm=0
wmm_ac_vo_aifs=2
wmm_ac_vo_cwmin=2
wmm_ac_vo_cwmax=3
wmm_ac_vo_txop_limit=47
wmm_ac_vo_acm=0

# TX queue parameters
tx_queue_data3_aifs=7
tx_queue_data3_cwmin=15
tx_queue_data3_cwmax=1023
tx_queue_data3_burst=0
tx_queue_data2_aifs=3
tx_queue_data2_cwmin=15
tx_queue_data2_cwmax=63
tx_queue_data2_burst=0
tx_queue_data1_aifs=1
tx_queue_data1_cwmin=7
tx_queue_data1_cwmax=15
tx_queue_data1_burst=3.0
tx_queue_data0_aifs=1
tx_queue_data0_cwmin=3
tx_queue_data0_cwmax=7
tx_queue_data0_burst=1.5

Bridgeの設定は適当に

hostapd の起動


# hostapd /etc/hostapd/hostapd.conf

これで80MHzの帯域でAPができた!

2
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?