レビューメディア「ジグソー」

Wi-Fiアクセスポイントを自作しよう①

上記の自作ルーターにWiFiのアクセスポイントを作成したく、下記サイトでAPがyesとなっているものを探しているとMediaTekのUSBタイプが導入しやすそうと思いました。

参考1:https://wireless.wiki.kernel.org/en/users/drivers

参考2:https://wireless.wiki.kernel.org/en/users/drivers/mediatek

 

6Gに対応している MT7921K もよいのですが、下記のような製品になってしまい値段もお手頃ではなくなってしまうので K 無しタイプを選択することにしました。

https://store.netgear.jp/products/detail/427

 

MT7921 では 2.4GHz/5GHz でのWi-Fi 6(11ax)に対応したものです。

 

たまたま6G対応のPCIeカードが手元にあるので、本件の延長で作業しようかな。

更新: 2023/12/29
パッケージ

CD剥き出しって初めてだな

パッケージ

 

内容物

 

表(アンテナは180度回転まで)

 

裏(WPSボタンが一応ある)

 

 

CDの中身は英語と中国語のマニュアルPDFファイル、Windows専用のドライバーインストールexeファイル。

CD自動起動用のautorun.exeくらいか。

MediaTekなどの記載が見当たらない怪しいexeだなぁという印象。

更新: 2024/01/05
やってみた

11ax 5 GHz で構築してみる

すでに MT7921K でやっている先駆者がいるので、手順的には変わらないはず。

参考:https://qiita.com/wataniguchi/items/380cd315226f6cce2cc1

 

っと・・・高を括っていたのが間違いでした。

 

UbuntuとDebianで試しましたが、Debianで構築していきます。

以降、構築コマンドが続きます。

 

以下よりISOファイルをダウンロードしてインストールしていきます。

https://www.debian.org/distrib/netinst

 

ネットワークダウンロードによるインストールになるので、構築時点の最新ファイルが適用されるはずです。

 

構築完了時点の環境は下記です。

# uname -a
Linux wifi1 6.1.0-16-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.67-1 (2023-12-12) x86_64 GNU/Linux

 

OSとしての初期設定を行います。

### 各種パッケージの最新化
# apt update; apt upgrade -y;

### 作業に必要なパッケージをインストール
# apt install bridge-utils hostapd iw git make gcc libnl-3-dev pkgconf build-essential libssl-dev libfl-dev libnl-genl-3-dev bison hwinfo -y
# apt install ethtool

### ロケールを変更
# localedef -f UTF-8 -i ja_JP ja_JP

### タイムゾーンを変更
# timedatectl set-timezone Asia/Tokyo

### 起動時のタイムアウト待ちを1秒へ変更
# sed -i "s/set timeout=5/set timeout=1/g" /boot/grub/grub.cfg

 

有線LANをブリッジとして設定する(debian12のデフォルトはnetplanでは無いようだ・・・)

# apt install netplan.io openvswitch-switch
# mkdir -p /etc/netplan/
# vi /etc/netplan/99-manual.yaml
network:
version: 2
ethernets:
enp6s18:
dhcp4: no
bridges:
br0:
interfaces:
- enp6s18
dhcp4: yes
macaddress: xx:xx:xx:xx:xx:xx ←有線LANのMACアドレスを設定する

# chmod 600 /etc/netplan/99-manual.yaml

### コメント化する
# vi /etc/network/interfaces
#iface enp6s18 inet dhcp

 

ドライバーのファームウェアを個別で更新します。

# ethtool -i wlx90de80fc059b
driver: mt7921u
version: 6.1.0-16-amd64
firmware-version: ____010000-20230117170942
expansion-rom-version:
bus-info: 9-1:1.0
supports-statistics: yes
supports-test: no
supports-eeprom-access: no
supports-register-dump: no
supports-priv-flags: no

# cd /lib/firmware/mediatek
# mv WIFI_MT7961_patch_mcu_1_2_hdr.bin WIFI_MT7961_patch_mcu_1_2_hdr.bin.org
# mv WIFI_RAM_CODE_MT7961_1.bin WIFI_RAM_CODE_MT7961_1.bin.org
# wget https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/plain/mediatek/WIFI_MT7961_patch_mcu_1_2_hdr.bin
# wget https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/plain/mediatek/WIFI_RAM_CODE_MT7961_1.bin

# reboot

# ethtool -i wlx90de80fc059b
driver: mt7921u
version: 6.1.0-16-amd64
firmware-version: ____010000-20231109190959
expansion-rom-version:
bus-info: 4-1:1.0
supports-statistics: yes
supports-test: no
supports-eeprom-access: no
supports-register-dump: no
supports-priv-flags: no

 

無線規制データベースを最新化する。
昔はcrdaを使用していたらしいが現在では廃止の方向らしい。make install すると廃止になったはずのcrdaがインストールされてデータベースなどが壊れる。少なくとも国情報としてJP設定出来なくなる。(ここが大いにハマってしまい時間を食った場所)

今回は所定の場所においてあるデータベースだけを置き換える。

# iw reg get
global
country JP: DFS-JP
(2402 - 2482 @ 40), (N/A, 20), (N/A)
(2474 - 2494 @ 20), (N/A, 20), (N/A), NO-OFDM
(4910 - 4990 @ 40), (N/A, 23), (N/A)
(5170 - 5250 @ 80), (N/A, 20), (N/A), AUTO-BW
(5250 - 5330 @ 80), (N/A, 20), (0 ms), DFS, AUTO-BW
(5490 - 5710 @ 160), (N/A, 23), (0 ms), DFS
(57000 - 66000 @ 2160), (N/A, 10), (N/A)

# cd /usr/local/src
# wget https://mirrors.edge.kernel.org/pub/software/network/wireless-regdb/wireless-regdb-2023.09.01.tar.xz
# xzcat wireless-regdb-2023.09.01.tar.xz | tar -xvf -
# cd wireless-regdb-2023.09.01/
# mv /lib/firmware/regulatory.db /lib/firmware/regulatory.db.org
# mv /lib/firmware/regulatory.db.p7s /lib/firmware/regulatory.db.p7s.org
# cp regulatory.db /lib/firmware/
# cp regulatory.db.p7s /lib/firmware/

# iw reg reload
# iw reg get
global
country JP: DFS-JP
(2402 - 2482 @ 40), (N/A, 20), (N/A)
(2474 - 2494 @ 20), (N/A, 20), (N/A), NO-OFDM
(4910 - 4990 @ 40), (N/A, 23), (N/A)
(5170 - 5250 @ 80), (N/A, 20), (N/A), AUTO-BW
(5250 - 5330 @ 80), (N/A, 20), (0 ms), DFS, AUTO-BW
(5490 - 5730 @ 160), (N/A, 23), (0 ms), DFS
(5925 - 6425 @ 160), (N/A, 23), (N/A), NO-OUTDOOR
(57000 - 66000 @ 2160), (N/A, 10), (N/A)

 

なお、今回は適用予定には無いですが、直近のgitのコミットログを見ると下記のように変更されている様子。

https://git.kernel.org/pub/scm/linux/kernel/git/wens/wireless-regdb.git/commit/?id=149c709aa510fa3fb6e98d8f30f9698ff19c26d9

- (5925 - 6425 @ 160), (200 mW), NO-OUTDOOR
+ (5925 - 6425 @ 320), (200 mW), NO-OUTDOOR

160MHzから320MHzへ変更されている。(Wi-Fi7定義の修正ですかね)

https://www.soumu.go.jp/main_content/000919158.pdf

https://www.itmedia.co.jp/mobile/articles/2312/22/news133.html

 

カスタマイズした hostapd の個別導入をする。(apt install にて事前に hostapd を入れている想定)

# cd /usr/local/src
# git clone git://w1.fi/hostap.git
# cd hostap/hostapd
# cp defconfig .config
# sed -i "s/#CONFIG_IEEE80211AC=y/CONFIG_IEEE80211AC=y/g" .config
# sed -i "s/#CONFIG_IEEE80211AX=y/CONFIG_IEEE80211AX=y/g" .config
# sed -i "s/#CONFIG_SAE=y/CONFIG_SAE=y/g" .config
# sed -i "s/#CONFIG_ACS=y/CONFIG_ACS=y/g" .config
# make
# mv /usr/sbin/hostapd /usr/sbin/hostapd_2_10
# mv /usr/sbin/hostapd_cli /usr/sbin/hostapd_cli_2_10
# cp hostapd /usr/sbin/
# cp hostapd_cli /usr/sbin/

 

hostapdのキモとなる設定ファイルを作成する。今回はDFS(Dynamic Frequency Selection)を使用しないので一部コメント化している。

# vi /etc/hostapd/hostapd.conf

# interface
interface=wlx90de80fc059b
bridge=br0
driver=nl80211
ctrl_interface=/var/run/hostapd
ctrl_interface_group=0

# log
logger_syslog=-1
logger_syslog_level=2
logger_stdout=-1
logger_stdout_level=2

#country_code=DFS-JP
country_code=JP

# country_code に基づいて、許可されたチャンネルと送信出力レベルを設定
ieee80211d=1

# レーダー検出と DFS サポートを有効
#ieee80211h=1

# SSID とパスワード 任意で設定
ssid=YAMAHA6
sae_password=xxxxxxxxxxx

# Mode g=2g a=5g
hw_mode=a

# op_class
# https://www.silex.jp/library/blog/20211027-1

# 5GHz 20MHz
channel=48
chanlist=36 40 44 48
op_class=115

# NG:5GHz 20MHz
#channel=52
#chanlist=52 56 60 64
#op_class=118

# NG:5GHz 20MHz
#channel=100
#chanlist=100 104 108 112 116 120 124 128 132 136 140 144
#op_class=121

# 5GHz 40MHz
#channel=36
#chanlist=36 44
#op_class=116

# NG:5GHz 40MHz
#channel=52
#chanlist=52 60
#op_class=119

# NG:5GHz 40MHz
#channel=100
#chanlist=100 108 116 124 132 140
#op_class=122

# NG:5GHz 40MHz
#channel=149
#chanlist=149 157
#op_class=126

# 11xx有効化
ieee80211n=1
ht_capab=[HT40-][SHORT-GI-20][SHORT-GI-40][TX-STBC][RX-STBC1][MAX-AMSDU-7935]
ieee80211ac=1
ieee80211ax=1
vht_capab=[RXLDPC][SHORT-GI-80][TX-STBC-2BY1][RX-STBC-1][SU-BEAMFORMEE]

# 0 = 20 or 40 MHz operating Channel width
# 1 = 80 MHz channel width
# 2 = 160 MHz channel width
# 3 = 80+80 MHz channel width
vht_oper_chwidth=3
vht_oper_centr_freq_seg0_idx=42

# SU-BEAMFORMEE
#require_he=1
#he_su_beamformee=1

# wmm
wmm_enabled=1
# Low priority / AC_BK = background
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
# Normal priority / AC_BE = best effort
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
# High priority / AC_VI = video
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
# Highest priority / AC_VO = voice
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
eapol_key_index_workaround=0
eap_server=0
own_ip_addr=127.0.0.1

# WPA3-Personal-only
ieee80211w=2
wpa=2
wpa_key_mgmt=SAE
rsn_pairwise=CCMP
rsn_preauth=1
sae_require_mfp=1
sae_pwe=1
wpa_group_rekey=1800
group_cipher=CCMP
wpa_psk_radius=0

# 無線オプション
beacon_int=100
beacon_rate=60
preamble=1
dtim_period=2
max_num_sta=2007
rts_threshold=-1
fragm_threshold=-1
macaddr_acl=0
auth_algs=3
ignore_broadcast_ssid=0

 

設定ファイルを作成するうえで参考とした情報。主に使用するのは band2 の 5GHz の情報です。ちなみに band1 は 2.4 GHz の情報。

# iw list
Wiphy phy0
wiphy index: 0
max # scan SSIDs: 4
max scan IEs length: 482 bytes
max # sched scan SSIDs: 10
max # match sets: 16
Retry short limit: 7
Retry long limit: 4
Coverage class: 0 (up to 0m)
Device supports AP-side u-APSD.
Device supports T-DLS.
Supported Ciphers:
* WEP40 (00-0f-ac:1)
* WEP104 (00-0f-ac:5)
* TKIP (00-0f-ac:2)
* CCMP-128 (00-0f-ac:4)
* CCMP-256 (00-0f-ac:10)
* GCMP-128 (00-0f-ac:8)
* GCMP-256 (00-0f-ac:9)
* CMAC (00-0f-ac:6)
* CMAC-256 (00-0f-ac:13)
* GMAC-128 (00-0f-ac:11)
* GMAC-256 (00-0f-ac:12)
Available Antennas: TX 0x3 RX 0x3
Configured Antennas: TX 0x3 RX 0x3
Supported interface modes:
* managed
* AP
* AP/VLAN
* monitor
Band 1:
Capabilities: 0x9ff
RX LDPC
HT20/HT40
SM Power Save disabled
RX Greenfield
RX HT20 SGI
RX HT40 SGI
TX STBC
RX STBC 1-stream
Max AMSDU length: 7935 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-15
HE Iftypes: managed
HE MAC Capabilities (0x08011a000040):
+HTC HE Supported
Trigger Frame MAC Padding Duration: 2
OM Control
Maximum A-MPDU Length Exponent: 3
A-MSDU in A-MPDU
HE PHY Capabilities: (0x2270ce120dc0b306423f00):
HE40/2.4GHz
242 tone RUs/2.4GHz
Device Class: 1
LDPC Coding in Payload
HE SU PPDU with 1x HE-LTF and 0.8us GI
NDP with 4x HE-LTF and 3.2us GI
STBC Tx <= 80MHz
STBC Rx <= 80MHz
Full Bandwidth UL MU-MIMO
Partial Bandwidth UL MU-MIMO
DCM Max Constellation: 2
DCM Max Constellation Rx: 2
SU Beamformee
Beamformee STS <= 80Mhz: 3
Ng = 16 SU Feedback
Ng = 16 MU Feedback
Codebook Size SU Feedback
Codebook Size MU Feedback
Triggered CQI Feedback
Partial Bandwidth Extended Range
PPE Threshold Present
Power Boost Factor ar
HE SU PPDU & HE PPDU 4x HE-LTF 0.8us GI
20MHz in 40MHz HE PPDU 2.4GHz
DCM Max BW: 1
Longer Than 16HE SIG-B OFDM Symbols
Non-Triggered CQI Feedback
TX 1024-QAM
RX 1024-QAM
RX Full BW SU Using HE MU PPDU with Compression SIGB
RX Full BW SU Using HE MU PPDU with Non-Compression SIGB
HE RX MCS and NSS set <= 80 MHz
1 streams: MCS 0-11
2 streams: MCS 0-11
3 streams: not supported
4 streams: not supported
5 streams: not supported
6 streams: not supported
7 streams: not supported
8 streams: not supported
HE TX MCS and NSS set <= 80 MHz
1 streams: MCS 0-11
2 streams: MCS 0-11
3 streams: not supported
4 streams: not supported
5 streams: not supported
6 streams: not supported
7 streams: not supported
8 streams: not supported
PPE Threshold 0x39 0x1c 0xc7 0x71 0x1c 0x07
EHT Iftypes: managed
EHT MAC Capabilities (0x0000):
EHT PHY Capabilities: (0x0000000000000000):
EHT MCS/NSS: (0x):
EHT bw=20 MHz, max NSS for MCS 0-7: Rx=0, Tx=0
EHT bw=20 MHz, max NSS for MCS 8-9: Rx=0, Tx=0
EHT bw=20 MHz, max NSS for MCS 10-11: Rx=0, Tx=0
EHT bw=20 MHz, max NSS for MCS 12-13: Rx=0, Tx=0
HE Iftypes: AP
HE MAC Capabilities (0x00011a081044):
+HTC HE Supported
BSR
OM Control
Maximum A-MPDU Length Exponent: 3
BQR
A-MSDU in A-MPDU
OM Control UL MU Data Disable RX
HE PHY Capabilities: (0x0220ce120000a000000c00):
HE40/2.4GHz
LDPC Coding in Payload
NDP with 4x HE-LTF and 3.2us GI
STBC Tx <= 80MHz
STBC Rx <= 80MHz
Full Bandwidth UL MU-MIMO
Partial Bandwidth UL MU-MIMO
DCM Max Constellation: 2
DCM Max Constellation Rx: 2
Partial Bandwidth Extended Range
PPE Threshold Present
TX 1024-QAM
RX 1024-QAM
HE RX MCS and NSS set <= 80 MHz
1 streams: MCS 0-11
2 streams: MCS 0-11
3 streams: not supported
4 streams: not supported
5 streams: not supported
6 streams: not supported
7 streams: not supported
8 streams: not supported
HE TX MCS and NSS set <= 80 MHz
1 streams: MCS 0-11
2 streams: MCS 0-11
3 streams: not supported
4 streams: not supported
5 streams: not supported
6 streams: not supported
7 streams: not supported
8 streams: not supported
PPE Threshold 0x39 0x1c 0xc7 0x71 0x1c 0x07
EHT Iftypes: AP
EHT MAC Capabilities (0x0000):
EHT PHY Capabilities: (0x0000000000000000):
EHT MCS/NSS: (0x):
EHT bw=20 MHz, max NSS for MCS 0-7: Rx=0, Tx=0
EHT bw=20 MHz, max NSS for MCS 8-9: Rx=0, Tx=0
EHT bw=20 MHz, max NSS for MCS 10-11: Rx=0, Tx=0
EHT bw=20 MHz, max NSS for MCS 12-13: Rx=0, Tx=0
Bitrates (non-HT):
* 1.0 Mbps (short preamble supported)
* 2.0 Mbps (short preamble supported)
* 5.5 Mbps (short preamble supported)
* 11.0 Mbps (short preamble supported)
* 6.0 Mbps
* 9.0 Mbps
* 12.0 Mbps
* 18.0 Mbps
* 24.0 Mbps
* 36.0 Mbps
* 48.0 Mbps
* 54.0 Mbps
Frequencies:
* 2412 MHz [1] (20.0 dBm)
* 2417 MHz [2] (20.0 dBm)
* 2422 MHz [3] (20.0 dBm)
* 2427 MHz [4] (20.0 dBm)
* 2432 MHz [5] (20.0 dBm)
* 2437 MHz [6] (20.0 dBm)
* 2442 MHz [7] (20.0 dBm)
* 2447 MHz [8] (20.0 dBm)
* 2452 MHz [9] (20.0 dBm)
* 2457 MHz [10] (20.0 dBm)
* 2462 MHz [11] (20.0 dBm)
* 2467 MHz [12] (20.0 dBm)
* 2472 MHz [13] (20.0 dBm)
* 2484 MHz [14] (20.0 dBm)
Band 2:
Capabilities: 0x9ff
RX LDPC
HT20/HT40
SM Power Save disabled
RX Greenfield
RX HT20 SGI
RX HT40 SGI
TX STBC
RX STBC 1-stream
Max AMSDU length: 7935 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-15
VHT Capabilities (0x339071b2):
Max MPDU length: 11454
Supported Channel Width: neither 160 nor 80+80
RX LDPC
short GI (80 MHz)
TX STBC
SU Beamformee
MU Beamformee
RX antenna pattern consistency
TX antenna pattern consistency
VHT RX MCS set:
1 streams: MCS 0-9
2 streams: MCS 0-9
3 streams: not supported
4 streams: not supported
5 streams: not supported
6 streams: not supported
7 streams: not supported
8 streams: not supported
VHT RX highest supported: 0 Mbps
VHT TX MCS set:
1 streams: MCS 0-9
2 streams: MCS 0-9
3 streams: not supported
4 streams: not supported
5 streams: not supported
6 streams: not supported
7 streams: not supported
8 streams: not supported
VHT TX highest supported: 0 Mbps
VHT extended NSS: supported
HE Iftypes: managed
HE MAC Capabilities (0x08011a000040):
+HTC HE Supported
Trigger Frame MAC Padding Duration: 2
OM Control
Maximum A-MPDU Length Exponent: 3
A-MSDU in A-MPDU
HE PHY Capabilities: (0x4470ce120dc0b306423f00):
HE40/HE80/5GHz
242 tone RUs/5GHz
Device Class: 1
LDPC Coding in Payload
HE SU PPDU with 1x HE-LTF and 0.8us GI
NDP with 4x HE-LTF and 3.2us GI
STBC Tx <= 80MHz
STBC Rx <= 80MHz
Full Bandwidth UL MU-MIMO
Partial Bandwidth UL MU-MIMO
DCM Max Constellation: 2
DCM Max Constellation Rx: 2
SU Beamformee
Beamformee STS <= 80Mhz: 3
Ng = 16 SU Feedback
Ng = 16 MU Feedback
Codebook Size SU Feedback
Codebook Size MU Feedback
Triggered CQI Feedback
Partial Bandwidth Extended Range
PPE Threshold Present
Power Boost Factor ar
HE SU PPDU & HE PPDU 4x HE-LTF 0.8us GI
20MHz in 40MHz HE PPDU 2.4GHz
DCM Max BW: 1
Longer Than 16HE SIG-B OFDM Symbols
Non-Triggered CQI Feedback
TX 1024-QAM
RX 1024-QAM
RX Full BW SU Using HE MU PPDU with Compression SIGB
RX Full BW SU Using HE MU PPDU with Non-Compression SIGB
HE RX MCS and NSS set <= 80 MHz
1 streams: MCS 0-11
2 streams: MCS 0-11
3 streams: not supported
4 streams: not supported
5 streams: not supported
6 streams: not supported
7 streams: not supported
8 streams: not supported
HE TX MCS and NSS set <= 80 MHz
1 streams: MCS 0-11
2 streams: MCS 0-11
3 streams: not supported
4 streams: not supported
5 streams: not supported
6 streams: not supported
7 streams: not supported
8 streams: not supported
PPE Threshold 0x39 0x1c 0xc7 0x71 0x1c 0x07
EHT Iftypes: managed
EHT MAC Capabilities (0x0000):
EHT PHY Capabilities: (0x0000000000000000):
EHT MCS/NSS: (0x):
EHT bw <= 80 MHz, max NSS for MCS 8-9: Rx=0, Tx=0
EHT bw <= 80 MHz, max NSS for MCS 10-11: Rx=0, Tx=0
EHT bw <= 80 MHz, max NSS for MCS 12-13: Rx=0, Tx=0
HE Iftypes: AP
HE MAC Capabilities (0x00011a081044):
+HTC HE Supported
BSR
OM Control
Maximum A-MPDU Length Exponent: 3
BQR
A-MSDU in A-MPDU
OM Control UL MU Data Disable RX
HE PHY Capabilities: (0x0420ce120000a000000c00):
HE40/HE80/5GHz
LDPC Coding in Payload
NDP with 4x HE-LTF and 3.2us GI
STBC Tx <= 80MHz
STBC Rx <= 80MHz
Full Bandwidth UL MU-MIMO
Partial Bandwidth UL MU-MIMO
DCM Max Constellation: 2
DCM Max Constellation Rx: 2
Partial Bandwidth Extended Range
PPE Threshold Present
TX 1024-QAM
RX 1024-QAM
HE RX MCS and NSS set <= 80 MHz
1 streams: MCS 0-11
2 streams: MCS 0-11
3 streams: not supported
4 streams: not supported
5 streams: not supported
6 streams: not supported
7 streams: not supported
8 streams: not supported
HE TX MCS and NSS set <= 80 MHz
1 streams: MCS 0-11
2 streams: MCS 0-11
3 streams: not supported
4 streams: not supported
5 streams: not supported
6 streams: not supported
7 streams: not supported
8 streams: not supported
PPE Threshold 0x39 0x1c 0xc7 0x71 0x1c 0x07
EHT Iftypes: AP
EHT MAC Capabilities (0x0000):
EHT PHY Capabilities: (0x0000000000000000):
EHT MCS/NSS: (0x):
EHT bw <= 80 MHz, max NSS for MCS 8-9: Rx=0, Tx=0
EHT bw <= 80 MHz, max NSS for MCS 10-11: Rx=0, Tx=0
EHT bw <= 80 MHz, max NSS for MCS 12-13: Rx=0, Tx=0
Bitrates (non-HT):
* 6.0 Mbps
* 9.0 Mbps
* 12.0 Mbps
* 18.0 Mbps
* 24.0 Mbps
* 36.0 Mbps
* 48.0 Mbps
* 54.0 Mbps
Frequencies:
* 5180 MHz [36] (20.0 dBm)
* 5200 MHz [40] (20.0 dBm)
* 5220 MHz [44] (20.0 dBm)
* 5240 MHz [48] (20.0 dBm)
* 5260 MHz [52] (20.0 dBm) (radar detection)
* 5280 MHz [56] (20.0 dBm) (radar detection)
* 5300 MHz [60] (20.0 dBm) (radar detection)
* 5320 MHz [64] (20.0 dBm) (radar detection)
* 5500 MHz [100] (23.0 dBm) (radar detection)
* 5520 MHz [104] (23.0 dBm) (radar detection)
* 5540 MHz [108] (23.0 dBm) (radar detection)
* 5560 MHz [112] (23.0 dBm) (radar detection)
* 5580 MHz [116] (23.0 dBm) (radar detection)
* 5600 MHz [120] (23.0 dBm) (radar detection)
* 5620 MHz [124] (23.0 dBm) (radar detection)
* 5640 MHz [128] (23.0 dBm) (radar detection)
* 5660 MHz [132] (23.0 dBm) (radar detection)
* 5680 MHz [136] (23.0 dBm) (radar detection)
* 5700 MHz [140] (23.0 dBm) (radar detection)
* 5720 MHz [144] (23.0 dBm) (radar detection)
* 5745 MHz [149] (disabled)
* 5765 MHz [153] (disabled)
* 5785 MHz [157] (disabled)
* 5805 MHz [161] (disabled)
* 5825 MHz [165] (disabled)
* 5845 MHz [169] (disabled)
* 5865 MHz [173] (disabled)
Band 4:
HE Iftypes: managed
HE MAC Capabilities (0x08011a000040):
+HTC HE Supported
Trigger Frame MAC Padding Duration: 2
OM Control
Maximum A-MPDU Length Exponent: 3
A-MSDU in A-MPDU
HE PHY Capabilities: (0x4470ce120dc0b306423f00):
HE40/HE80/5GHz
242 tone RUs/5GHz
Device Class: 1
LDPC Coding in Payload
HE SU PPDU with 1x HE-LTF and 0.8us GI
NDP with 4x HE-LTF and 3.2us GI
STBC Tx <= 80MHz
STBC Rx <= 80MHz
Full Bandwidth UL MU-MIMO
Partial Bandwidth UL MU-MIMO
DCM Max Constellation: 2
DCM Max Constellation Rx: 2
SU Beamformee
Beamformee STS <= 80Mhz: 3
Ng = 16 SU Feedback
Ng = 16 MU Feedback
Codebook Size SU Feedback
Codebook Size MU Feedback
Triggered CQI Feedback
Partial Bandwidth Extended Range
PPE Threshold Present
Power Boost Factor ar
HE SU PPDU & HE PPDU 4x HE-LTF 0.8us GI
20MHz in 40MHz HE PPDU 2.4GHz
DCM Max BW: 1
Longer Than 16HE SIG-B OFDM Symbols
Non-Triggered CQI Feedback
TX 1024-QAM
RX 1024-QAM
RX Full BW SU Using HE MU PPDU with Compression SIGB
RX Full BW SU Using HE MU PPDU with Non-Compression SIGB
HE RX MCS and NSS set <= 80 MHz
1 streams: MCS 0-11
2 streams: MCS 0-11
3 streams: not supported
4 streams: not supported
5 streams: not supported
6 streams: not supported
7 streams: not supported
8 streams: not supported
HE TX MCS and NSS set <= 80 MHz
1 streams: MCS 0-11
2 streams: MCS 0-11
3 streams: not supported
4 streams: not supported
5 streams: not supported
6 streams: not supported
7 streams: not supported
8 streams: not supported
PPE Threshold 0x39 0x1c 0xc7 0x71 0x1c 0x07
EHT Iftypes: managed
EHT MAC Capabilities (0x0000):
EHT PHY Capabilities: (0x0000000000000000):
EHT MCS/NSS: (0x):
EHT bw <= 80 MHz, max NSS for MCS 8-9: Rx=0, Tx=0
EHT bw <= 80 MHz, max NSS for MCS 10-11: Rx=0, Tx=0
EHT bw <= 80 MHz, max NSS for MCS 12-13: Rx=0, Tx=0
HE Iftypes: AP
HE MAC Capabilities (0x00011a081044):
+HTC HE Supported
BSR
OM Control
Maximum A-MPDU Length Exponent: 3
BQR
A-MSDU in A-MPDU
OM Control UL MU Data Disable RX
HE PHY Capabilities: (0x0420ce120000a000000c00):
HE40/HE80/5GHz
LDPC Coding in Payload
NDP with 4x HE-LTF and 3.2us GI
STBC Tx <= 80MHz
STBC Rx <= 80MHz
Full Bandwidth UL MU-MIMO
Partial Bandwidth UL MU-MIMO
DCM Max Constellation: 2
DCM Max Constellation Rx: 2
Partial Bandwidth Extended Range
PPE Threshold Present
TX 1024-QAM
RX 1024-QAM
HE RX MCS and NSS set <= 80 MHz
1 streams: MCS 0-11
2 streams: MCS 0-11
3 streams: not supported
4 streams: not supported
5 streams: not supported
6 streams: not supported
7 streams: not supported
8 streams: not supported
HE TX MCS and NSS set <= 80 MHz
1 streams: MCS 0-11
2 streams: MCS 0-11
3 streams: not supported
4 streams: not supported
5 streams: not supported
6 streams: not supported
7 streams: not supported
8 streams: not supported
PPE Threshold 0x39 0x1c 0xc7 0x71 0x1c 0x07
EHT Iftypes: AP
EHT MAC Capabilities (0x0000):
EHT PHY Capabilities: (0x0000000000000000):
EHT MCS/NSS: (0x):
EHT bw <= 80 MHz, max NSS for MCS 8-9: Rx=0, Tx=0
EHT bw <= 80 MHz, max NSS for MCS 10-11: Rx=0, Tx=0
EHT bw <= 80 MHz, max NSS for MCS 12-13: Rx=0, Tx=0
Bitrates (non-HT):
* 6.0 Mbps
* 9.0 Mbps
* 12.0 Mbps
* 18.0 Mbps
* 24.0 Mbps
* 36.0 Mbps
* 48.0 Mbps
* 54.0 Mbps
Frequencies:
* 5955 MHz [1] (23.0 dBm)
* 5975 MHz [5] (23.0 dBm)
* 5995 MHz [9] (23.0 dBm)
* 6015 MHz [13] (23.0 dBm)
* 6035 MHz [17] (23.0 dBm)
* 6055 MHz [21] (23.0 dBm)
* 6075 MHz [25] (23.0 dBm)
* 6095 MHz [29] (23.0 dBm)
* 6115 MHz [33] (23.0 dBm)
* 6135 MHz [37] (23.0 dBm)
* 6155 MHz [41] (23.0 dBm)
* 6175 MHz [45] (23.0 dBm)
* 6195 MHz [49] (23.0 dBm)
* 6215 MHz [53] (23.0 dBm)
* 6235 MHz [57] (23.0 dBm)
* 6255 MHz [61] (23.0 dBm)
* 6275 MHz [65] (23.0 dBm)
* 6295 MHz [69] (23.0 dBm)
* 6315 MHz [73] (23.0 dBm)
* 6335 MHz [77] (23.0 dBm)
* 6355 MHz [81] (23.0 dBm)
* 6375 MHz [85] (23.0 dBm)
* 6395 MHz [89] (23.0 dBm)
* 6415 MHz [93] (23.0 dBm)
* 6435 MHz [97] (disabled)
* 6455 MHz [101] (disabled)
* 6475 MHz [105] (disabled)
* 6495 MHz [109] (disabled)
* 6515 MHz [113] (disabled)
* 6535 MHz [117] (disabled)
* 6555 MHz [121] (disabled)
* 6575 MHz [125] (disabled)
* 6595 MHz [129] (disabled)
* 6615 MHz [133] (disabled)
* 6635 MHz [137] (disabled)
* 6655 MHz [141] (disabled)
* 6675 MHz [145] (disabled)
* 6695 MHz [149] (disabled)
* 6715 MHz [153] (disabled)
* 6735 MHz [157] (disabled)
* 6755 MHz [161] (disabled)
* 6775 MHz [165] (disabled)
* 6795 MHz [169] (disabled)
* 6815 MHz [173] (disabled)
* 6835 MHz [177] (disabled)
* 6855 MHz [181] (disabled)
* 6875 MHz [185] (disabled)
* 6895 MHz [189] (disabled)
* 6915 MHz [193] (disabled)
* 6935 MHz [197] (disabled)
* 6955 MHz [201] (disabled)
* 6975 MHz [205] (disabled)
* 6995 MHz [209] (disabled)
* 7015 MHz [213] (disabled)
* 7035 MHz [217] (disabled)
* 7055 MHz [221] (disabled)
* 7075 MHz [225] (disabled)
* 7095 MHz [229] (disabled)
* 7115 MHz [233] (disabled)
Supported commands:
* new_interface
* set_interface
* new_key
* start_ap
* new_station
* new_mpath
* set_mesh_config
* set_bss
* authenticate
* associate
* deauthenticate
* disassociate
* join_ibss
* join_mesh
* remain_on_channel
* set_tx_bitrate_mask
* frame
* frame_wait_cancel
* set_wiphy_netns
* set_channel
* tdls_mgmt
* tdls_oper
* start_sched_scan
* probe_client
* set_noack_map
* register_beacons
* start_p2p_device
* set_mcast_rate
* connect
* disconnect
* channel_switch
* set_qos_map
* set_multicast_to_unicast
* set_sar_specs
WoWLAN support:
* wake up on disconnect
* wake up on magic packet
* wake up on pattern match, up to 1 patterns of 1-128 bytes,
maximum packet offset 0 bytes
* can do GTK rekeying
* wake up on network detection, up to 10 match sets
software interface modes (can always be added):
* AP/VLAN
* monitor
valid interface combinations:
* #{ managed } <= 4, #{ AP } <= 1,
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
Device supports TX status socket option.
Device supports HT-IBSS.
Device supports SAE with AUTHENTICATE command
Device supports scan flush.
Device supports per-vif TX power setting
Driver supports full state transitions for AP/GO clients
Driver supports a userspace MPM
Device supports active monitor (which will ACK incoming frames)
Device supports configuring vdev MAC-addr on create.
Device supports randomizing MAC-addr in scans.
Device supports randomizing MAC-addr in sched scans.
max # scan plans: 1
max scan plan interval: 65535
max scan plan iterations: 0
Supported TX frame types:
* IBSS: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* managed: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* AP: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* AP/VLAN: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* mesh point: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* P2P-client: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* P2P-GO: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* P2P-device: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
Supported RX frame types:
* IBSS: 0x40 0xb0 0xc0 0xd0
* managed: 0x40 0xb0 0xd0
* AP: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0
* AP/VLAN: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0
* mesh point: 0xb0 0xc0 0xd0
* P2P-client: 0x40 0xd0
* P2P-GO: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0
* P2P-device: 0x40 0xd0
Supported extended features:
* [ RRM ]: RRM
* [ SET_SCAN_DWELL ]: scan dwell setting
* [ BEACON_RATE_LEGACY ]: legacy beacon rate setting
* [ BEACON_RATE_HT ]: HT beacon rate setting
* [ BEACON_RATE_VHT ]: VHT beacon rate setting
* [ FILS_STA ]: STA FILS (Fast Initial Link Setup)
* [ 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)
* [ CONTROL_PORT_NO_PREAUTH ]: disable pre-auth over nl80211 control port support
* [ SCAN_FREQ_KHZ ]: scan on kHz frequency support
* [ CONTROL_PORT_OVER_NL80211_TX_STATUS ]: tx status for nl80211 control port support
* [ BEACON_RATE_HE ]: HE beacon rate support (AP/mesh)

 

この段階で設定情報で動作するか確認する。

# hostapd /etc/hostapd/hostapd.conf
問題なければフォアグラウンドで待ち状態になるため、Ctrl + Dで抜ける

 

hostapdのサービス定義を設定する。

# systemctl unmask hostapd.service
# systemctl enable hostapd.service
# systemctl start hostapd.service
# systemctl status hostapd.service
● hostapd.service - Access point and authentication server for Wi-Fi and Ethernet
Loaded: loaded (/lib/systemd/system/hostapd.service; enabled; preset: enabled)
Active: active (running) since Thu 2023-12-28 20:39:02 JST; 4s ago
Docs: man:hostapd(8)
Process: 1984 ExecStart=/usr/sbin/hostapd -B -P /run/hostapd.pid $DAEMON_OPTS ${DAEMON_CONF} (code=exited, status=0/SUCCESS)
Main PID: 1985 (hostapd)
Tasks: 1 (limit: 18859)
Memory: 1.0M
CPU: 27ms
CGroup: /system.slice/hostapd.service
mq1985 /usr/sbin/hostapd -B -P /run/hostapd.pid /etc/hostapd/hostapd.conf

 

 

クライアント接続による確認

問題無く接続出来た。 家ネットワーク内のNASにアクセスして 55MB/s くらいの速度でてびっくりした。

 

おまけ1

 

ほっとくと power save が働いて Wi-Fi がオフにされることがあるそうなので無効化しておく。

# apt install wireless-tools

### hostapd は停止中になっている必要がある
# systemctl stop hostapd.service

# EDITOR=vi systemctl --full --force edit wifi_powersave@.service
[Unit]
Description=Set WiFi power save %i
After=sys-subsystem-net-devices-wlx90de80fc059b.device

[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/sbin/iw dev wlx90de80fc059b set power_save %i

[Install]
WantedBy=sys-subsystem-net-devices-wlx90de80fc059b.device


# systemctl start wifi_powersave@off
# systemctl enable wifi_powersave@off

### hostapdの状態を戻しておく
# systemctl start hostapd.service

# iwconfig wlx90de80fc059b
wlx90de80fc059b IEEE 802.11 ESSID:off/any
Mode:Managed Access Point: Not-Associated Tx-Power=3 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off

 

おまけ2

 

手動でカーネルドライバのファームウェアを最新にしているため、aptでのカーネル更新を無効化する。

# apt-mark hold firmware-linux
# apt-mark hold 'linux-generic*' 'linux-headers*' 'linux-image*' 'linux-modules*'

 

戻す際は hold を unhold にする。

 

★2024-01-05追記

おまけ3

上記の漏れ。hostapd を手動で make して cp で入れ換えているので自動更新されると困る。同様に無効化する。

# apt-mark hold hostapd

 

 


 

 

参考サイト:

https://qiita.com/wataniguchi/items/380cd315226f6cce2cc1

https://hgot07.hatenablog.com/entry/2023/11/16/152128

https://zenn.dev/superbrothers/scraps/cfdf74a844272b

https://sig9.org/blog/2022/03/15/

https://www.silex.jp/library/blog/20211027-1

 

 

更新: 2024/01/05
しばらく使ってどうか

評価中

無線規制データベースの最新化がうまくいかない状態のまま、裏でhostapdの定義情報の構築を行ったので、5GHzのチャンネル設定が古いままになっています。

 

とりあえず無線規制データベースの最新化が本日(12/30時点)出来たので、チャンネル100~144付近で使えたらよいなあという感じ。

 

多分、DFS設定をする必要があるかも?ないかも?なので試行錯誤で定義情報を修正していくことになります。

 


 

★2023-12-30追記

 

成果というほどではないですが、20MHz帯と40MHz帯の設定は可能。80MHz帯の設定が出来ない模様。

40MHz帯の設定は可能だが、20MHz帯へ落とされてしまう。

ハードウェア情報で出た band4 情報は 6GHz のもののようだ。

下記の設定を施すことで hostapd が起動したことを確認した。

# 5.950GHz 20MHz
channel=9
chanlist=1 5 9 13 17 21 25 29 33 37 41 45 49 53 57 61 65 69 73 77 81 85 89 93
op_class=131

 

ネットワーク情報

# iw dev wlx90de80fc059b info
Interface wlx90de80fc059b
ifindex 4
wdev 0x1
addr xx:xx:xx:xx:xx:xx
ssid YAMAHA6
type AP
wiphy 0
channel 9 (5995 MHz), width: 40 MHz, center1: 5985 MHz
txpower 3.00 dBm
multicast TXQ:
qsz-byt qsz-pkt flows drops marks overlmt hashcol tx-bytes tx-packets
0 0 16773 0 0 0 0 2345883 16960

 

Wi-Fi6Eの接続環境が無いので、接続テストが出来ていないです。

仮に動作するなら、6E対応の製品ではないのに6E設定が出来ることになります。

ieee80211beの設定を入れていないので、いれた方がいいのかな。わからん。

 

★2024-01-05追記

上記で6Eについて hostapd としては設定可能だがハードウェアが未対応のため動作しないらしい。

  • 購入金額

    1,876円

  • 購入日

    2023年12月25日

  • 購入場所

    AliExpress

17人がこのレビューをCOOLしました!

コメント (0)

ZIGSOWにログインするとコメントやこのアイテムを持っているユーザー全員に質問できます。

YouTube の動画を挿入

YouTube の URL または動画の ID を入力してください

動画の ID が取得できません。ID もしくは URL を正しく入力してください。

ニコニコ動画の動画を挿入

ニコニコ動画の URL または動画の ID を入力してください

動画の ID が取得できません。ID もしくは URL を正しく入力してください。

ZIGSOWリンク挿入

検索対象とキーワードを入力してください

    外部リンクを挿入

    リンク先の URL とタイトルを入力してください

    URL を正しく入力してください。

    画像を挿入(最大サイズ6MB)

    画像を選択してください

    ファイルサイズが6MBを超えています

    別の画像を追加

    ZIGSOW にログイン

    ZIGSOW会員登録(無料)はこちらから