因此,我在 Ubuntu Server 20.04 上使用 hostapd,安装了 Intel 3165 Wi-Fi 卡,并连接了不错的外部天线。除了性能之外,一切都按预期运行 - 测试显示,如果我就坐在它前面,速度约为 ~30 Mbs。
这是我的hostapd
配置:
interface=wlp2s0
driver=nl80211
bridge=lanbr
country_code=RU
ssid=shimos-ap
channel=1
hw_mode=g
preamble=1
macaddr_acl=0
wmm_enabled=1
ieee80211n=1
ht_capab=[HT20][SHORT-GI-20][TX-STBC][RX-STBC1]
auth_algs=3
ignore_broadcast_ssid=0
wpa=3
wpa_passphrase=<password>
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP
以及iwconfig
带有发射功率的接口输出:
wlp2s0 IEEE 802.11 Mode:Master Tx-Power=22 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Power Management:on
因此我预计它在 20 MHz 上会达到约 72 Mbs,但在我添加 ht_capab 标签之前,它甚至低于当前的 30 Mbs。坦率地说,我甚至不知道在 20 MHz 内我可以添加哪些标签。这是iw
2.4 GHz 频段的输出部分:
max # scan SSIDs: 20
max scan IEs length: 425 bytes
max # sched scan SSIDs: 20
max # match sets: 11
max # scan plans: 2
max scan plan interval: 65535
max scan plan iterations: 254
Retry short limit: 7
Retry long limit: 4
Coverage class: 0 (up to 0m)
Device supports RSN-IBSS.
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)
* CMAC (00-0f-ac:6)
Available Antennas: TX 0 RX 0
Supported interface modes:
* IBSS
* managed
* AP
* AP/VLAN
* monitor
* P2P-client
* P2P-GO
* P2P-device
Band 1:
Capabilities: 0x11ee
HT20/HT40
SM Power Save disabled
RX HT20 SGI
RX HT40 SGI
TX STBC
RX STBC 1-stream
Max AMSDU length: 3839 bytes
DSSS/CCK HT40
Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
Minimum RX AMPDU time spacing: 4 usec (0x05)
HT Max RX data rate: 150 Mbps
HT RX MCS rate indexes supported: 0-7
TX unequal modulation not supported
HT TX Max spatial streams: 2
HT TX MCS rate indexes supported may differ
问题可能出在 tx 功率上还是其他什么地方?顺便说一下,天线功率最高可达 1.5 W。